PT-2024-21108 · Yyjson · Yyjson

Alsoprach

·

Published

2024-02-10

·

Updated

2025-09-17

·

CVE-2024-25713

CVSS v4.0

8.8

High

VectorAV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions yyjson versions 0.8.0 and earlier
Description The issue is related to a double free vulnerability in the pool series allocator, specifically due to the lack of loop checks in the pool free function. This can lead to remote code execution in some cases. The vulnerability is caused by the pool free function not performing pointer destruction, resulting in Use-After-Free (UAF) vulnerabilities. Arbitrary address writing, combined with other legitimate or illegitimate operations of programs using this library, can lead to remote code execution.
Recommendations For yyjson versions 0.8.0 and earlier, consider applying the defensive patch provided by the developer, which will cause the program to crash immediately if yyjson mut doc free() is called twice on the same doc, alerting to the incorrect usage. As a temporary workaround, ensure that yyjson mut doc free() is not called multiple times on the same document to prevent the double free vulnerability.

Fix

RCE

Code Injection

Weakness Enumeration

Related Identifiers

CVE-2024-25713
GHSA-Q4M7-9PCM-FPXH
GHSA-WHX6-M9J4-W2M2

Affected Products

Yyjson