{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "4.2.0"
                  },
                  {
                    "fixed": "6.0.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "12492c2deb0e60ac66da40dc15f06ba967ed3e0a"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "6.0.0",
                "range": [
                  {
                    "fixed": "12492c2deb0e60ac66da40dc15f06ba967ed3e0a"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "cd58a9ba92a41ced9f5ab70cc09a343d5c7c2290"
            },
            {
              "fixed": "12492c2deb0e60ac66da40dc15f06ba967ed3e0a"
            }
          ],
          "repo": "https://github.com/ultrajson/ultrajson",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-8g3h-c45c-7pg3"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-401"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/145xxx/CVE-2026-145573.json"
  },
  "details": "UltraJSON 4.2.0 before 6.0.0 contains a memory leak in Object_beginTypeContext() that fails to release objects returned by a caller-supplied default handler. Attackers who can repeatedly trigger encoding of values whose default handler returns non-serializable objects leak one object per failed call, gradually exhausting process memory.",
  "id": "CVE-2026-145573",
  "modified": "2026-12-05T15:45:52.402261833Z",
  "published": "2026-12-05T14:43:06.168Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/145xxx/CVE-2026-145573.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/ultrajson/ultrajson"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/ultrajson/ultrajson/blob/5.13.0/src/ujson/python/objToJSON.c#L543-L590"
    },
    {
      "type": "FIX",
      "url": "https://github.com/ultrajson/ultrajson/commit/12492c2deb0e60ac66da40dc15f06ba967ed3e0a"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/ultrajson/ultrajson/releases/tag/6.0.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/ultrajson/ultrajson/security/advisories/GHSA-8g3h-c45c-7pg3"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-145573"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/ultrajson-4.2.0-before-6.0.0-memory-leak-via-ujson-dumps-default-handler"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "UltraJSON 4.2.0 before 6.0.0 Memory Leak via ujson.dumps() default Handler"
}