cve.bz

CVE-2024-53848 python-jsonschema check-jsonschema

7.1 highEPSS 0.1%Fix available

High (7.1) in python-jsonschema check-jsonschema. EPSS 0.1% estimated probability of exploitation activity in the next 30 days. Fixed in check-jsonschema 0.30.0.

On this page
check-jsonschema is a CLI and set of pre-commit hooks for jsonschema validation. The default cache strategy uses the basename of a remote schema as the name of the file in the cache, e.g. `https://example.org/schema.json` will be stored as `schema.json`. This naming allows for conflicts. If an attacker can get a user to run `check-jsonschema` against a malicious schema URL, e.g., `https://example.evil.org/schema.json`, they can insert their own schema into the cache and it will be picked up and used instead of the appropriate schema. Such a cache confusion attack could be used to allow data to pass validation which should have been rejected. This issue has been patched in version 0.30.0. All users are advised to upgrade. A few workarounds exist: 1. Users can use `--no-cache` to disable caching. 2. Users can use `--cache-filename` to select filenames for use in the cache, or to ensure that other usages do not overwrite the cached schema. (Note: this flag is being deprecated as part of the remediation effort.) 3. Users can explicitly download the schema before use as a local file, as in `curl -LOs https://example.org/schema.json; check-jsonschema --schemafile ./schema.json`

Severity

CVSS 3.1

7.1 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N
EPSS
0.1% (unchanged from 0.1% a week ago; 0.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 4th percentile. Scored 2026-11-23. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-12-02. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-349 Acceptance of Extraneous Untrusted Data With Trusted Data
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • check-jsonschema (PyPI): fixed in 0.30.0

Ask an AI about this CVE

Show the promptExplain CVE-2024-53848 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-53848?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-53848?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-53848 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
python-jsonschema check-jsonschema< 0.30.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-q6mv-284r-mp36PyPIcheck-jsonschema<0.30.00.30.0
PYSEC-2026-1245PyPIcheck-jsonschema<0.30.00.30.0

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability is of significant severity because it directly undermines the integrity of the JSON schema validation process, a important mechanism for ensuring data consistency and security in many applications. By exploiting the cache naming collision, an attacker can inject a malicious schema that bypasses intended validation rules, leading to the acceptance of unauthorized or malformed data. Such a compromise can result in cascading effects, including data corruption, application malfunction, and potential exploitation of downstream systems relying on the validated data. The broad applicability of JSON schema validation across diverse systems amplifies the potential impact, elevating this issue from moderate to a high-severity concern, particularly in environments where schema validation is a key line of defense against invalid or malicious input.

Red Hat's mitigation

- Users can use --no-cache to disable caching.

- Users can use --cache-filename to select filenames for use in the cache, or to ensure that other usages do not overwrite the cached schema. (Note: this flag is being deprecated as part of the remediation effort.)

- Users can explicitly download the schema before use as a local file, as in curl -LOs https://example.org/schema.json; check-jsonschema --schemafile ./schema.json

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-53848.

Attack patterns (CAPEC)

  • CAPEC-75 Manipulating Writeable Configuration Files Likelihood: High · Severity: Very High
  • CAPEC-141 Cache Poisoning Likelihood: High · Severity: High
  • CAPEC-142 DNS Cache Poisoning Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON