USN-6629-2 (UBUNTU-CVE-2021-45958)

Vulnerability from osv_ubuntu – Published: 2024-02-14 02:58 – Updated: 2026-11-24 09:37 – Source website
VLAI
Summary
ujson vulnerability
Details

USN-6629-1 fixed vulnerabilities in UltraJSON. This update provides the corresponding updates for Ubuntu 20.04 LTS.

Original advisory details:

It was discovered that UltraJSON incorrectly handled certain input with a large amount of indentation. An attacker could possibly use this issue to crash the program, resulting in a denial of service. (CVE-2021-45958)

Jake Miller discovered that UltraJSON incorrectly decoded certain characters. An attacker could possibly use this issue to cause key confusion and overwrite values in dictionaries. (CVE-2022-31116)

It was discovered that UltraJSON incorrectly handled an error when reallocating a buffer for string decoding. An attacker could possibly use this issue to corrupt memory. (CVE-2022-31117)

Impacted products
Ecosystem Package Version
Ubuntu:20.04:LTS ujson
pkg:deb/ubuntu/ujson@1.35-4ubuntu0.1?arch=source&distro=focal
Affected: < 1.35-4ubuntu0.1 (ecosystem)
1.35-3build11.35-3build21.35-41.35-4build1

{
  "affected": [
    {
      "database_specific": {
        "cves_map": {
          "cves": [
            {
              "id": "CVE-2021-45958",
              "severity": [
                {
                  "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H",
                  "source": "NVD",
                  "type": "CVSS_V3"
                },
                {
                  "score": "medium",
                  "source": "SELF",
                  "type": "Ubuntu"
                }
              ]
            }
          ],
          "ecosystem": "Ubuntu:20.04:LTS"
        }
      },
      "ecosystem_specific": {
        "availability": "No subscription required",
        "binaries": [
          {
            "binary_name": "python3-ujson",
            "binary_version": "1.35-4ubuntu0.1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:20.04:LTS",
        "name": "ujson",
        "purl": "pkg:deb/ubuntu/ujson@1.35-4ubuntu0.1?arch=source\u0026distro=focal"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.35-4ubuntu0.1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "1.35-3build1",
        "1.35-3build2",
        "1.35-4",
        "1.35-4build1"
      ]
    }
  ],
  "aliases": [],
  "details": "USN-6629-1 fixed vulnerabilities in UltraJSON.\nThis update provides the corresponding updates for Ubuntu 20.04 LTS.\n\nOriginal advisory details:\n\n It was discovered that UltraJSON incorrectly handled certain input with\n a large amount of indentation. An attacker could possibly use this issue\n to crash the program, resulting in a denial of service. (CVE-2021-45958)\n \n Jake Miller discovered that UltraJSON incorrectly decoded certain\n characters. An attacker could possibly use this issue to cause key\n confusion and overwrite values in dictionaries. (CVE-2022-31116)\n \n It was discovered that UltraJSON incorrectly handled an error when\n reallocating a buffer for string decoding. An attacker could possibly\n use this issue to corrupt memory. (CVE-2022-31117)\n",
  "id": "USN-6629-2",
  "modified": "2026-11-24T09:37:35Z",
  "published": "2024-02-14T02:58:36Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://ubuntu.com/security/notices/USN-6629-2"
    },
    {
      "type": "REPORT",
      "url": "https://ubuntu.com/security/CVE-2021-45958"
    }
  ],
  "related": [],
  "schema_version": "1.9.2",
  "summary": "ujson vulnerability",
  "upstream": [
    "UBUNTU-CVE-2021-45958"
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.