CVE-2026-141523

Source
https://cve.org/CVERecord?id=CVE-2026-141523
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-141523.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-141523
Aliases
Downstream
Published
2026-12-01T20:40:10Z
Modified
2026-12-01T22:00:24Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H CVSS Calculator
Summary
Ruby JSON: Out of Bound Write in parser when `allow_control_characters: true` is enabled
Details

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.

Database specific
{
    "cna_assigner":  "GitHub_M",
    "cwe_ids":  [
        "CWE-787"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/141xxx/CVE-2026-141523.json"
}
References

Affected packages

Git / github.com/ruby/json

Affected ranges

Type
GIT
Repo
https://github.com/ruby/json
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "2.18.0"
                },
                {
                    "fixed":  "2.18.2"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StringRangeExpression"
        },
        {
            "range":  [
                {
                    "introduced":  "2.19.0"
                },
                {
                    "fixed":  "2.19.3"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StringRangeExpression"
        },
        {
            "range":  [
                {
                    "fixed":  "75e2f6453a3bf79df086ac10e41dbc5b7f124a76"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "range":  [
                {
                    "fixed":  "dcfbbcd36f240c18c3b89e5399105715f70162e3"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "original_tag":  "v2.18.2",
            "range":  [
                {
                    "fixed":  "6d3266dc0edbbdb1dae513f4f3be16198c432af3"
                }
            ],
            "source":  "REFERENCES_TAG"
        },
        {
            "original_tag":  "v2.19.3",
            "range":  [
                {
                    "fixed":  "779d4415a077e24cfaa00208f39dba825f2e0ae8"
                }
            ],
            "source":  "REFERENCES_TAG"
        }
    ]
}

Affected versions

v2.*
v2.18.0
v2.18.1
v2.19.0
v2.19.1
v2.19.2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-141523.json"