Ruby JSON: JSON generator heap buffer overflow when streaming to an IO
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| ruby | json | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Ruby | Json |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-x2f5-4prf-w687 | Ruby json: JSON generator heap buffer overflow when streaming to an IO |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.412% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Ruby
Ruby json |
|
| Vendors & Products |
Ruby
Ruby json |
| Type | Values Removed | Values Added |
|---|---|---|
| Description | Ruby JSON is a JSON implementation for Ruby. Versions 2.9.0 through 2.19.8 are vulnerable to heap buffer overflow when the JSON generator is provided with an oversized streamed object. When streaming to an IO JSON.dump(obj, io) and JSON::State#generate(obj, io) can write past the internal JSON generator buffer when a streamed object contains an attacker-controlled string near 16 KB. Exploitation would result in a reliable process crash/denial of service. This issue has been fixed in version 2.19.9. | |
| Title | Ruby JSON: JSON generator heap buffer overflow when streaming to an IO | |
| Weaknesses | CWE-122 CWE-131 CWE-787 |
|
| References |
| |
| Metrics |
cvssV3_1
|