Skip to content

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

HighCVSS 7.1 EPSS 0.15%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

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

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
pypi check-jsonschema(PyPI) < 0.30.0; = 0.1.0; = 0.1.1; = 0.2.0 +72 more 0.30.0 Fixed
python-jsonschema check-jsonschema = < 0.30.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi check-jsonschema(PyPI) < 0.30.0 0.30.0
pypi check-jsonschema(PyPI) = 0.1.0 No fix listed
pypi check-jsonschema(PyPI) = 0.1.1 No fix listed
pypi check-jsonschema(PyPI) = 0.10.0 No fix listed
pypi check-jsonschema(PyPI) = 0.10.1 No fix listed
pypi check-jsonschema(PyPI) = 0.10.2 No fix listed
pypi check-jsonschema(PyPI) = 0.11.0 No fix listed
pypi check-jsonschema(PyPI) = 0.12.0 No fix listed
pypi check-jsonschema(PyPI) = 0.13.0 No fix listed
pypi check-jsonschema(PyPI) = 0.14.0 No fix listed
pypi check-jsonschema(PyPI) = 0.14.1 No fix listed
pypi check-jsonschema(PyPI) = 0.14.2 No fix listed
pypi check-jsonschema(PyPI) = 0.14.3 No fix listed
pypi check-jsonschema(PyPI) = 0.15.0 No fix listed
pypi check-jsonschema(PyPI) = 0.15.1 No fix listed
pypi check-jsonschema(PyPI) = 0.16.0 No fix listed
pypi check-jsonschema(PyPI) = 0.16.1 No fix listed
pypi check-jsonschema(PyPI) = 0.16.2 No fix listed
pypi check-jsonschema(PyPI) = 0.17.0 No fix listed
pypi check-jsonschema(PyPI) = 0.17.1 No fix listed
pypi check-jsonschema(PyPI) = 0.18.0 No fix listed
pypi check-jsonschema(PyPI) = 0.18.1 No fix listed
pypi check-jsonschema(PyPI) = 0.18.2 No fix listed
pypi check-jsonschema(PyPI) = 0.18.3 No fix listed
pypi check-jsonschema(PyPI) = 0.18.4 No fix listed
Show 52 more
ProductAffected versionsFixed in
pypi check-jsonschema(PyPI) = 0.19.0 No fix listed
pypi check-jsonschema(PyPI) = 0.19.1 No fix listed
pypi check-jsonschema(PyPI) = 0.19.2 No fix listed
pypi check-jsonschema(PyPI) = 0.2.0 No fix listed
pypi check-jsonschema(PyPI) = 0.2.1 No fix listed
pypi check-jsonschema(PyPI) = 0.20.0 No fix listed
pypi check-jsonschema(PyPI) = 0.21.0 No fix listed
pypi check-jsonschema(PyPI) = 0.22.0 No fix listed
pypi check-jsonschema(PyPI) = 0.23.0 No fix listed
pypi check-jsonschema(PyPI) = 0.23.1 No fix listed
pypi check-jsonschema(PyPI) = 0.23.2 No fix listed
pypi check-jsonschema(PyPI) = 0.23.3 No fix listed
pypi check-jsonschema(PyPI) = 0.24.0 No fix listed
pypi check-jsonschema(PyPI) = 0.24.1 No fix listed
pypi check-jsonschema(PyPI) = 0.25.0 No fix listed
pypi check-jsonschema(PyPI) = 0.26.0 No fix listed
pypi check-jsonschema(PyPI) = 0.26.1 No fix listed
pypi check-jsonschema(PyPI) = 0.26.2 No fix listed
pypi check-jsonschema(PyPI) = 0.26.3 No fix listed
pypi check-jsonschema(PyPI) = 0.27.0 No fix listed
pypi check-jsonschema(PyPI) = 0.27.1 No fix listed
pypi check-jsonschema(PyPI) = 0.27.2 No fix listed
pypi check-jsonschema(PyPI) = 0.27.3 No fix listed
pypi check-jsonschema(PyPI) = 0.27.4 No fix listed
pypi check-jsonschema(PyPI) = 0.28.0 No fix listed
pypi check-jsonschema(PyPI) = 0.28.1 No fix listed
pypi check-jsonschema(PyPI) = 0.28.2 No fix listed
pypi check-jsonschema(PyPI) = 0.28.3 No fix listed
pypi check-jsonschema(PyPI) = 0.28.4 No fix listed
pypi check-jsonschema(PyPI) = 0.28.5 No fix listed
pypi check-jsonschema(PyPI) = 0.28.6 No fix listed
pypi check-jsonschema(PyPI) = 0.29.0 No fix listed
pypi check-jsonschema(PyPI) = 0.29.1 No fix listed
pypi check-jsonschema(PyPI) = 0.29.2 No fix listed
pypi check-jsonschema(PyPI) = 0.29.3 No fix listed
pypi check-jsonschema(PyPI) = 0.29.4 No fix listed
pypi check-jsonschema(PyPI) = 0.3.0 No fix listed
pypi check-jsonschema(PyPI) = 0.3.1 No fix listed
pypi check-jsonschema(PyPI) = 0.3.2 No fix listed
pypi check-jsonschema(PyPI) = 0.4.0 No fix listed
pypi check-jsonschema(PyPI) = 0.4.1 No fix listed
pypi check-jsonschema(PyPI) = 0.5.0 No fix listed
pypi check-jsonschema(PyPI) = 0.5.1 No fix listed
pypi check-jsonschema(PyPI) = 0.6.0 No fix listed
pypi check-jsonschema(PyPI) = 0.7.0 No fix listed
pypi check-jsonschema(PyPI) = 0.7.1 No fix listed
pypi check-jsonschema(PyPI) = 0.8.0 No fix listed
pypi check-jsonschema(PyPI) = 0.8.1 No fix listed
pypi check-jsonschema(PyPI) = 0.8.2 No fix listed
pypi check-jsonschema(PyPI) = 0.9.0 No fix listed
pypi check-jsonschema(PyPI) = 0.9.1 No fix listed
python-jsonschema check-jsonschema = < 0.30.0 No fix listed

References