Local code execution via unchecked savelayout command
Published Mar 18, 2024 · Updated Aug 2, 2024
Command injection in Astropy 5.3.2 allows local users to execute code by passing a crafted savelayout value to TransformGraph.to_dot_graph. The method places the unvalidated value at argv[0] for subprocess.Popen, so an executable or script runs before a later data-type error is raised. Exploitation requires local access to invoke affected library code or control a caller's savelayout input, and the spawned process runs with the caller's privileges.
Summary
What happened
Command injection in Astropy 5.3.2 allows local users to execute code by passing a crafted savelayout value to TransformGraph.to_dot_graph. The method places the unvalidated value at argv[0] for subprocess.Popen, so an executable or script runs before a later data-type error is raised. Exploitation requires local access to invoke affected library code or control a caller's savelayout input, and the spawned process runs with the caller's privileges.
The record
- CVE
- CVE-2023-41334
- Published
- Mar 18, 2024
- Updated
- Aug 2, 2024
- Vendor
- Astropy Project
- Product
- Astropy
- Classifications
- CWE-20, T1059
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Mar 18, 2024CVE publishedPublication date reported by the CVE source.
- Aug 2, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion== 5.3.2
- Affected versionversion=5.3.2
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
- Astropy savelayout script-execution proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo