UltraJSON: Memory Leak in ujson.dump() on Write Failure
ultrajson · ultrajson
Official source article: GitHub GHSA-C38F-WX89-P2XG ↗. Check the applicable product and release in the original source.
8.7HighCVSS 4.0
Recommended action
Patch only the product branches with a verified fix
High technical severity with public exploit material referenced by a structured source; prioritise exposed affected systems while verifying vendor guidance. Verified remediation exists for at least one product or source, but 2 structured product or package states remain unresolved. Apply remediation only to the exact product branch confirmed by its source.
Published severityHigh→Operational priority:Critical, raised one band.upgradedsince 30 May 2026
Evidence used
No CISA KEV confirmation is currently recorded.
A structured source references public exploit or proof-of-concept material.
The selected CVSS metric records a network-reachable, unauthenticated path with no user interaction.
EPSS is 0.64% for the current model date.
Compensating controls
Validate the affected product branch and deploy the verified fixed release.
Restrict the affected network interface to trusted sources where business-safe.
Increase monitoring for the attack path and post-exploitation behaviour described in the report.
Verification
Confirm that the asset runs ultrajson ultrajson and falls inside the recorded affected range.
Verify the installed build against the product-specific fixed version after deployment.
Validate exposure, authentication requirements and compensating controls in the actual environment.
Reopen this reassessment when CVSS, KEV, EPSS, exploit evidence or remediation changes.
Cross-source reconciliation
Remediation availability differs by product scope
Verified remediation exists for at least one product or source, but 2 structured product or package states remain unresolved. Apply remediation only to the exact product branch confirmed by its source.
Debian Security Tracker: 2 affected package states with no published fix
Distribution package intelligence
Release-specific package status
Debian, ubuntu findings are scoped to the named distribution, release and source package. An absent finding does not mean a package is unaffected.
6 package states
Package result overrides the generic status
BlackTree has verified remediation for at least one product or source, but the relevant distribution still reports no fixed package for 2 affected package states shown here. Treat those rows as affected with no fix until that distribution publishes a fixed version.
Repository candidate not checked
A published vendor fix does not prove that a matching update is enabled and installable on a particular asset. Confirm the local package candidate before scheduling remediation.
Distribution release
Source package
Vendor state
Fixed version
Evidence
Debian trixietrixie · source
ujson
Affected, no fix publishedDebian currently tracks this release as open.
These OSV and GitHub advisory ranges apply only to the named package and ecosystem. A listed fixed version is not a universal product patch or proof that an update is installed.
Structured product status and remediation from the issuing vendor. Product-state explanations are always visible; large lists can be searched or downloaded.
1 current
CVE-2026-44660 · CSAF 2.0 · revision 3 · finalRed Hat Product Securitypython-ujson: UltraJSON: Memory leak leading to Denial of Service
8 known affected
The vendor explicitly identifies these products as affected by this CVE.
exploit-intelligence-tech-preview/vulnerability-analysis-rhel9 as a component of Exploit Intelligence
mta/mta-generic-external-provider-rhel9 as a component of Migration Toolkit for Applications 8
rhelai3/bootc-cuda-rhel9 as a component of Red Hat Enterprise Linux AI (RHEL AI) 3
rhelai3/bootc-gaudi-rhel9 as a component of Red Hat Enterprise Linux AI (RHEL AI) 3
rhelai3/bootc-rocm-rhel9 as a component of Red Hat Enterprise Linux AI (RHEL AI) 3
rhelai3/disk-image-cuda-rhel9 as a component of Red Hat Enterprise Linux AI (RHEL AI) 3
rhoai/odh-feature-server-rhel9 as a component of Red Hat OpenShift AI (RHOAI)
rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9 as a component of Red Hat OpenShift AI (RHOAI)
Summary
A flaw was found in UltraJSON, a fast JSON encoder and decoder. When the `ujson.dump()` function attempts to write data to a file-like object and an error occurs during this operation, the memory allocated for the serialized JSON string is not properly released. This continuous failure to deallocate memory can lead to a memory leak, potentially causing resource exhaustion and a Denial of Service (DoS) for the affected system.
Remediation
For Red Hat OpenShift AI 2.25.9 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this errata update: https://docs.redhat.com/en/documentation/red_hat_openshift_ai/
Optional official sources
National CERT insights ?CERT means Computer Emergency Response Team; CSIRT is the closely related term Computer Security Incident Response Team.
Choose official national sources for this report. Each advisory shows its original language. Your selection is remembered on this device and included in shared links.
Official European source
ENISA European Vulnerability Database
Official EUVD identifiers, advisory evidence and known-exploited context. Missing fields are not treated as evidence of low risk.
1 current
ENISA EUVD identifier
EUVD-2026-32663
No EUVD known-exploited evidence
ENISA has published the identifier mapping but no EUVD description has been stored yet.
EUVD state
Present in the current official mapping
Known exploitation
Not present in the current ENISA EUVD known-exploited dataset. This is not proof of no exploitation.
ENISA score
Not supplied in the stored EUVD record
Advisory evidence
No linked advisory details stored yet
Recommended actionPatch only the product branches with a verified fix
High technical severity with public exploit material referenced by a structured source; prioritise exposed affected systems while verifying vendor guidance. Verified remediation exists for at least one product or source, but 2 structured product or package states remain unresolved. Apply remediation only to the exact product branch confirmed by its source.
Fix availability varies by product
01
What, why and how
UltraJSON is a fast JSON encoder and decoder written in pure C with bindings for Python 3.7+. Prior to 5.12.1, when ujson.dump() writes to a file-like object and the write operation raises an exception, the serialized JSON string object is not decremented, leaking memory. Each failed write operation leaks the full size of the serialized payload. This vulnerability is fixed in 5.12.1.
What
UltraJSON is a fast JSON encoder and decoder written in pure C with bindings for Python 3.7+. Prior to 5.12.1, when ujson.dump() writes to a file-like object and the write operation raises an exception, the serialized JSON string object is not decremented, leaking memory. Each failed write operation leaks the full size of the serialized payload. This vulnerability is fixed in 5.12.1.
Why
The product does not sufficiently track and release allocated memory after it has been used, making the memory unavailable for reallocation and reuse.
How
An attacker operating through a network path may attempt exploitation without authentication or user interaction. If successful, the issue may cause the confidentiality, integrity or availability impact described by the vendor.
What
UltraJSON is a fast JSON encoder and decoder written in pure C with bindings for Python 3.7+. Prior to 5.12.1, when ujson.dump() writes to a file-like object and the write operation raises an exception, the serialized JSON string object is not decremented, leaking memory. Each failed write operation leaks the full size of the serialized payload. This vulnerability is fixed in 5.12.1.
Why
The product does not sufficiently track and release allocated memory after it has been used, making the memory unavailable for reallocation and reuse.
How
An attacker operating through a network path may attempt exploitation without authentication or user interaction. If successful, the issue may cause the confidentiality, integrity or availability impact described by the vendor.
02
Exploit reality and attack path
CVSS severity, EPSS forecast probability, public exploit material and CISA-confirmed exploitation are separate signals.
Observed exploitation ?Confirmed exploitation and public exploit material are separate signals. Attacks can occur without public proof-of-concept or exploit code.No confirmed evidence
No CISA KEV match was present at the last successful refresh. This means no confirmation from that source, not proof of no exploitation.
Public PoC / exploit material ?Confirmed exploitation and public exploit material are separate signals. Attacks can occur without public proof-of-concept or exploit code.Reference recorded
A structured CVE source labels at least one public reference as exploit material. BlackTree has not independently validated that it is safe, reliable or weaponised.
Likely attack path
a network path → Missing Release of Memory after Effective Lifetime → cause the confidentiality, integrity or availability impact described by the vendor
Attack surface
Network
Privileges required
None: unauthenticated exploitation is possible
User interaction
None
Attack complexity
Low: no specialised conditions are recorded
Security boundary
Not a CVSS 4.0 base metric
Weakness ?CWE means Common Weakness Enumeration: a standard category for the underlying weakness.
CWE-401: Missing Release of Memory after Effective Lifetime. The product does not sufficiently track and release allocated memory after it has been used, making the memory unavailable for reallocation and reuse.
CVSS vector ?CVSS means Common Vulnerability Scoring System. The vector records the metric values used to calculate technical severity.
Common Vulnerability Scoring System 4.0: the compact vector below is decoded into plain language.
AVNetworkAttack vector: The vulnerable component can be reached over a network.ACLowAttack complexity: No specialised conditions are required beyond attacker-controlled input.ATNoneAttack requirements: No additional deployment or execution condition is required.PRNonePrivileges required: The attacker does not need an account or existing privileges.UINoneUser interaction: No action by another user is required.VCNoneVulnerable-system confidentiality: No direct loss is represented by this metric.VINoneVulnerable-system integrity: No direct loss is represented by this metric.VAHighVulnerable-system availability: A successful attack can cause a major loss.SCNoneSubsequent-system confidentiality: No direct loss is represented by this metric.SINoneSubsequent-system integrity: No direct loss is represented by this metric.SANoneSubsequent-system availability: No direct loss is represented by this metric.
Post-exploitation / living off the land
No specific living-off-the-land technique is confirmed in the structured sources. Monitor normal administration tools for activity inconsistent with the affected service's baseline.
Only matched European and national findings are included. Language selectors and unavailable sources are omitted.
ENISA EUVD · EUVD-2026-32663Official EUVD mapping
0 linked advisory records.
Official EUVD record ↗Cyber Security Agency of Singapore · English · CSA-SB-20260603Security Bulletin 3 Jun 2026
The Cyber Security Agency of Singapore included this CVE in its official Security Bulletin 3 Jun 2026, published on 3 June 2026. Open the linked bulletin for the product, severity and reference information published in that issue.
Official advisory ↗JVN iPedia · Japanese · JVNDB-2026-017810UltraJSON projectのUltraJSONにおける有効期限後のメモリの解放の欠如に関する脆弱性
Operational remediation based on structured source evidence.
Status ?Patch availability is based on structured fixed-version fields and authoritative update references. If no fix is verified, check the vendor advisory before making a change.
Use the product-specific evidence above. Patch only products with a verified fixed release, and keep every affected or under-investigation state without a matching fix in the remediation queue.
Workaround
A mitigation or workaround reference is available from the source linked below; validate it against the affected product and version.
04
Evidence and provenance
Published 27 May 2026 · Last source change 30 May 2026, 01:49 UTC · CWE-401 · Missing Release of Memory after Effective Lifetime
CVE recordCVE.org · 5.2
CVSS sourceCNA
EPSS source ?The date BlackTree first stored a score for this CVE from the daily FIRST EPSS feed.FIRST · tracked since 2026-08-14
European sourceENISA EUVD · EUVD-2026-32663
Product sourceVendor CSAF · Red Hat Product Security
Remediation sourceVendor CSAF · Red Hat Product Security
CWE sourceCNA
NVD statusNVD enriched
Core structured fields are present and their contributing authorities are shown above.
Affected versionsThe structured affected or fixed version information changed.
Before
exploit-intelligence-tech-preview/vulnerability-analysis-rhel9 as a component of Exploit Intelligence; mta/mta-generic-external-provider-rhel9 as a component of Migration Toolkit for Applications 8; rhelai3/bootc-cuda-rhel9 as a component of Red Hat Enterprise Linux AI (RHEL AI) 3; rhelai3/bootc-gaudi-rhel9 as a component of Red Hat Enterprise Linux AI (RHEL AI) 3; rhelai3/bootc-rocm-rhel9 as a component of Red Hat Enterprise Linux AI (RHEL AI) 3; rhelai3/disk-image-cuda-rhel9 as a component of Red Hat Enterprise Linux AI (RHEL AI) 3; rhoai/odh-caikit-nlp-rhel9 as a component of Red Hat OpenShift AI (RHOAI); rhoai/odh-feature-server-rhel9 as a component of Red Hat OpenShift AI (RHOAI); rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9 as a component of Red Hat OpenShift AI (RHOAI) · Fixed: registry.redhat.io/rhoai/odh-caikit-tgis-serving-rhel9@sha256:a0c8ff589a81bc631bd3adda0788b97aab32de3c63db56e18ae133dba0e8ebf6_arm64 as a component of Red Hat OpenShift AI 2.25; registry.redhat.io/rhoai/odh-caikit-tgis-serving-rhel9@sha256:e48f70c613cc800604db3e2d3f373a7916936d89c9bcf69ca974eaace824edb2_amd64 as a component of Red Hat OpenShift AI 2.25; registry.redhat.io/rhoai/odh-llama-stack-core-rhel9@sha256:513923c7b5f7dcfb80be58476429560ea167f7ef95e5f92add823602508643ae_arm64 as a component of Red Hat OpenShift AI 2.25; registry.redhat.io/rhoai/odh-llama-stack-core-rhel9@sha256:c2c09ca156aa93f4c435de49bfdce6bf31530515cc77b1b2e0020f34551c5cae_amd64 as a component of Red Hat OpenShift AI 2.25; registry.redhat.io/rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9@sha256:85b77613b0c457e6ddf6c189439f8ff4f14c46ce3e5270f2ddc3b8c59c0d4c20_arm64 as a component of Red Hat OpenShift AI 3.4; registry.redhat.io/rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9@sha256:a2c7a670ce95fee5f840960268830f936836663179baf3711219fb9f47339f0a_ppc64le as a component of Red Hat OpenShift AI 3.4; registry.redhat.io/rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9@sha256:d42aafacf60f441165985ee9b3218cefe0632024b04ae4067cba72b441168a10_amd64 as a component of Red Hat OpenShift AI 3.4; registry.redhat.io/rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9@sha256:ff5dea366ee3bc3fd2d1f1f25ab498292bb6c0d02686bbcc13adf4a6e45bfd97_s390x as a component of Red Hat OpenShift AI 3.4; registry.redhat.io/rhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9@sha256:190a1cbd8d62718270e459f7a7480d86234491b98b62e42d8ff4729e81b01eed_amd64 as a component of Red Hat OpenShift AI 3.4; registry.redhat.io/rhoai/odh-workbench-jupyter-pytorch-rocm-py312-rhel9@sha256:e15a412f74c1a63d3228cf473766769cc25245c29f84f189b82998fea7ed0524_amd64 as a component of Red Hat OpenShift AI 3.4; registry.redhat.io/rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9@sha256:3f3cd6198802052e0fc671b9dcbe125c0bd20d4ba1c51d31d732e5356625eca6_amd64 as a component of Red Hat OpenShift AI 3.4; registry.redhat.io/rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9@sha256:76860835384964a716661f95118671da6e36bb4d527b44f55d3759d1459e2a6c_arm64 as a component of Red Hat OpenShift AI 3.4; registry.redhat.io/rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9@sha256:13a0e218aa285b526eed89feaa529e6f24a9b1b2bea0615629e570c1eddc997f_amd64 as a component of Red Hat OpenShift AI 3.4; registry.redhat.io/rhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9@sha256:7c87a18cf11f29594218f740fbd309831cc6948c60390c77666128e26567453c_arm64 as a component of Red Hat OpenShift AI 3.4; registry.redhat.io/rhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9@sha256:945800fe8ee72610795c7ff98c16405b8c5d51e3c6dea7b65e85bbf7a3fbedb6_ppc64le as a component of Red Hat OpenShift AI 3.4; registry.redhat.io/rhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9@sha256:ba3298973fcee334a785208bad7928c87212b35a2bd49bf0e83875e240481e95_s390x as a component of Red Hat OpenShift AI 3.4; registry.redhat.io/rhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9@sha256:c78ea41efa92d8e87111cb254c1943ae285b326c68a0749c5b77c12ceb8209b5_amd64 as a component of Red Hat OpenShift AI 3.4; registry.redhat.io/satellite/iop-host-inventory-rhel9@sha256:51416f9fdf4569c8f75cc87f5494084e8f403362838e7e61304c0b70e81a31bb_amd64 as a component of Red Hat Satellite 6.18; registry.redhat.io/satellite/iop-host-inventory-rhel9@sha256:f0cc8221d8a11669ef4482d9779f95fdc9e7358871266144f448c6e460296872_amd64 as a component of Red Hat Satellite 6.19
After
exploit-intelligence-tech-preview/vulnerability-analysis-rhel9 as a component of Exploit Intelligence; mta/mta-generic-external-provider-rhel9 as a component of Migration Toolkit for Applications 8; rhelai3/bootc-cuda-rhel9 as a component of Red Hat Enterprise Linux AI (RHEL AI) 3; rhelai3/bootc-gaudi-rhel9 as a component of Red Hat Enterprise Linux AI (RHEL AI) 3; rhelai3/bootc-rocm-rhel9 as a component of Red Hat Enterprise Linux AI (RHEL AI) 3; rhelai3/disk-image-cuda-rhel9 as a component of Red Hat Enterprise Linux AI (RHEL AI) 3; rhoai/odh-feature-server-rhel9 as a component of Red Hat OpenShift AI (RHOAI); rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9 as a component of Red Hat OpenShift AI (RHOAI) · Fixed: registry.redhat.io/rhoai/odh-caikit-tgis-serving-rhel9@sha256:a0c8ff589a81bc631bd3adda0788b97aab32de3c63db56e18ae133dba0e8ebf6_arm64 as a component of Red Hat OpenShift AI 2.25; registry.redhat.io/rhoai/odh-caikit-tgis-serving-rhel9@sha256:e48f70c613cc800604db3e2d3f373a7916936d89c9bcf69ca974eaace824edb2_amd64 as a component of Red Hat OpenShift AI 2.25; registry.redhat.io/rhoai/odh-llama-stack-core-rhel9@sha256:513923c7b5f7dcfb80be58476429560ea167f7ef95e5f92add823602508643ae_arm64 as a component of Red Hat OpenShift AI 2.25; registry.redhat.io/rhoai/odh-llama-stack-core-rhel9@sha256:c2c09ca156aa93f4c435de49bfdce6bf31530515cc77b1b2e0020f34551c5cae_amd64 as a component of Red Hat OpenShift AI 2.25; registry.redhat.io/rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9@sha256:85b77613b0c457e6ddf6c189439f8ff4f14c46ce3e5270f2ddc3b8c59c0d4c20_arm64 as a component of Red Hat OpenShift AI 3.4; registry.redhat.io/rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9@sha256:a2c7a670ce95fee5f840960268830f936836663179baf3711219fb9f47339f0a_ppc64le as a component of Red Hat OpenShift AI 3.4; registry.redhat.io/rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9@sha256:d42aafacf60f441165985ee9b3218cefe0632024b04ae4067cba72b441168a10_amd64 as a component of Red Hat OpenShift AI 3.4; registry.redhat.io/rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9@sha256:ff5dea366ee3bc3fd2d1f1f25ab498292bb6c0d02686bbcc13adf4a6e45bfd97_s390x as a component of Red Hat OpenShift AI 3.4; registry.redhat.io/rhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9@sha256:190a1cbd8d62718270e459f7a7480d86234491b98b62e42d8ff4729e81b01eed_amd64 as a component of Red Hat OpenShift AI 3.4; registry.redhat.io/rhoai/odh-workbench-jupyter-pytorch-rocm-py312-rhel9@sha256:e15a412f74c1a63d3228cf473766769cc25245c29f84f189b82998fea7ed0524_amd64 as a component of Red Hat OpenShift AI 3.4; registry.redhat.io/rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9@sha256:3f3cd6198802052e0fc671b9dcbe125c0bd20d4ba1c51d31d732e5356625eca6_amd64 as a component of Red Hat OpenShift AI 3.4; registry.redhat.io/rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9@sha256:76860835384964a716661f95118671da6e36bb4d527b44f55d3759d1459e2a6c_arm64 as a component of Red Hat OpenShift AI 3.4; registry.redhat.io/rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9@sha256:13a0e218aa285b526eed89feaa529e6f24a9b1b2bea0615629e570c1eddc997f_amd64 as a component of Red Hat OpenShift AI 3.4; registry.redhat.io/rhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9@sha256:7c87a18cf11f29594218f740fbd309831cc6948c60390c77666128e26567453c_arm64 as a component of Red Hat OpenShift AI 3.4; registry.redhat.io/rhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9@sha256:945800fe8ee72610795c7ff98c16405b8c5d51e3c6dea7b65e85bbf7a3fbedb6_ppc64le as a component of Red Hat OpenShift AI 3.4; registry.redhat.io/rhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9@sha256:ba3298973fcee334a785208bad7928c87212b35a2bd49bf0e83875e240481e95_s390x as a component of Red Hat OpenShift AI 3.4; registry.redhat.io/rhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9@sha256:c78ea41efa92d8e87111cb254c1943ae285b326c68a0749c5b77c12ceb8209b5_amd64 as a component of Red Hat OpenShift AI 3.4; registry.redhat.io/satellite/iop-host-inventory-rhel9@sha256:51416f9fdf4569c8f75cc87f5494084e8f403362838e7e61304c0b70e81a31bb_amd64 as a component of Red Hat Satellite 6.18; registry.redhat.io/satellite/iop-host-inventory-rhel9@sha256:f0cc8221d8a11669ef4482d9779f95fdc9e7358871266144f448c6e460296872_amd64 as a component of Red Hat Satellite 6.19
Affected versionsThe structured affected or fixed version information changed.
Before
< 5.12.1 · Fixed: An authoritative update reference is available, but the fixed version is not recorded in the structured CVE fields. Check the linked vendor advisory for the applicable release.
After
< 5.12.1 · Fixed: For Red Hat OpenShift AI 2.25.9 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this errata update: https://docs.redhat.com/en/documentation/red_hat_openshift_ai/
Technical terms and abbreviations used in this report
CVE
Common Vulnerabilities and Exposures: the public identifier for one disclosed vulnerability.
CVSS
Common Vulnerability Scoring System: a technical severity framework; it is not patching priority by itself.
EPSS
Exploit Prediction Scoring System: FIRST's estimate of the probability that exploitation activity will be observed in the next 30 days; it is a forecast, not confirmation.
CWE
Common Weakness Enumeration: the standard category describing the underlying software or hardware weakness.
CNA
CVE Numbering Authority: an organisation authorised to assign and publish CVE records.
CISA ADP
Cybersecurity and Infrastructure Security Agency Authorized Data Publisher: structured enrichment added to a CVE record.
NVD
National Vulnerability Database: NIST's enrichment service for CVE records.
CERT / CSIRT
A computer security incident response team that publishes warnings or coordinates incident response.
PoC
Proof of concept: public material that demonstrates or helps reproduce exploitation.
CSAF
Common Security Advisory Framework: a machine-readable format for security advisories.
LoTL
Living off the land: abuse of legitimate tools or system functions during an attack.