Oj: Heap Buffer Overflow in Oj.dump Exception Serialization via Large Indent
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| ohler55 | oj | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Ohler | Oj |
|
| Source | ID | Title |
|---|---|---|
Debian DLA |
DLA-4803-1 | ruby-oj security update |
Debian DSA |
DSA-6521-1 | ruby-oj security update |
Github GHSA |
GHSA-35w3-pjm6-wj95 | Oj: Heap Buffer Overflow in Oj.dump Exception Serialization via Large Indent |
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.200% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| Weaknesses | CWE-787 | |
| References |
| |
| Metrics |
threat_severity
|
cvssV3_1
|
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Ohler
Ohler oj |
|
| Vendors & Products |
Ohler
Ohler oj |
| Type | Values Removed | Values Added |
|---|---|---|
| Description | Oj (Optimized JSON) is a JSON parser and Object marshaller packaged as a Ruby gem. In versions prior to 3.17.2, when in object mode, Oj.dump is vulnerable to a heap buffer overflow when serializing Exception objects with a large :indent value. The serializer allocates a buffer sized for the object's attributes but does not account for the indent bytes added on each write. With indent: 5000, the accumulation of 5,000-byte indent strings overflows the 13,150-byte heap allocation, corrupting adjacent heap memory. This issue has been fixed in version 3.17.2. | |
| Title | Oj: Heap Buffer Overflow in Oj.dump Exception Serialization via Large Indent | |
| Weaknesses | CWE-122 | |
| References |
| |
| Metrics |
cvssV4_0
|