Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2022-31117— Double free of buffer during string decoding in ujson

Quick assessment

Affected
ultrajson ultrajson
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

UltraJSON是开源的一个超快的 JSON 编码器和解码器,用纯 C 语言编写,并绑定了 Python 3.7+。 UltraJSON 5.4.0之前版本存在资源管理错误漏洞,该漏洞源于为字符串解码重新分配缓冲区时发生错误,可能导致缓冲区被释放两次。

CVSS 5.9 · Medium EPSS 1.82% · P78

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2022-31117

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Double free of buffer during string decoding in ujson
Source: CVE Program / CVE List V5
Vulnerability Description
UltraJSON is a fast JSON encoder and decoder written in pure C with bindings for Python 3.7+. In versions prior to 5.4.0 an error occurring while reallocating a buffer for string decoding can cause the buffer to get freed twice. Due to how UltraJSON uses the internal decoder, this double free is impossible to trigger from Python. This issue has been resolved in version 5.4.0 and all users should upgrade to UltraJSON 5.4.0. There are no known workarounds for this issue.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
双重释放
Source: CVE Program / CVE List V5
Vulnerability Title
UltraJSON 资源管理错误漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
UltraJSON是开源的一个超快的 JSON 编码器和解码器,用纯 C 语言编写,并绑定了 Python 3.7+。 UltraJSON 5.4.0之前版本存在资源管理错误漏洞,该漏洞源于为字符串解码重新分配缓冲区时发生错误,可能导致缓冲区被释放两次。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
ultrajson ultrajson < 5.4.0 -

II. Public POCs for CVE-2022-31117

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2022-31117

登录查看更多情报信息。

Patches & Fixes for CVE-2022-31117 (1)

Vendor Advisories for CVE-2022-31117 (1)

Mailing List Discussions for CVE-2022-31117 (2)

IV. Related Vulnerabilities

V. Comments for CVE-2022-31117

No comments yet


Leave a comment