Read the docs
TI-2023-21934 Aliases CVE-2023-41334GHSA-h2x6-5jx5-46hf

astropy vulnerable to RCE in TranformGraph().to_dot_graph function

Priority HIGH 72CWE-77Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-77.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.01134 66th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed astropy (PyPI): 5.3.3

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
astropyastropy= 5.3.2—No fix listedCNA
—astropy (PyPI)before 5.3.35.3.3Patch availableGHSA-h2x6-5jx5-46hf
  • astropy Vendorastropy Affected = 5.3.2 Fixed in — No fix listed CNA
  • astropy (PyPI) Vendor— Affected before 5.3.3 Fixed in 5.3.3 Patch available GHSA-h2x6-5jx5-46hf

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:astropy:astropy:5.3.2:*:*:*:*:python:*:*5.3.2Vulnerableastropy
  • cpe:2.3:a:astropy:astropy:5.3.2:*:*:*:*:python:*:* Versions 5.3.2 Vulnerable ·astropy

Remediation

  • Fix · GHSA-h2x6-5jx5-46hf astropy (PyPI) Fixed in 5.3.3 Advisory →

Vendor assessments

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-10-02 Threatist record created from CVE-2023-41334
  2. 2026-10-03 Alias added: GHSA-h2x6-5jx5-46hf

References

Sources