CVE-2021-45958
UltraJSON ujson Stack-Based Buffer Overflow Vulnerability
Description
UltraJSON (aka ujson) through 5.1.0 has a stack-based buffer overflow in Buffer_AppendIndentUnchecked (called from encode). Exploitation can, for example, use a large amount of indentation.
INFO
Published Date :
Jan. 1, 2022, 12:15 a.m.
Last Modified :
Nov. 7, 2023, 3:39 a.m.
Source :
[email protected]
Remotely Exploitable :
No
Impact Score :
3.6
Exploitability Score :
1.8
Affected Products
The following products are affected by CVE-2021-45958
vulnerability.
Even if cvefeed.io
is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2021-45958
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2021-45958
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2021-45958
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Modified by [email protected]
Nov. 07, 2023
Action Type Old Value New Value Added Reference MITRE https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CN7W3GOXALINKFUUE7ICQIC2EF5HNKUQ/ [No types assigned] Added Reference MITRE https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ULX35TSWLBBIMEH44MUORPXYYRZKEDC6/ [No types assigned] Added Reference MITRE https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/O6JUWQTJLA2CMG4CJN7DCUVSOXLZIIXL/ [No types assigned] Added Reference MITRE https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NAU5N4A7EUK2AMUCOLYDD5ARXAJYZBD2/ [No types assigned] Removed Reference MITRE https://lists.fedoraproject.org/archives/list/[email protected]/message/CN7W3GOXALINKFUUE7ICQIC2EF5HNKUQ/ Removed Reference MITRE https://lists.fedoraproject.org/archives/list/[email protected]/message/ULX35TSWLBBIMEH44MUORPXYYRZKEDC6/ Removed Reference MITRE https://lists.fedoraproject.org/archives/list/[email protected]/message/O6JUWQTJLA2CMG4CJN7DCUVSOXLZIIXL/ Removed Reference MITRE https://lists.fedoraproject.org/archives/list/[email protected]/message/NAU5N4A7EUK2AMUCOLYDD5ARXAJYZBD2/ -
Modified Analysis by [email protected]
Sep. 10, 2022
Action Type Old Value New Value Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/NAU5N4A7EUK2AMUCOLYDD5ARXAJYZBD2/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/NAU5N4A7EUK2AMUCOLYDD5ARXAJYZBD2/ Mailing List, Third Party Advisory Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/O6JUWQTJLA2CMG4CJN7DCUVSOXLZIIXL/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/O6JUWQTJLA2CMG4CJN7DCUVSOXLZIIXL/ Mailing List, Patch, Third Party Advisory Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/ULX35TSWLBBIMEH44MUORPXYYRZKEDC6/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/ULX35TSWLBBIMEH44MUORPXYYRZKEDC6/ Mailing List, Patch, Third Party Advisory Changed CPE Configuration OR *cpe:2.3:a:ultrajson_project:ultrajson:*:*:*:*:*:python:*:* versions up to (including) 5.1.0 OR *cpe:2.3:a:ultrajson_project:ultrajson:*:*:*:*:*:python:*:* versions up to (excluding) 5.2.0 Changed CPE Configuration OR *cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* OR *cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* *cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* *cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:* -
CVE Modified by [email protected]
Aug. 03, 2022
Action Type Old Value New Value Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/NAU5N4A7EUK2AMUCOLYDD5ARXAJYZBD2/ [No Types Assigned] -
CVE Modified by [email protected]
May. 07, 2022
Action Type Old Value New Value Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/ULX35TSWLBBIMEH44MUORPXYYRZKEDC6/ [No Types Assigned] Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/O6JUWQTJLA2CMG4CJN7DCUVSOXLZIIXL/ [No Types Assigned] -
Modified Analysis by [email protected]
Apr. 19, 2022
Action Type Old Value New Value Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/CN7W3GOXALINKFUUE7ICQIC2EF5HNKUQ/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/CN7W3GOXALINKFUUE7ICQIC2EF5HNKUQ/ Mailing List, Third Party Advisory Added CPE Configuration OR *cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* -
CVE Modified by [email protected]
Mar. 26, 2022
Action Type Old Value New Value Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/CN7W3GOXALINKFUUE7ICQIC2EF5HNKUQ/ [No Types Assigned] -
Modified Analysis by [email protected]
Mar. 16, 2022
Action Type Old Value New Value Changed Reference Type https://github.com/ultrajson/ultrajson/issues/501 No Types Assigned https://github.com/ultrajson/ultrajson/issues/501 Exploit, Issue Tracking, Third Party Advisory Changed Reference Type https://github.com/ultrajson/ultrajson/issues/502#issuecomment-1031747284 No Types Assigned https://github.com/ultrajson/ultrajson/issues/502#issuecomment-1031747284 Issue Tracking, Patch, Third Party Advisory Changed Reference Type https://github.com/ultrajson/ultrajson/pull/504 No Types Assigned https://github.com/ultrajson/ultrajson/pull/504 Patch, Third Party Advisory Changed Reference Type https://lists.debian.org/debian-lts-announce/2022/02/msg00023.html No Types Assigned https://lists.debian.org/debian-lts-announce/2022/02/msg00023.html Mailing List, Third Party Advisory Changed CPE Configuration OR *cpe:2.3:a:ultrajson_project:ultrajson:*:*:*:*:*:python:*:* versions from (including) 4.0.2 up to (including) 5.0.0 OR *cpe:2.3:a:ultrajson_project:ultrajson:*:*:*:*:*:python:*:* versions up to (including) 5.1.0 Added CPE Configuration OR *cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* -
CVE Modified by [email protected]
Feb. 27, 2022
Action Type Old Value New Value Added Reference https://lists.debian.org/debian-lts-announce/2022/02/msg00023.html [No Types Assigned] -
CVE Modified by [email protected]
Feb. 14, 2022
Action Type Old Value New Value Added Reference https://github.com/ultrajson/ultrajson/pull/504 [No Types Assigned] -
CVE Modified by [email protected]
Feb. 07, 2022
Action Type Old Value New Value Changed Description ** DISPUTED ** UltraJSON (aka ujson) 4.0.2 through 5.0.0 has a stack-based buffer overflow in Buffer_AppendIndentUnchecked (called from encode). NOTE: multiple third parties dispute whether this is a confirmed finding, because the event that caused the Reproducer Testcase to stop indicating a buffer overflow was a change to the AFLplusplus project (5525f8c9ef8bb879dadd0eb942d524827d1b0362), not a change to the UltraJSON project. UltraJSON (aka ujson) through 5.1.0 has a stack-based buffer overflow in Buffer_AppendIndentUnchecked (called from encode). Exploitation can, for example, use a large amount of indentation. Added Reference https://github.com/ultrajson/ultrajson/issues/501 [No Types Assigned] Added Reference https://github.com/ultrajson/ultrajson/issues/502#issuecomment-1031747284 [No Types Assigned] -
CVE Modified by [email protected]
Feb. 07, 2022
Action Type Old Value New Value Changed Description UltraJSON (aka ujson) 4.0.2 through 5.0.0 has a stack-based buffer overflow in Buffer_AppendIndentUnchecked (called from encode). ** DISPUTED ** UltraJSON (aka ujson) 4.0.2 through 5.0.0 has a stack-based buffer overflow in Buffer_AppendIndentUnchecked (called from encode). NOTE: multiple third parties dispute whether this is a confirmed finding, because the event that caused the Reproducer Testcase to stop indicating a buffer overflow was a change to the AFLplusplus project (5525f8c9ef8bb879dadd0eb942d524827d1b0362), not a change to the UltraJSON project. -
Initial Analysis by [email protected]
Jan. 11, 2022
Action Type Old Value New Value Added CVSS V2 Metadata Victim must voluntarily interact with attack mechanism Added CVSS V2 NIST (AV:N/AC:M/Au:N/C:N/I:N/A:P) Added CVSS V3.1 NIST AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H Changed Reference Type https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=36009 No Types Assigned https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=36009 Exploit, Issue Tracking, Third Party Advisory Changed Reference Type https://github.com/google/oss-fuzz-vulns/blob/main/vulns/ujson/OSV-2021-955.yaml No Types Assigned https://github.com/google/oss-fuzz-vulns/blob/main/vulns/ujson/OSV-2021-955.yaml Exploit, Third Party Advisory Added CWE NIST CWE-787 Added CPE Configuration OR *cpe:2.3:a:ultrajson_project:ultrajson:*:*:*:*:*:python:*:* versions from (including) 4.0.2 up to (including) 5.0.0
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2021-45958
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2021-45958
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.13 }} 0.03%
score
0.46209
percentile