Home / astropy / astropy / CVE-2023-41334
CVE-2023-41334: is it exploited, and which versions of astropy are affected and fixed?
CVE-2023-41334 is a command injection vulnerability in astropy. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 10:38 UTC). Affected: astropy before 5.3.3 (GitHub advisory GHSA-h2x6-5jx5-46hf). Fixed in 5.3.3 (GitHub advisory GHSA-h2x6-5jx5-46hf). Severity: High (8.4, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 10:38 UTC, CVE record November 19, 2026, 07:12 UTC and NVD November 19, 2026, 07:31 UTC.
What is CVE-2023-41334?
astropy vulnerable to RCE in TranformGraph().to_dot_graph function
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.
From the CVE record by GitHub_M, last updated August 2, 2024, 19:01 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| astropy | astropy | = 5.3.2 |
As the CVE record by GitHub_M states it, last updated August 2, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| PyPI | astropy | < 5.3.3 | 5.3.3 | GHSA-h2x6-5jx5-46hf |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated March 18, 2024. Summary: RCE in TranformGraph().to_dot_graph function.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| astropy | astropy | 5.3.2 | application |
NVD analysis (status Analyzed), last modified June 17, 2026, 06:21 UTC.
How severe is CVE-2023-41334?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 8.4 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2023-41334 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: total (CISA ADP, August 2, 2024)
- EPSS
- 1.13% probability of exploitation activity in the next 30 days, percentile 67.4 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-77 Improper Neutralization of Special Elements used in a Command
- CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component
Where are the vendor advisories and references?
- https://github.com/astropy/astropy/security/advisories/GHSA-h2x6-5jx5-46hf x_refsource_CONFIRM
- https://github.com/astropy/astropy/commit/22057d37b1313f5f5a9b5783df0a091d978dccb5 x_refsource_MISC
- https://github.com/astropy/astropy/blob/9b97d98802ee4f5350a62b681c35d8687ee81d91/astropy/coordinates/transformations.py#L539 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- August 28, 2023
- Published
- March 18, 2024, 18:48 UTC
- CVE record updated
- August 2, 2024, 19:01 UTC by GitHub_M
- NVD
- Analyzed, last modified June 17, 2026, 06:21 UTC
- Last checked
- CVE list November 19, 2026, 07:12 UTC; NVD November 19, 2026, 07:31 UTC; KEV December 3, 2026, 10:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
Questions about CVE-2023-41334
Is CVE-2023-41334 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 10:38 UTC. FIRST's EPSS gives it a 1.13% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of astropy are affected by CVE-2023-41334?
astropy before 5.3.3, per the GitHub advisory GHSA-h2x6-5jx5-46hf. The tables above give every range the sources list.
Which version fixes CVE-2023-41334?
5.3.3, per the GitHub advisory GHSA-h2x6-5jx5-46hf. Check the vendor's advisory before you rely on it.
How severe is CVE-2023-41334?
High (8.4, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2023-41334?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.