CVE catalog

CVE-2026-54901

Oj (Optimized JSON) is a JSON parser and Object…

[CVE catalog]

Oj (Optimized JSON) is a JSON parser and Object marshaller packaged as a Ruby gem. In versions prior to 3.17.2, Oj::Parser in usual mode does not mark array_class and hash_class references during garbage collection, leading to Use-After-Free. If GC runs after the class is assigned but before a parse, the class object is reclaimed, leaving the parser holding a dangling VALUE. The subsequent parse call dereferences the freed object, producing a segfault. This issue has been fixed in version 3.17.2.

Severity
Medium · CVSS 6.3CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Published
Source
[NVD] · [CVE record]
EPSS
0.41% · Oct 27, 2026

Projects and upstream resources

Reported versions and fixes

Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.

Version impact has not been established. The original provider fields are retained below.

Provider details and historical evidence
Original provider fields
{
  "package_releases": [
    {
      "name": "ruby-oj",
      "status": "fixed",
      "release": "sid",
      "version": "3.17.7-1"
    },
    {
      "name": "ruby-oj",
      "status": "fixed",
      "release": "forky",
      "version": "3.17.7-1"
    },
    {
      "name": "ruby-oj",
      "status": "vulnerable",
      "release": "trixie",
      "version": "3.16.3-1"
    },
    {
      "name": "ruby-oj",
      "status": "fixed",
      "release": "trixie-security",
      "version": "3.16.3-1+deb13u1"
    },
    {
      "name": "ruby-oj",
      "status": "vulnerable",
      "release": "bookworm",
      "version": "3.14.2-1"
    },
    {
      "name": "ruby-oj",
      "status": "fixed",
      "release": "bookworm-security",
      "version": "3.14.2-1+deb12u1"
    }
  ],
  "fixed_versions": [
    {
      "bug": null,
      "name": "ruby-oj",
      "type": "source",
      "origin": null,
      "release": "sid",
      "urgency": "not yet assigned",
      "fixed_version": "3.17.3-1"
    },
    {
      "bug": null,
      "name": "ruby-oj",
      "type": "source",
      "origin": null,
      "release": "forky",
      "urgency": "not yet assigned",
      "fixed_version": "3.17.3-1"
    },
    {
      "bug": null,
      "name": "ruby-oj",
      "type": "source",
      "origin": null,
      "release": "trixie",
      "urgency": "not yet assigned",
      "fixed_version": "3.16.3-1+deb13u1"
    },
    {
      "bug": null,
      "name": "ruby-oj",
      "type": "source",
      "origin": null,
      "release": "bookworm",
      "urgency": "not yet assigned",
      "fixed_version": "3.14.2-1+deb12u1"
    }
  ],
  "distribution_packages": [
    {
      "name": "ruby-oj",
      "ecosystem": "cpe",
      "fixed_version": "not yet fixed"
    }
  ]
}

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

[Debian 12 (Bookworm)]

  • [ruby-oj]Unknown
    Details (2)
    • 3.14.2-1 · amd64 · bookworm

      Affected · Fixed: 3.14.2-1+deb12u1

      nvd · ruby-oj · debian · bookworm; nvd · ruby-oj · debian · 12

    • 3.14.2-1 · arm64 · bookworm

      Affected · Fixed: 3.14.2-1+deb12u1

      nvd · ruby-oj · debian · bookworm; nvd · ruby-oj · debian · 12

[Debian 13 (Trixie)]

  • [ruby-oj]Unknown
    Details (3)
    • 3.16.3-1+b5 · amd64 · trixie

      Affected · Fixed: 3.16.3-1+deb13u1

      nvd · ruby-oj · debian · 13

    • 3.16.3-1+b5 · arm64 · trixie

      Affected · Fixed: 3.16.3-1+deb13u1

      nvd · ruby-oj · debian · 13

    • 3.16.3-1+deb13u1 · amd64 · trixie-security

      Fixed · Fixed: 3.16.3-1+deb13u1

      nvd · ruby-oj · debian · 13

Observed:

References