Arbitrary code execution via untrusted pickle loading
Published Sep 18, 2024 · Updated Sep 18, 2024
Insecure deserialization in sqlitedict 2.1.0 and earlier allows context-dependent attackers to execute arbitrary code from a crafted database. The default decode function passes each SQLite value BLOB directly to Python pickle.loads without restricting globals or validating object construction. Exploitation requires an application to open an attacker-influenced database and retrieve a malicious stored value, after which code runs in that process.
Summary
What happened
Insecure deserialization in sqlitedict 2.1.0 and earlier allows context-dependent attackers to execute arbitrary code from a crafted database. The default decode function passes each SQLite value BLOB directly to Python pickle.loads without restricting globals or validating object construction. Exploitation requires an application to open an attacker-influenced database and retrieve a malicious stored value, after which code runs in that process.
The record
- CVE
- CVE-2024-35515
- Published
- Sep 18, 2024
- Updated
- Sep 18, 2024
- Vendor
- sqlitedict
- Product
- sqlitedict
- Classifications
- CWE-502, CWE-94, T1204.002
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Sep 18, 2024CVE publishedPublication date reported by the CVE source.
- Sep 18, 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=0 <=2.1.0
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.
Weakness, pattern, technique
Public exploit references
- CVE-2024-35515 proof-of-concept reportproof of concept · unverified
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