Vulnerability Details : CVE-2023-41334
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.
Vulnerability category: Execute code
Products affected by CVE-2023-41334
Please log in to view affected product information.
Exploit prediction scoring system (EPSS) score for CVE-2023-41334
0.95%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 75 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2023-41334
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
8.4
|
HIGH | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
2.5
|
5.9
|
GitHub, Inc. | 2024-03-18 |
CWE ids for CVE-2023-41334
-
The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.Assigned by: security-advisories@github.com (Secondary)
References for CVE-2023-41334
-
https://github.com/astropy/astropy/security/advisories/GHSA-h2x6-5jx5-46hf
RCE in TranformGraph().to_dot_graph function · Advisory · astropy/astropy · GitHub
-
https://github.com/astropy/astropy/blob/9b97d98802ee4f5350a62b681c35d8687ee81d91/astropy/coordinates/transformations.py#L539
astropy/astropy/coordinates/transformations.py at 9b97d98802ee4f5350a62b681c35d8687ee81d91 · astropy/astropy · GitHub
-
https://github.com/astropy/astropy/commit/22057d37b1313f5f5a9b5783df0a091d978dccb5
MNT: Explicit option for savelayout in to_dot_graph · astropy/astropy@22057d3 · GitHub
Jump to