6.3

CVE-2026-54902: Oj: Use-After-Free in Oj::Parser SAJ Long Key Callback

Deferred
AliasesUBUNTU-CVE-2026-54902DEBIAN-CVE-2026-54902CGA-45x9-h789-w427
Published 30-06-2026Last modified 01-07-2026

Vulnerability summary

CVE-2026-54902 is a medium (CVSS 6.3) Use After Free vulnerability in ohler55 oj. EPSS estimates a 0.50% chance of exploitation in the next 30 days, higher than 44.3% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 6.3, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
6.3/10
010
Medium · v4.0 (CVE.org)
EPSS score
0.50%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 2 · Related 1

Timeline

  1. 30-06-2026
    PublishedVulnerability first disclosed.
  2. 01-07-2026
    Last modifiedVulnerability information updated.

Description

Oj (Optimized JSON) is a JSON parser and Object marshaller packaged as a Ruby gem. Prior to version 3.17.2, is vulnerable to Use-After-Free when in SAJ mode. The Oj::Parser does not protect cached object keys (≥ 35 bytes) from garbage collection, and a Ruby callback that triggers GC inside hash_end can cause the key string to be reclaimed while the C parser still holds a pointer to it. The subsequent access to the freed string VALUE results in a segfault, confirmed by an RIP pointing to address 0x4242 (a canary-style pattern suggesting control over the freed memory's content). This issue has been fixed in version 3.17.2.

CVSS metrics

7 scores · 7 sources · 1 version

EPSS trend

Probability

0.50%

Chance of exploitation in the next 30 days

Percentile

44%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.50% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard28 products
  • gitlab-rails-ce-18.1All versions (No fix recorded)
  • gitlab-rails-ce-18.5All versions (No fix recorded)
  • gitlab-rails-ce-18.6All versions (No fix recorded)
  • gitlab-rails-ce-18.7All versions (No fix recorded)
  • gitlab-rails-ce-18.8All versions (No fix recorded)
Wolfi6 products
  • ruby3.2-fluentd-kubernetes-daemonset-1.19-kinesis< 1.19.2.1.1-r5
  • ruby3.2-kube-logging-operator-fluentd-outputs< 6.7.0-r4
  • ruby3.3-fluentd-kubernetes-daemonset-1.19-kinesis< 1.19.3.1.0-r0
  • ruby3.4-fluentd-kubernetes-daemonset-1.19-kinesis< 1.19.3.1.0-r0
  • ruby3.4-kube-logging-operator-fluentd-outputs< 6.7.0-r4
Debian1 product
  • ruby-oj< 3.14.2-1+deb12u1 | < 3.16.3-1+deb13u1 | < 3.17.6-2
Ohler551 product
  • oj< 3.17.2
RubyGems1 product
  • oj< 3.17.3
Ubuntu1 product
  • ruby-ojAll versions (No fix recorded)

6 vendors · 38 products

References

5 links