CVEBrief

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.

Exploited in the wild
Not in CISA KEV
KEV 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
Exploit odds (EPSS)
1.13% in 30 days
higher than 67% of CVEs; FIRST, December 2, 2026

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?

VendorProductAffectedFixed or not affected from
astropyastropy= 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?

EcosystemPackageAffectedFixed inAdvisory
PyPIastropy< 5.3.35.3.3GHSA-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?

VendorProductVersionsType
astropyastropy5.3.2application

NVD analysis (status Analyzed), last modified June 17, 2026, 06:21 UTC.

How severe is CVE-2023-41334?

ScoreVersionVectorSource
High 8.4CVSS 3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HGitHub_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?

Where are the vendor advisories and references?

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.