CVE-2026-54899
published medium CVSS 4.0 · 6.3Oj: Use-After-Free in Oj::Parser Symbol Key Cache Toggle
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| ohler55 | — | oj< 3.17.2 | Affected | Not stated | GitHub_M |
| Debian | bookworm | ruby-oj | Advisory build | 3.14.2-1+deb12u1 | DLA-4803-1 |
| Debian | trixie | ruby-oj | Advisory build | 3.16.3-1+deb13u1 | DSA-6521-1 |
Description
Oj (Optimized JSON) is a JSON parser and Object marshaller packaged as a Ruby gem. Prior to version 3.17.2, disabling symbol_keys on a reused Oj::Parser instance triggers a heap use-after-free. When symbol_keys is toggled from true to false, opt_symbol_keys_set frees the internal key cache (cache_free) but does not clear the pointer. The next parse call reads from the freed cache via cache_intern, producing a use-after-free. This issue has been fixed in version 3.17.2.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| ohler55 | oj | < 3.17.2 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-416 CWE-416: Use After Free
References
1Provider assertions
2GitHub_M · cna
Oj: Use-After-Free in Oj::Parser Symbol Key Cache Toggle
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 5ec117e0faced4137bac32fe4399550ee32eda79a0104d9fefb028e8331f05eb
- Ingested
- 23 Sep 2026, 09:20:39 UTC
- Source record
- Official CVE record