{"cve":"CVE-2023-41334","nvd":{"published":"2024-03-18T19:15:05.897","modified":"2026-06-17T06:21:50.713","status":"Analyzed","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.4},"cwes":["CWE-77"],"references":["https://github.com/astropy/astropy/blob/9b97d98802ee4f5350a62b681c35d8687ee81d91/astropy/coordinates/transformations.py#L539","https://github.com/astropy/astropy/commit/22057d37b1313f5f5a9b5783df0a091d978dccb5","https://github.com/astropy/astropy/security/advisories/GHSA-h2x6-5jx5-46hf","https://github.com/astropy/astropy/blob/9b97d98802ee4f5350a62b681c35d8687ee81d91/astropy/coordinates/transformations.py#L539","https://github.com/astropy/astropy/commit/22057d37b1313f5f5a9b5783df0a091d978dccb5"],"products":["astropy:astropy"],"source":"nvd","synced_at":"2026-10-19T21:46:54.846886191+00:00"},"epss":{"cve":"CVE-2023-41334","score":0.01134,"percentile":0.66483,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-h2x6-5jx5-46hf","url":"https://osv.dev/vulnerability/GHSA-h2x6-5jx5-46hf","summary":"RCE in TranformGraph().to_dot_graph function","modified":"2026-07-07T17:57:04.872175879Z","packages":[{"ecosystem":"PyPI","name":"astropy","purl":"pkg:pypi/astropy","ranges":["<5.3.3"],"fixed":["5.3.3"]}]},{"id":"PYSEC-2026-1199","url":"https://osv.dev/vulnerability/PYSEC-2026-1199","summary":"RCE in TranformGraph().to_dot_graph function","modified":"2026-07-07T17:46:32.339478083Z","packages":[{"ecosystem":"PyPI","name":"astropy","purl":"pkg:pypi/astropy","ranges":["<5.3.3"],"fixed":["5.3.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}