astropy vulnerable to RCE in TranformGraph().to_dot_graph function
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
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
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| astropy | astropy | = 5.3.2 | — | No fix listed | CNA |
| — | astropy (PyPI) | before 5.3.3 | 5.3.3 | Patch available | GHSA-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
Remediation
- Fix · GHSA-h2x6-5jx5-46hf astropy (PyPI) Fixed in 5.3.3 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2023-41334
- 2026-10-03 Alias added: GHSA-h2x6-5jx5-46hf
References
Sources
- CVE-2023-41334 · CVE Program
- CVE-2023-41334 · NVD
- FIRST EPSS
- GHSA-h2x6-5jx5-46hf · GitHub Advisory Database · CC BY 4.0
- CVE-2023-41334 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences