{"id":"CVE-2023-41334","published":"2024-03-18T18:48:14Z","modified":"2024-08-02T19:01:34Z","title":"astropy vulnerable to RCE in TranformGraph().to_dot_graph function","vendor":"astropy","product":"astropy","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.4,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01134,"percentile":0.67253,"provenance":"source"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"references":[{"url":"https://github.com/astropy/astropy/security/advisories/GHSA-h2x6-5jx5-46hf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/astropy/astropy/commit/22057d37b1313f5f5a9b5783df0a091d978dccb5","tags":["x_refsource_MISC"]},{"url":"https://github.com/astropy/astropy/blob/9b97d98802ee4f5350a62b681c35d8687ee81d91/astropy/coordinates/transformations.py#L539","tags":["x_refsource_MISC"]}],"priority":{"score":19.3,"factors":[{"name":"EPSS percentile","points":13.45},{"name":"CVSS severity","points":5.88}]},"vendorSlug":"astropy","affectedVersions":[{"vendor":"astropy","product":"astropy","versions":["= 5.3.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2024-08-02T15:20:41.705884Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"astropy","vulnerableRanges":["<5.3.3"],"patched":["5.3.3"],"from":["GHSA-h2x6-5jx5-46hf","PYSEC-2026-1199"],"provenance":"source"}],"summary":{"text":"The flaw is a command injection in the to_dot_graph function of TranformGraph in the astropy core package (version 5.3.2), caused by improper input validation of the savelayout argument. An attacker who can supply a command or script as the savelayout value gets it executed through subprocess.Popen, even though an error is raised afterward, and the attack requires only local access with no privileges or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:16:44Z"},"euvd":{"id":"EUVD-2024-0929","exploited":false,"provenance":"source"}}