CVE-2026-71847
published high CVSS 4.0 · 8.7Ruby JSON: JSON::ResumableParser#partial_value dereferences a freed input buffer and crashes on truncated duplicate-key streams
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| ruby | — | json>= 2.20.0, < 2.21.2 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected; No Fix Planned | Not stated | Amazon Linux assessment |
| SUSE / openSUSE | SLE-16 | hawk-apiserveraarch64 | Advisory build | 0.2.4+git.1792406875.6ed758a-160100.1.1 | SUSE-SU-2026:24712-1 |
| SUSE / openSUSE | SLE-16 | hawk-apiserverppc64le | Advisory build | 0.2.4+git.1792406875.6ed758a-160100.1.1 | SUSE-SU-2026:24712-1 |
| SUSE / openSUSE | SLE-16 | hawk-apiserverppc64le | Advisory build | 0.2.4+git.1792406875.6ed758a-160100.1.1 | SUSE-SU-2026:24722-1 |
| SUSE / openSUSE | SLE-16 | hawk-apiservers390x | Advisory build | 0.2.4+git.1792406875.6ed758a-160100.1.1 | SUSE-SU-2026:24712-1 |
| SUSE / openSUSE | SLE-16 | hawk-apiserverx86_64 | Advisory build | 0.2.4+git.1792406875.6ed758a-160100.1.1 | SUSE-SU-2026:24712-1 |
Show 36 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-16 | hawk-apiserverx86_64 | Advisory build | 0.2.4+git.1792406875.6ed758a-160100.1.1 | SUSE-SU-2026:24722-1 |
| SUSE / openSUSE | SLE-16 | hawk2aarch64 | Advisory build | 2.7.2+git.1789128469.a738abc1-160100.1.1 | SUSE-SU-2026:24712-1 |
| SUSE / openSUSE | SLE-16 | hawk2ppc64le | Advisory build | 2.7.2+git.1788518533.7d4dadd6-160000.1.1 | SUSE-SU-2026:24195-1 |
| SUSE / openSUSE | SLE-16 | hawk2ppc64le | Advisory build | 2.7.2+git.1788518533.7d4dadd6-160000.1.1 | SUSE-SU-2026:24250-1 |
| SUSE / openSUSE | SLE-16 | hawk2ppc64le | Advisory build | 2.7.2+git.1789128469.a738abc1-160100.1.1 | SUSE-SU-2026:24712-1 |
| SUSE / openSUSE | SLE-16 | hawk2ppc64le | Advisory build | 2.7.2+git.1789128469.a738abc1-160100.1.1 | SUSE-SU-2026:24722-1 |
| SUSE / openSUSE | SLE-16 | hawk2s390x | Advisory build | 2.7.2+git.1788518533.7d4dadd6-160000.1.1 | SUSE-SU-2026:24195-1 |
| SUSE / openSUSE | SLE-16 | hawk2s390x | Advisory build | 2.7.2+git.1789128469.a738abc1-160100.1.1 | SUSE-SU-2026:24712-1 |
| SUSE / openSUSE | SLE-16 | hawk2x86_64 | Advisory build | 2.7.2+git.1788518533.7d4dadd6-160000.1.1 | SUSE-SU-2026:24195-1 |
| SUSE / openSUSE | SLE-16 | hawk2x86_64 | Advisory build | 2.7.2+git.1788518533.7d4dadd6-160000.1.1 | SUSE-SU-2026:24250-1 |
| SUSE / openSUSE | SLE-16 | hawk2x86_64 | Advisory build | 2.7.2+git.1789128469.a738abc1-160100.1.1 | SUSE-SU-2026:24712-1 |
| SUSE / openSUSE | SLE-16 | hawk2x86_64 | Advisory build | 2.7.2+git.1789128469.a738abc1-160100.1.1 | SUSE-SU-2026:24722-1 |
| SUSE / openSUSE | SLE-16 | python313-Pillowaarch64 | Advisory build | 11.3.0-160100.3.1 | SUSE-SU-2026:24712-1 |
| SUSE / openSUSE | SLE-16 | python313-Pillowppc64le | Advisory build | 11.3.0-160100.3.1 | SUSE-SU-2026:24712-1 |
| SUSE / openSUSE | SLE-16 | python313-Pillows390x | Advisory build | 11.3.0-160100.3.1 | SUSE-SU-2026:24712-1 |
| SUSE / openSUSE | SLE-16 | python313-Pillowx86_64 | Advisory build | 11.3.0-160100.3.1 | SUSE-SU-2026:24712-1 |
| SUSE / openSUSE | SLE-16 | python313-Pillow-tkaarch64 | Advisory build | 11.3.0-160100.3.1 | SUSE-SU-2026:24712-1 |
| SUSE / openSUSE | SLE-16 | python313-Pillow-tkppc64le | Advisory build | 11.3.0-160100.3.1 | SUSE-SU-2026:24712-1 |
| SUSE / openSUSE | SLE-16 | python313-Pillow-tks390x | Advisory build | 11.3.0-160100.3.1 | SUSE-SU-2026:24712-1 |
| SUSE / openSUSE | SLE-16 | python313-Pillow-tkx86_64 | Advisory build | 11.3.0-160100.3.1 | SUSE-SU-2026:24712-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | hawk2aarch64 | Advisory build | 2.7.2+git.1788518533.7d4dadd6-160000.1.1 | OPENSUSE-SU-2026:22068-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | hawk2ppc64le | Advisory build | 2.7.2+git.1788518533.7d4dadd6-160000.1.1 | OPENSUSE-SU-2026:22068-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | hawk2s390x | Advisory build | 2.7.2+git.1788518533.7d4dadd6-160000.1.1 | OPENSUSE-SU-2026:22068-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | hawk2x86_64 | Advisory build | 2.7.2+git.1788518533.7d4dadd6-160000.1.1 | OPENSUSE-SU-2026:22068-1 |
| SUSE / openSUSE | openSUSE-Leap-16.1 | hawk-apiserveraarch64 | Advisory build | 0.2.4+git.1792406875.6ed758a-160100.1.1 | OPENSUSE-SU-2026:22305-1 |
| SUSE / openSUSE | openSUSE-Leap-16.1 | hawk-apiserverppc64le | Advisory build | 0.2.4+git.1792406875.6ed758a-160100.1.1 | OPENSUSE-SU-2026:22305-1 |
| SUSE / openSUSE | openSUSE-Leap-16.1 | hawk-apiservers390x | Advisory build | 0.2.4+git.1792406875.6ed758a-160100.1.1 | OPENSUSE-SU-2026:22305-1 |
| SUSE / openSUSE | openSUSE-Leap-16.1 | hawk-apiserverx86_64 | Advisory build | 0.2.4+git.1792406875.6ed758a-160100.1.1 | OPENSUSE-SU-2026:22305-1 |
| SUSE / openSUSE | openSUSE-Leap-16.1 | hawk2aarch64 | Advisory build | 2.7.2+git.1789128469.a738abc1-160100.1.1 | OPENSUSE-SU-2026:22305-1 |
| SUSE / openSUSE | openSUSE-Leap-16.1 | hawk2ppc64le | Advisory build | 2.7.2+git.1789128469.a738abc1-160100.1.1 | OPENSUSE-SU-2026:22305-1 |
| SUSE / openSUSE | openSUSE-Leap-16.1 | hawk2s390x | Advisory build | 2.7.2+git.1789128469.a738abc1-160100.1.1 | OPENSUSE-SU-2026:22305-1 |
| SUSE / openSUSE | openSUSE-Leap-16.1 | hawk2x86_64 | Advisory build | 2.7.2+git.1789128469.a738abc1-160100.1.1 | OPENSUSE-SU-2026:22305-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | hawk2aarch64 | Advisory build | 2.7.2+git.1792148770.648dcddb-1.1 | OPENSUSE-SU-2026:12153-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | hawk2ppc64le | Advisory build | 2.7.2+git.1792148770.648dcddb-1.1 | OPENSUSE-SU-2026:12153-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | hawk2s390x | Advisory build | 2.7.2+git.1792148770.648dcddb-1.1 | OPENSUSE-SU-2026:12153-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | hawk2x86_64 | Advisory build | 2.7.2+git.1792148770.648dcddb-1.1 | OPENSUSE-SU-2026:12153-1 |
Description
Ruby JSON is a JSON implementation for Ruby. From 2.20.0 until 2.21.2, Ruby's JSON native C extension clears the consumed JSON::ResumableParser input buffer but leaves state.start, state.cursor, and state.end pointing into released storage. When partial_value reconstructs an incomplete object containing duplicate keys, the duplicate-key warning path calls cursor_position, which dereferences those stale pointers. This results in a heap-use-after-free and can terminate the Ruby process. An attacker who can supply JSON stream data to an application using JSON::ResumableParser may cause process termination when the application calls partial_value on incomplete attacker-controlled input containing duplicate object keys. This issue has been fixed in version 2.21.2.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| ruby | json | >= 2.20.0, < 2.21.2 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-416 CWE-416: Use After Free
References
1Provider assertions
2GitHub_M · cna
Ruby JSON: JSON::ResumableParser#partial_value dereferences a freed input buffer and crashes on truncated duplicate-key streams
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 8f67267245f8210326b2eb555ed19a4e5220630df4b80db5a4ccd94d6ed34ffb
- Ingested
- 23 Sep 2026, 09:29:33 UTC
- Source record
- Official CVE record