CVE-2024-27454 orjson does not limit recursion for deeply nested JSON documents

High 7.5 Published Updated

Attackers can cause denial of service in applications using orjson by submitting deeply nested JSON documents that trigger excessive recursion.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-27454?

CVE-2024-27454 is a high-severity denial of service vulnerability in n/a, published on 26 Feb 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

orjson.loads in orjson before 3.9.15 does not limit recursion for deeply nested JSON documents.

Weakness: CWE-674

Which versions are affected by CVE-2024-27454?

3 open source packages ship an affected version, including orjson. It affects 1 product.

PackageAffectedFixed in
orjson PyPIAll versions3.9.15
orjson PyPIAll versions3.9.15
orjson PyPIAll versions3.9.15
Linux distribution packages (2)
python-orjson openSUSE:TumbleweedAll versions3.11.9-1.4
python-python-rapidjson openSUSE:TumbleweedAll versions1.23-1.4

Products include Ijl Orjson.

How do I fix CVE-2024-27454?

Upgrade orjson to 3.9.15 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2024-27454 being exploited?

There is no known exploitation of CVE-2024-27454 in the wild and no public exploit code.

Sources

Also known as CLSA-2026-1787140595, DEBIAN-CVE-2024-27454, ECHO-858e-faea-85ef, GHSA-pwr2-4v36-6qpr, PYSEC-2024-40, ROOT-APP-PYPI-CVE-2024-27454 and 4 more.

Is CVE-2024-27454 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free