CVEfocus › CVE database › CVE-2023-41334

CVE-2023-41334astropy vulnerable to RCE in TranformGraph().to_dot_graph function

CVSS 8.4 HighEPSS 1.1% (higher than 67% of CVEs)Published 2024-03-18Updated 2024-08-02Assigner: GitHub_M

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.

CWE-77

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

3Fixed
4Fix pending
3Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04astropyNot affected
vulnerable_code_not_present
Ubuntu 25.10astropyNot affected
vulnerable_code_not_present
Ubuntu 24.04astropyNot affected
vulnerable_code_not_present
Ubuntu 22.04astropyFix pending5.0.2-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2023-41334
Ubuntu 20.04astropyFix pending4.0-4ubuntu1+esm1 (Ubuntu Pro)UBUNTU-CVE-2023-41334
Ubuntu 18.04astropyFix pending3.0-3ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2023-41334
Debian 14astropyFixed5.3.3-1DEBIAN-CVE-2023-41334
Debian 13astropyFixed5.3.3-1DEBIAN-CVE-2023-41334
Debian 12astropyFix pendingDEBIAN-CVE-2023-41334
PyPI libraryastropyFixed5.3.3PYSEC-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.

References

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.