Oj: Stack Buffer Overflow in Oj.dump 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-3v45-f3vh-wg7m | Oj: Stack Buffer Overflow in Oj.dump via Large Indent |
No CVSS v3.1
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.401% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| References |
| |
| Metrics |
threat_severity
|
threat_severity
|
| 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, 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. | |
| Title | Oj: Stack Buffer Overflow in Oj.dump via Large Indent | |
| Weaknesses | CWE-121 | |
| References |
| |
| Metrics |
cvssV4_0
|