Validation bypass via basename-keyed schema cache
Published Nov 29, 2024 · Updated Dec 2, 2024
Cache confusion in check-jsonschema before 0.30.0 allows attackers to bypass validation by priming the cache with a malicious remote schema. BoundCacheDownloader derives each cache filename only from the URL basename, so distinct origins ending in the same name share one cache entry. Exploitation requires a user or automation to run the tool against the attacker's schema URL before a trusted same-basename URL is checked, causing data that should fail validation to pass.
Summary
What happened
Cache confusion in check-jsonschema before 0.30.0 allows attackers to bypass validation by priming the cache with a malicious remote schema. BoundCacheDownloader derives each cache filename only from the URL basename, so distinct origins ending in the same name share one cache entry. Exploitation requires a user or automation to run the tool against the attacker's schema URL before a trusted same-basename URL is checked, causing data that should fail validation to pass.
The record
- CVE
- CVE-2024-53848
- Published
- Nov 29, 2024
- Updated
- Dec 2, 2024
- Vendor
- Python + JSON Schema
- Product
- check-jsonschema
- Classifications
- CWE-349, CAPEC-75, CAPEC-141, CAPEC-142
- Attack vector
- local
- Privileges
- unauthenticated
Timeline
How it unfolded
- Nov 29, 2024CVE publishedPublication date reported by the CVE source.
- Dec 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=< 0.30.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
No public exploit references are available in this record.
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