Security mailing lists by PureSourceCode

CVE-2026-141523

MEDIUM 6.5CVSS 3.1

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.

Published
1 Dec 2026
Last modified
1 Dec 2026
Assigned by
security-advisories@github.com
NVD status
Received
Weakness
CWE-787
Also known as
GHSA-cjpr-jw2g-fw99
Sources
NVDJSONCVE ListJSONOSV GHSA-cjpr-jw2g-fw99JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H
CVE List GitHub_M CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H
OSV GitHub CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
CVE List ruby json = >= 2.18.0, < 2.18.2; = >= 2.19.0, < 2.19.3
OSV RubyGems json >= 2.18.0, < 2.18.2 2.18.2
OSV RubyGems json >= 2.19.0, < 2.19.3 2.19.3

References

History

  • 1 Dec 2026 22:03 UTC · OSV: first stored (published 1 Dec 2026)
  • 1 Dec 2026 21:37 UTC · NVD: first stored (published 1 Dec 2026)
  • 1 Dec 2026 20:55 UTC · CVE List: first stored (published 1 Dec 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.