← 漏洞与更新

中危漏洞公告Ruby

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

受影响

软件包受影响版本修复版本
rubygems:json>= 2.18.0, < 2.18.22.18.2
rubygems:json>= 2.19.0, < 2.19.32.19.3

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. ruby require "json" doc = '"' + ("A" 4096) + "\\\…

在 GitHub Advisory Database 阅读

2026/12/02 06:15,GitHub Advisory Database 发布了“Ruby JSON: Out of Bound Write in parser when `allow_control_characters: true` is enabled”(类型:漏洞公告)。严重程度为“中危”(medium)。相关技术:Ruby。CVE:CVE-2026-141523。