CVE-2024-25713 json
yyjson has a Double Free vulnerability
published 2024-02-11 2 y ago modified 2026-07-08 4 mo ago also EUVD-2024-0754 , GHSA-q4m7-9pcm-fpxh , GHSA-whx6-m9j4-w2m2
- cvss
- 8.6
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.8%
- EPSS 1.8% chance of exploitation in 30 days, percentile 79%
- public exploits
- 0
- none known
Summary
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.)
Patch / fix
- swift github.com/ibireme/yyjson 0.9.0
- ibireme yyjson 0.9.0
- yyjson yyjson 0.9.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-25713 updated
yyjson: double free leading to remote code execution
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 2 y ago
Exploit prediction
1.84% chance of exploitation in the next 30 days, higher than 79% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/ibireme/yyjson/security/advisories/GHSA-q4m7-9pcm-fpxh referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L |
| GitHub | 3.1 | 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L |
| CNA | 3.1 | 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| swift | github.com/ibireme/yyjson | <0.9.0 |
0.9.0 |
Affected products
- yyjson yyjson
Classification
- Weakness
-
- CWE-94 Improper Control of Generation of Code
References
-
github.com
/ibireme/yyjson/commit/0eca326fe57aeeb866e6f04c9ef9ea9f8343157e
web
-
github.com
/ibireme/yyjson/security/advisories/GHSA-q4m7-9pcm-fpxh
web, exploit, vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/NNICQVIF7BRYFWYRL3HPVAJIPXN4OVTX/
vendor-advisory, mailing-list
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/6KQ67T4R7QEWURW5NMCCVLTBASL4ECHE/
vendor-advisory, mailing-list
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/TKQPEREDUDKGYJMFNFDQVYCVLWDRO2Y2/
vendor-advisory, mailing-list
- lists.fedoraproject.org /archives/list/package-announce@lists.fedoraproject.org/message/TKQPEREDUDKGYJMFNFDQVYCVLWDRO2Y2/
- lists.fedoraproject.org /archives/list/package-announce@lists.fedoraproject.org/message/6KQ67T4R7QEWURW5NMCCVLTBASL4ECHE/
- lists.fedoraproject.org /archives/list/package-announce@lists.fedoraproject.org/message/NNICQVIF7BRYFWYRL3HPVAJIPXN4OVTX/
-
nvd.nist.gov
/vuln/detail/CVE-2024-25713
advisory
-
github.com
/ibireme/yyjson
package
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/6KQ67T4R7QEWURW5NMCCVLTBASL4ECHE
web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/NNICQVIF7BRYFWYRL3HPVAJIPXN4OVTX
web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/TKQPEREDUDKGYJMFNFDQVYCVLWDRO2Y2
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/6KQ67T4R7QEWURW5NMCCVLTBASL4ECHE
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/NNICQVIF7BRYFWYRL3HPVAJIPXN4OVTX
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/TKQPEREDUDKGYJMFNFDQVYCVLWDRO2Y2
web
Sources
- CVE List CVE-2024-25713
- GitHub Advisory GHSA-whx6-m9j4-w2m2
- NVD CVE-2024-25713
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.