CVE-2026-145573

medium

Description

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.

References

https://www.vulncheck.com/advisories/ultrajson-4.2.0-before-6.0.0-memory-leak-via-ujson-dumps-default-handler

https://github.com/ultrajson/ultrajson/security/advisories/GHSA-8g3h-c45c-7pg3

https://github.com/ultrajson/ultrajson/releases/tag/6.0.0

https://github.com/ultrajson/ultrajson/commit/12492c2deb0e60ac66da40dc15f06ba967ed3e0a

https://github.com/ultrajson/ultrajson/blob/5.13.0/src/ujson/python/objToJSON.c#L543-L590

https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-145705

Details

Source: Mitre, NVD

Published: 2026-12-05

Updated: 2026-12-05

CVSS v3

Base Score: 3.7

Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L

Severity: Low

CVSS v4

Base Score: 6.3

Vector: 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

Severity: Medium