Live threats

All CVEs / Astropy

CVE-2023-41334Astropy

High 8.4

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Astropy.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
astropyastropy5.3.2

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.