# CVE-2024-53848: check-jsonschema default caching for remote schemas allows for cache confusion

- Severity: High 7.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2024-11-29T18:39:11.195Z
- Modified: 2026-07-07T17:56:52.820Z
- Also known as: GHSA-q6mv-284r-mp36, PYSEC-2026-1245
- Weaknesses: CWE-349
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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`

(As written by CVE List.)

## Affected

- python-jsonschema check-jsonschema: < 0.30.0
- check-jsonschema (PyPI): before 0.30.0

## Every score

- GitHub_M: 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`
- GitHub: CVSS:3.1 7.1 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:H/SA:N`
- PyPA Advisory Database: 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`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:H/SA:N`

## References

- <https://github.com/python-jsonschema/check-jsonschema/security/advisories/GHSA-q6mv-284r-mp36> (web)
- <https://github.com/python-jsonschema/check-jsonschema/commit/c52714b85e6725b1b24516fbdedacb333b939152> (fix, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-53848> (advisory)
- <https://github.com/python-jsonschema/check-jsonschema> (package)
- <https://pypi.org/project/check-jsonschema> (package)
- <https://github.com/advisories/GHSA-q6mv-284r-mp36> (advisory)

## Sources

- CVE List: [CVE-2024-53848](https://www.cve.org/CVERecord?id=CVE-2024-53848), CVE Terms of Use, modified 2024-12-02
- GitHub Advisory Database: [GHSA-q6mv-284r-mp36](https://github.com/advisories/GHSA-q6mv-284r-mp36), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2024-53848](https://nvd.nist.gov/vuln/detail/CVE-2024-53848), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1245](https://osv.dev/vulnerability/PYSEC-2026-1245), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-53848 · Whole record: https://cve.day/CVE-2024-53848.json · Rebuilt by cve.day 2026-11-25T22:58:49.553Z
