CVE-2023-41334astropy 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.
What to do
Fixed builds are available from Debian, PyPI: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | astropy | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | astropy | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | astropy | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | astropy | Fix pending | 5.0.2-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2023-41334 |
| Ubuntu 20.04 | astropy | Fix pending | 4.0-4ubuntu1+esm1 (Ubuntu Pro) | UBUNTU-CVE-2023-41334 |
| Ubuntu 18.04 | astropy | Fix pending | 3.0-3ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2023-41334 |
| Debian 14 | astropy | Fixed | 5.3.3-1 | DEBIAN-CVE-2023-41334 |
| Debian 13 | astropy | Fixed | 5.3.3-1 | DEBIAN-CVE-2023-41334 |
| Debian 12 | astropy | Fix pending | DEBIAN-CVE-2023-41334 | |
| PyPI library | astropy | Fixed | 5.3.3 | PYSEC-2026-1199 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- astropy: affected: = 5.3.2
References
- https://github.com/astropy/astropy/security/advisories/GHSA-h2x6-5jx5-46hf
- https://github.com/astropy/astropy/commit/22057d37b1313f5f5a9b5783df0a091d978dccb5
- https://github.com/astropy/astropy/blob/9b97d98802ee4f5350a62b681c35d8687ee81d91/astropy/coordinates/transformations.py#L539
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.