CVE-2024-25713 yyjson has a Double Free vulnerability

High 8.6 Published Updated

A double free vulnerability in the yyjson library allows remote attackers to execute arbitrary code via crafted JSON input.

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-25713?

CVE-2024-25713 is a high-severity memory corruption vulnerability in Fedoraproject Fedora, published on 11 Feb 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

yyjson through 0.8.0 has a double free, leading to remote code execution in some cases, because the pool_free function lacks loop checks. (pool_free is part of the pool series allocator, along with pool_malloc and pool_realloc.)

Weakness: CWE-94

Which versions are affected by CVE-2024-25713?

2 open source packages ship an affected version, including github.com/ibireme/yyjson. It affects 2 products.

PackageAffectedFixed in
github.com/ibireme/yyjson SwiftURLAll versions0.9.0
github.com/ibireme/yyjson SwiftURLAll versions0.9.0

Products include Fedoraproject Fedora, Ibireme Yyjson.

How do I fix CVE-2024-25713?

Upgrade github.com/ibireme/yyjson to 0.9.0 or later.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2024-25713 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-25713 exists.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as GHSA-q4m7-9pcm-fpxh, GHSA-whx6-m9j4-w2m2.

Is CVE-2024-25713 in your software?

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

Check your SBOMs for free