CVE-2023-41334Astropy
High 8.4
Follow: this CVE · Astropy · Astropy We alert you by email or Slack (account required).
- Priority
- 51
- CVSS 3.1
- 8.4
- EPSS
- 1.5% probability of exploitation in 30 days · percentile 75
- Auth required
- Yes
- Published
- Mar 18, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-77
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Astropy.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | astropy |
< 5.3.3 |
5.3.3 |
pip install "astropy>=5.3.3" |
| PyPI | astropy |
< 5.3.3 |
5.3.3 |
pip install "astropy>=5.3.3" |
Per OSV / GitHub Advisories (GHSA-h2x6-5jx5-46hf, PYSEC-2026-1199). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| astropy | astropy | 5.3.2 |
Official advisories
- python313-astropy-8.0.1-1.1 on GA media · SUSE · openSUSE-SU-2026:11353-1 · Jul 23, 2026 High
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Product
- github.com Patch
- github.com Exploit Vendor Advisory