DEBIAN-CVE-2026-54592

Source
https://security-tracker.debian.org/tracker/CVE-2026-54592
Import Source
https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-54592.json
JSON Data
https://api.osv.dev/v1/vulns/DEBIAN-CVE-2026-54592
Upstream
Published
2026-07-01T00:16:32.743Z
Modified
2026-07-02T17:00:26.944287375Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

Oj (Optimized JSON) is a JSON parser and Object marshaller packaged as a Ruby gem. In versions prior to 3.17.3, Oj::Doc#eachchild, when invoked recursively over a deeply nested JSON document, overflows a fixed-size stack buffer and aborts the process, leading to DoS. In a two-step chain in ext/oj/fast.c, doceachchild increments doc->where past the wherepath[MAXSTACK = 100] array with no bounds check and never restores it (the doc->where-- is missing), so calling eachchild recursively from inside the yield block drives doc->where beyond the array. On the next entry the function copies the path into the 800-byte stack-local buffer savepath[MAXSTACK] using wlen = doc->where - doc->wherepath, so when the previous recursive call left doc->where past wherepath[100] the wlen exceeds MAXSTACK and the memcpy overflows savepath on the C stack; because the Oj::Doc parser imposes no JSON nesting-depth limit (relying on a C-stack pressure check), deeply nested attacker input reaches this path. This issue has been fixed in version 3.17.3.

References

Affected packages

Debian:11 / ruby-oj

Package

Name
ruby-oj
Purl
pkg:deb/debian/ruby-oj?arch=source&distro=bullseye

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*
3.11.0-1
3.13.3-1
3.13.7-1
3.13.9-1
3.13.9-2
3.13.9-3
3.13.19-1
3.13.21-1
3.13.23-1
3.13.23-2
3.13.23-3
3.14.1-1
3.14.1-2
3.14.1-3
3.14.2-1
3.15.0-1
3.16.0-1
3.16.1-1
3.16.3-1
3.16.12-1
3.16.15-1
3.16.16-1
3.17.0-1
3.17.1-1
3.17.3-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Database specific

source
"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-54592.json"

Debian:12 / ruby-oj

Package

Name
ruby-oj
Purl
pkg:deb/debian/ruby-oj?arch=source&distro=bookworm

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*
3.14.2-1
3.15.0-1
3.16.0-1
3.16.1-1
3.16.3-1
3.16.12-1
3.16.15-1
3.16.16-1
3.17.0-1
3.17.1-1
3.17.3-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Database specific

source
"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-54592.json"

Debian:13 / ruby-oj

Package

Name
ruby-oj
Purl
pkg:deb/debian/ruby-oj?arch=source&distro=trixie

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*
3.16.3-1
3.16.12-1
3.16.15-1
3.16.16-1
3.17.0-1
3.17.1-1
3.17.3-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Database specific

source
"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-54592.json"

Debian:14 / ruby-oj

Package

Name
ruby-oj
Purl
pkg:deb/debian/ruby-oj?arch=source&distro=forky

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.17.3-1

Affected versions

3.*
3.16.3-1
3.16.12-1
3.16.15-1
3.16.16-1
3.17.0-1
3.17.1-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Database specific

source
"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-54592.json"