Oj: Integer Overflow in Oj.load 2GB String Handling
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-475m-ph3x-64gp | Oj: Integer Overflow in Oj.load 2GB String Handling |
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.407% 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 Ohler55 Ohler55 oj |
|
| Vendors & Products |
Ohler
Ohler oj Ohler55 Ohler55 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, Oj.load is vulnerable to heap corruption when parsing a JSON string longer than 2 GB. An integer overflow in buf_append_string (buf.h:61) converts the string length to a large negative size_t, causing memcpy to copy an astronomically large amount of data out of bounds. This crashes the process and can corrupt adjacent heap memory. The issue has been fixed in version 3.17.2. | |
| Title | Oj: Integer Overflow in Oj.load 2GB String Handling | |
| Weaknesses | CWE-190 | |
| References |
| |
| Metrics |
cvssV4_0
|