Every CVESearch/Get API key

CVE-2026-141523

Ruby JSON: Out of Bound Write in parser when `allow_control_characters: true` is enabled

Explain with AI
ChatGPTClaudeGoogle AI
Severity
6.5Medium
Network attack, no privileges, no user interactionCVSS 3.1, CVE List
Exploitation
Proof of concept
CISA reports one, no source links it
Exploit chance
0.78% in 30 days
Percentile57th
EPSS, scored
Listed fix
2.18.2 for json
From GitHub Advisories and OSV1 more listed version, 13 other affected packages

Overview

Ruby JSON is a JSON implementation for Ruby. From 2.18.0 until 2.18.2 and 2.19.3, JSON.parse can perform an out-of-bounds write when allow_control_characters is enabled and attacker-controlled invalid JSON contains sufficient padding before a backslash immediately followed by an ASCII control character. This malformed escape sequence can defeat the parser's bounds checks, potentially corrupting heap memory and more likely crashing the Ruby VM, which can cause denial of service in applications that parse untrusted input with the affected option. This issue is fixed in versions 2.18.2 and 2.19.3.

CVSS 3.1 vector

Exploitability

Attack vector
Network
Complexity
High
Privileges needed
None
User interaction
None

Impact

Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H

Exploit chance over time

Unchanged since Dec 2, 2026
EPSS score 0.78% every day from Dec 2, 2026 to Dec 4, 2026.

Affected

Packages 14

Affected packages
PackageAffectedFixed
json
RubyGems
2.18.0 up to 2.18.2, plus listed versions
2.18.1
2.18.2
2.19.0 up to 2.19.3, plus listed versions
2.19.12.19.2
2.19.3
ruby-json
Debian:12
All versions, plus listed versions
2.15.2+dfsg-12.18.1+dfsg-12.19.1+dfsg-12.19.2+dfsg-12.19.4+dfsg-1
Show 10 more versionsShow less
2.19.9+dfsg-12.21.1+dfsg-12.21.2+dfsg-12.6.3+dfsg-12.7.2+dfsg-12.7.6+dfsg-12.9.1+dfsg-13.0.2+dfsg-13.1.0+dfsg-13.2.0+dfsg-1
None listed
ruby-json
Debian:13
All versions, plus listed versions
2.15.2+dfsg-12.18.1+dfsg-12.19.1+dfsg-12.19.2+dfsg-12.19.4+dfsg-1
Show 7 more versionsShow less
2.19.9+dfsg-12.21.1+dfsg-12.21.2+dfsg-12.9.1+dfsg-13.0.2+dfsg-13.1.0+dfsg-13.2.0+dfsg-1
None listed
ruby-json
Debian:14
before 2.19.4+dfsg-1, plus listed versions
2.15.2+dfsg-12.18.1+dfsg-12.19.1+dfsg-12.19.2+dfsg-12.9.1+dfsg-1
2.19.4+dfsg-1
ruby-4.0
Docker Hardened Images:Alpine:3.23
4.0.1-r0 and later, plus listed versions
4.0.1-r14.0.10-r44.0.10-r54.0.2-r14.0.2-r2
Show 8 more versionsShow less
4.0.3-r24.0.4-r24.0.4-r34.0.5-r34.0.6-r34.0.6-r44.0.7-r44.0.9-r4
None listed
ruby-4.0
Docker Hardened Images:Alpine:3.24
0.0.4-r5 and later, plus listed versions
0.1.1-r50.1.12-r50.1.2-r50.1.4-r50.2.0-r5
Show 31 more versionsShow less
0.2.1-r50.3.0-r50.3.2-r50.3.9-r50.31.1-r50.4.3-r50.5.0-r50.5.1-r50.6.3-r50.6.4.1-r51.1.8-r51.11.1-r51.16.0-r51.7.0-r51.8.1-r513.3.1-r52.2.3-r52.6.9-r53.10.0-r53.3.5-r53.4.4-r53.7.5-r54.0.1-r54.0.10-r44.0.10-r54.0.5-r34.0.6-r34.0.6-r44.0.7-r44.0.9-r47.0.4-r5
None listed
ruby-4.0
Docker Hardened Images:Debian:13
4.0.5-0 and later, plus listed versions
4.0.10-04.0.5-14.0.5-24.0.5-34.0.5-4
Show 45 more versionsShow less
4.0.5-54.0.5-64.0.6-04.0.6-14.0.6-104.0.6-114.0.6-124.0.6-134.0.6-144.0.6-154.0.6-164.0.6-174.0.6-184.0.6-194.0.6-24.0.6-204.0.6-214.0.6-224.0.6-234.0.6-244.0.6-254.0.6-264.0.6-274.0.6-284.0.6-294.0.6-34.0.6-304.0.6-314.0.6-324.0.6-334.0.6-344.0.6-354.0.6-364.0.6-374.0.6-384.0.6-394.0.6-44.0.6-404.0.6-414.0.6-424.0.6-434.0.6-444.0.6-454.0.6-464.0.6-47
None listed
ruby-json
Ubuntu:Pro:14.04:LTS
All versions, plus listed versions
1.8.0-11.8.0-1build11.8.0-1ubuntu0.1~esm1
None listed
ruby-json
Ubuntu:Pro:16.04:LTS
All versions, plus listed versions
1.8.3-1build11.8.3-1build21.8.3-1build41.8.3-1ubuntu0.1~esm1
None listed
Show 5 more packagesShow less
Affected packages
PackageAffectedFixed
ruby-json
Ubuntu:Pro:18.04:LTS
All versions, plus listed versions
2.1.0+dfsg-12.1.0+dfsg-1ubuntu22.1.0+dfsg-1ubuntu32.1.0+dfsg-22.1.0+dfsg-2ubuntu0.1~esm1
None listed
ruby-json
Ubuntu:20.04:LTS
All versions, plus listed versions
2.1.0+dfsg-22.3.0+dfsg-12.3.0+dfsg-1build1
None listed
ruby-json
Ubuntu:22.04:LTS
All versions, plus listed versions
2.3.0+dfsg-1build12.5.1+dfsg-22.5.1+dfsg-2build1
None listed
ruby-json
Ubuntu:24.04:LTS
All versions, plus listed versions
2.6.3+dfsg-1build22.6.3+dfsg-1build32.6.3+dfsg-1build4
None listed
ruby-json
Ubuntu:26.04:LTS
All versions, plus listed versions
2.9.1+dfsg-12.15.2+dfsg-12.18.1+dfsg-1
None listed

The JSON record also has 30 more versions.

Products 1

Sources

CVE List Score usedCVSS 3.16.5

Ruby JSON: Out of Bound Write in parser when `allow_control_characters: true` is enabled

Ruby JSON is a JSON implementation for Ruby. From 2.18.0 until 2.18.2 and 2.19.3, JSON.parse can perform an out-of-bounds write when allow_control_characters is enabled and attacker-controlled invalid JSON contains sufficient padding before a backslash immediately followed by an ASCII control character. This malformed escape sequence can defeat the parser's bounds checks, potentially corrupting heap memory and more likely crashing the Ruby VM, which can cause denial of service in applications that parse untrusted input with the affected option. This issue is fixed in versions 2.18.2 and 2.19.3.

Record
CVE-2026-141523
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H
Weakness
CWE-787
Updated
2026-12-05
EUVDEUVD-2026-140723CVSS 3.16.5

Ruby JSON is a JSON implementation for Ruby. From 2.18.0 until 2.18.2 and 2.19.3, JSON.parse can perform an out-of-bounds write when allow_control_characters is enabled and attacker-controlled invalid JSON contains sufficient padding before a backslash immediately followed by an ASCII control character. This malformed escape sequence can defeat the parser's bounds checks, potentially corrupting heap memory and more likely crashing the Ruby VM, which can cause denial of service in applications that parse untrusted input with the affected option. This issue is fixed in versions 2.18.2 and 2.19.3.

Record
EUVD-2026-140723
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H
Updated
2026-12-02
GitHub AdvisoriesGHSA-cjpr-jw2g-fw99CVSS 3.16.5

Ruby JSON: Out of Bound Write in parser when `allow_control_characters: true` is enabled

Summary

Parsing invalid JSON with the allow_control_characters: true option enabled can result in an out of bound write, potentially corrupting the heap, but more likely a VM crash.

Details

If an ASCI control character is preceded by a backslash, the bound checks can be defeated.

Originally fixed as a regular bug in json 1.9.3.

Proof of concept

The issue can easily be reproduced with a backslash followed by a control character. Some padding is required.

require "json"
doc = '"' + ("A" * 4096) + "\\\x01" + '"'
JSON.parse(doc, allow_control_characters: true)

Impact

If the allow_control_characters: true option is used to parse untrusted input, it could be used as a DOS vector.

Record
GHSA-cjpr-jw2g-fw99
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H
Weakness
CWE-787
Updated
2026-12-01
NVDCVSS 3.16.5

Ruby JSON is a JSON implementation for Ruby. From 2.18.0 until 2.18.2 and 2.19.3, JSON.parse can perform an out-of-bounds write when allow_control_characters is enabled and attacker-controlled invalid JSON contains sufficient padding before a backslash immediately followed by an ASCII control character. This malformed escape sequence can defeat the parser's bounds checks, potentially corrupting heap memory and more likely crashing the Ruby VM, which can cause denial of service in applications that parse untrusted input with the affected option. This issue is fixed in versions 2.18.2 and 2.19.3.

Record
CVE-2026-141523
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H
Weakness
CWE-787
Updated
2026-12-05
OSVCVSS 3.16.5

Ruby JSON: Out of Bound Write in parser when `allow_control_characters: true` is enabled

Ruby JSON is a JSON implementation for Ruby. From 2.18.0 until 2.18.2 and 2.19.3, JSON.parse can perform an out-of-bounds write when allow_control_characters is enabled and attacker-controlled invalid JSON contains sufficient padding before a backslash immediately followed by an ASCII control character. This malformed escape sequence can defeat the parser's bounds checks, potentially corrupting heap memory and more likely crashing the Ruby VM, which can cause denial of service in applications that parse untrusted input with the affected option. This issue is fixed in versions 2.18.2 and 2.19.3.

Record
CVE-2026-141523
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H
Weakness
CWE-787
Updated
2026-12-02
OSVDEBIAN-CVE-2026-141523CVSS 3.16.5

Ruby JSON is a JSON implementation for Ruby. From 2.18.0 until 2.18.2 and 2.19.3, JSON.parse can perform an out-of-bounds write when allow_control_characters is enabled and attacker-controlled invalid JSON contains sufficient padding before a backslash immediately followed by an ASCII control character. This malformed escape sequence can defeat the parser's bounds checks, potentially corrupting heap memory and more likely crashing the Ruby VM, which can cause denial of service in applications that parse untrusted input with the affected option. This issue is fixed in versions 2.18.2 and 2.19.3.

Record
DEBIAN-CVE-2026-141523
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H
Updated
2026-12-02
OSVDHI-4vxe-ezfm-447k-l4qhCVSS 3.16.5

Ruby JSON is a JSON implementation for Ruby. From 2.18.0 until 2.18.2 and 2.19.3, JSON.parse can perform an…

Ruby JSON is a JSON implementation for Ruby. From 2.18.0 until 2.18.2 and 2.19.3, JSON.parse can perform an out-of-bounds write when allow_control_characters is enabled and attacker-controlled invalid JSON contains sufficient padding before a backslash immediately followed by an ASCII control character. This malformed escape sequence can defeat the parser's bounds checks, potentially corrupting heap memory and more likely crashing the Ruby VM, which can cause denial of service in applications that parse untrusted input with the affected option. This issue is fixed in versions 2.18.2 and 2.19.3.

Record
DHI-4vxe-ezfm-447k-l4qh
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H
Updated
2026-12-02
OSVGHSA-cjpr-jw2g-fw99CVSS 3.16.5

Ruby JSON: Out of Bound Write in parser when `allow_control_characters: true` is enabled

Summary

Parsing invalid JSON with the allow_control_characters: true option enabled can result in an out of bound write, potentially corrupting the heap, but more likely a VM crash.

Details

If an ASCI control character is preceded by a backslash, the bound checks can be defeated.

Originally fixed as a regular bug in json 1.9.3.

Proof of concept

The issue can easily be reproduced with a backslash followed by a control character. Some padding is required.

require "json"
doc = '"' + ("A" * 4096) + "\\\x01" + '"'
JSON.parse(doc, allow_control_characters: true)

Impact

If the allow_control_characters: true option is used to parse untrusted input, it could be used as a DOS vector.

Record
GHSA-cjpr-jw2g-fw99
CVSS 3.1
6.5 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H
Weakness
CWE-787
Updated
2026-12-01
OSVUBUNTU-CVE-2026-141523No score

(Ruby JSON is a JSON implementation for Ruby. From 2.18.0 until 2.18.2 ...)

Record
UBUNTU-CVE-2026-141523
Updated
2026-12-03

History

Recorded by Every CVE

Changes recorded by Every CVE
DayChangedSources
Key facts, referencesCVE List
Affected packages, other IDs, referencesOSV
ReferencesOSV
Affected packages, other IDs, referencesOSV
Published dateEUVD
Published dateEUVD
Other IDs, published dateEUVD
Affected packages, other IDs, referencesOSV
ReferencesOSV
Affected packages, referencesOSV
Affected packages, other IDs, key facts, referencesGitHub Advisories, NVD
First indexedCVE List

Upstream dates may differ.

References

Show 6 more referencesShow less
MoveEnter Open