UBUNTU-CVE-2026-71847

Source
https://ubuntu.com/security/CVE-2026-71847
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-71847.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2026-71847
Upstream
Published
2026-08-07T19:18:00Z
Modified
2026-08-13T00:14:08Z
Severity
  • 8.7 (High) CVSS_V4 - 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 CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

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 partialvalue reconstructs an incomplete object containing duplicate keys, the duplicate-key warning path calls cursorposition, 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.

References

Affected packages

Ubuntu:14.04:LTS
ruby-json

Package

Name
ruby-json
Purl
pkg:deb/ubuntu/ruby-json?arch=source&distro=trusty

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.8.0-1
1.8.0-1build1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "1.8.0-1build1",
            "binary_name": "ruby-json"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-71847.json"
Ubuntu:16.04:LTS
ruby-json

Package

Name
ruby-json
Purl
pkg:deb/ubuntu/ruby-json?arch=source&distro=xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.8.3-1build1
1.8.3-1build2
1.8.3-1build4

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "1.8.3-1build4",
            "binary_name": "ruby-json"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-71847.json"
Ubuntu:18.04:LTS
ruby-json

Package

Name
ruby-json
Purl
pkg:deb/ubuntu/ruby-json?arch=source&distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*
2.1.0+dfsg-1
2.1.0+dfsg-1ubuntu2
2.1.0+dfsg-1ubuntu3
2.1.0+dfsg-2

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "2.1.0+dfsg-2",
            "binary_name": "ruby-json"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-71847.json"
Ubuntu:20.04:LTS
ruby-json

Package

Name
ruby-json
Purl
pkg:deb/ubuntu/ruby-json?arch=source&distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*
2.1.0+dfsg-2
2.3.0+dfsg-1
2.3.0+dfsg-1build1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "2.3.0+dfsg-1build1",
            "binary_name": "ruby-json"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-71847.json"
Ubuntu:22.04:LTS
ruby-json

Package

Name
ruby-json
Purl
pkg:deb/ubuntu/ruby-json?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*
2.3.0+dfsg-1build1
2.5.1+dfsg-2
2.5.1+dfsg-2build1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "2.5.1+dfsg-2build1",
            "binary_name": "ruby-json"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-71847.json"
Ubuntu:24.04:LTS
ruby-json

Package

Name
ruby-json
Purl
pkg:deb/ubuntu/ruby-json?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*
2.6.3+dfsg-1build2
2.6.3+dfsg-1build3
2.6.3+dfsg-1build4

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "2.6.3+dfsg-1build4",
            "binary_name": "ruby-json"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-71847.json"
Ubuntu:26.04:LTS
ruby-json

Package

Name
ruby-json
Purl
pkg:deb/ubuntu/ruby-json?arch=source&distro=resolute

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*
2.9.1+dfsg-1
2.15.2+dfsg-1
2.18.1+dfsg-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "2.18.1+dfsg-1",
            "binary_name": "ruby-json"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-71847.json"