DEBIAN-CVE-2026-54502

Source
https://security-tracker.debian.org/tracker/CVE-2026-54502
Import Source
https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-54502.json
JSON Data
https://api.osv.dev/v1/vulns/DEBIAN-CVE-2026-54502
Upstream
  • CVE-2026-54502
Published
2026-07-01T00:16:32Z
Modified
2026-09-14T17:03:46Z
Severity
  • 6.3 (Medium) CVSS_V4 - CVSS: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 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.2, Oj.dump is vulnerable to a stack-based buffer overflow when a large :indent value is provided by the developer. fill_indent in dump.h calls memset(indent_str, ' ', (size_t)opts->indent) without validating the size. When opts->indent is set to INT_MAX (2,147,483,647), the (size_t) cast preserves the large value and memset writes 2 GB into the stack-allocated out buffer (4,184 bytes), corrupting the stack and crashing the process. This issue has been fixed in version 3.17.2.

References

Affected packages

Debian:12 / ruby-oj

Package

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

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown 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
3.17.4-1
3.17.6-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Database specific

source
"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-54502.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
0 Unknown 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
3.17.4-1
3.17.6-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Database specific

source
"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-54502.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
0 Unknown 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-54502.json"