GitHub Advisoryadvisory · PyPI
GHSA-fm67-cv37-96ff Potential double free of buffer during string decoding
MEDIUM
Official page ↗
- Aliases
- CVE-2022-31117
- Ecosystem
- PyPI
- Packages
- ujson
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-415
- Reviewed
- 2022-07-05
Affected packages
• PyPI ujson: < 5.4.0 → fixed in 5.4.0
Description
Impact
_What kind of vulnerability is it? Who is impacted?_
When an error occurs while reallocating the buffer for string decoding, the buffer gets freed twice.
Due to how UltraJSON uses the internal decoder, this double free is impossible to trigger from Python.
Patches
_Has the problem been patched? What versions should users upgrade to?_
Users should upgrade to UltraJSON 5.4.0.
Workarounds
_Is there a way for users to fix or remediate the vulnerability without upgrading?_
There is no workaround.
For more information
If you have any questions or comments about this advisory:
• Open an issue in UltraJSON
Related
Alias · CVE (1)
- CVE-2022-31117 UltraJSON is a fast JSON encoder and decoder written in pure C with bindings for Python 3.7+. vulnerability
Weakness · CWE (1)
- CWE-415 Double Free weakness
References
- https://github.com/ultrajson/ultrajson/security/advisories/GHSA-fm67-cv37-96ff web
- https://nvd.nist.gov/vuln/detail/CVE-2022-31117 advisory
- https://github.com/ultrajson/ultrajson/commit/9c20de0f77b391093967e25d01fb48671104b15b web
- https://github.com/ultrajson/ultrajson package
- https://lists.fedoraproject.org/archives/list/[email protected]/message/NAU5N4A7EUK2AMUCOLYDD5ARXAJYZBD2 web
- https://lists.fedoraproject.org/archives/list/[email protected]/message/OPPU5FZP3LCTXYORFH7NHUMYA5X66IA7 web