cve.bz

CVE-2023-41334 astropy astropy

8.4 highExploit referenceEPSS 1.1%Fix available

High (8.4) in astropy astropy. EPSS 1.1% estimated probability of exploitation activity in the next 30 days. Fixed in astropy 5.3.3.

On this page
Astropy is a project for astronomy in Python that fosters interoperability between Python astronomy packages. Version 5.3.2 of the Astropy core package is vulnerable to remote code execution due to improper input validation in the `TranformGraph().to_dot_graph` function. A malicious user can provide a command or a script file as a value to the `savelayout` argument, which will be placed as the first value in a list of arguments passed to `subprocess.Popen`. Although an error will be raised, the command or script will be executed successfully. Version 5.3.3 fixes this issue.

Severity

CVSS 3.1

8.4 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
1.1% (unchanged from 1.1% a week ago; 1.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 67th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2024-08-02. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-77 Improper Neutralization of Special Elements used in a Command
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-41334 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-41334?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-41334?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-41334 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
astropy:astropy5.3.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-h2x6-5jx5-46hfPyPIastropy<5.3.35.3.3
PYSEC-2026-1199PyPIastropy<5.3.35.3.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10astropy3.1.2-2+deb10u1DLA-3803-1
Debian12astropyno fix listedDEBIAN-CVE-2023-41334
Debian13, 14astropy5.3.3-1DEBIAN-CVE-2023-41334
UbuntuPro:18.04:LTSastropy3.0-3ubuntu0.1~esm1UBUNTU-CVE-2023-41334 USN-9133-1
UbuntuPro:20.04:LTSastropy4.0-4ubuntu1+esm1UBUNTU-CVE-2023-41334 USN-9133-1
UbuntuPro:22.04:LTSastropy5.0.2-1ubuntu0.1~esm1UBUNTU-CVE-2023-41334 USN-9133-1
openSUSETumbleweedpython-astropy8.0.1-1.1openSUSE-SU-2026:11353-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE.

Attack patterns (CAPEC)

  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-40 Manipulating Writeable Terminal Devices Likelihood: High · Severity: Very High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-75 Manipulating Writeable Configuration Files Likelihood: High · Severity: Very High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-136 LDAP Injection Likelihood: High · Severity: High
  • CAPEC-183 IMAP/SMTP Command Injection Severity: Medium
  • CAPEC-248 Command Injection Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON