{"id":"DHI-4vxe-ezfm-447k-l4qh","summary":"### Summary","details":"### Summary\n\nParsing 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.\n\n### Details\n\nIf an ASCI control character is preceded by a backslash, the bound checks can be defeated.\n\nOriginally fixed as a regular bug in `json` `1.9.3`.\n\n### Proof of concept\n\nThe issue can easily be reproduced with a backslash followed by a control character. Some padding is required.\n\n```ruby\nrequire \"json\"\ndoc = '\"' + (\"A\" * 4096) + \"\\\\\\x01\" + '\"'\nJSON.parse(doc, allow_control_characters: true)\n```\n\n### Impact\n\nIf the `allow_control_characters: true` option is used to parse untrusted input, it could be used as a DOS vector.","modified":"2026-12-01T22:00:13.010425382Z","published":"2026-12-01T21:53:49Z","upstream":["CVE-2026-141523"],"references":[{"type":"ADVISORY","url":"https://scout.docker.com/v/DHI-4vxe-ezfm-447k-l4qh"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-cjpr-jw2g-fw99"},{"type":"ADVISORY","url":"https://github.com/ruby/json/security/advisories/GHSA-cjpr-jw2g-fw99"},{"type":"FIX","url":"https://github.com/ruby/json/commit/dcfbbcd36f240c18c3b89e5399105715f70162e3"},{"type":"FIX","url":"https://github.com/ruby/json/commit/75e2f6453a3bf79df086ac10e41dbc5b7f124a76"},{"type":"WEB","url":"https://github.com/ruby/json/releases/tag/v2.19.3"},{"type":"WEB","url":"https://github.com/ruby/json/releases/tag/v2.18.2"}],"affected":[{"package":{"name":"ruby-4.0","ecosystem":"Docker Hardened Images:Alpine:3.23","purl":"pkg:apk/dhi/ruby-4.0"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.0.1-r0"}]}],"versions":["4.0.1-r0","4.0.1-r1","4.0.10-r4","4.0.10-r5","4.0.2-r1","4.0.2-r2","4.0.3-r2","4.0.4-r2","4.0.4-r3","4.0.5-r3","4.0.6-r3","4.0.6-r4","4.0.7-r4","4.0.9-r4"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-4vxe-ezfm-447k-l4qh.json"}},{"package":{"name":"ruby-4.0","ecosystem":"Docker Hardened Images:Alpine:3.24","purl":"pkg:apk/dhi/ruby-4.0"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.0.4-r5"}]}],"versions":["0.0.4-r5","0.1.1-r5","0.1.12-r5","0.1.2-r5","0.1.4-r5","0.2.0-r5","0.2.1-r5","0.3.0-r5","0.3.2-r5","0.3.9-r5","0.31.1-r5","0.4.3-r5","0.5.0-r5","0.5.1-r5","0.6.3-r5","0.6.4.1-r5","1.1.8-r5","1.11.1-r5","1.16.0-r5","1.7.0-r5","1.8.1-r5","13.3.1-r5","2.2.3-r5","2.6.9-r5","3.10.0-r5","3.3.5-r5","3.4.4-r5","3.7.5-r5","4.0.1-r5","4.0.10-r4","4.0.10-r5","4.0.5-r3","4.0.6-r3","4.0.6-r4","4.0.7-r4","4.0.9-r4","7.0.4-r5"],"database_specific":{"source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-4vxe-ezfm-447k-l4qh.json","owner_kind":"HSP"}},{"package":{"name":"ruby-4.0","ecosystem":"Docker Hardened Images:Debian:13","purl":"pkg:deb/dhi/ruby-4.0"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.0.5-0"}]}],"versions":["4.0.10-0","4.0.5-0","4.0.5-1","4.0.5-2","4.0.5-3","4.0.5-4","4.0.5-5","4.0.5-6","4.0.6-0","4.0.6-1","4.0.6-10","4.0.6-11","4.0.6-12","4.0.6-13","4.0.6-14","4.0.6-15","4.0.6-16","4.0.6-17","4.0.6-18","4.0.6-19","4.0.6-2","4.0.6-20","4.0.6-21","4.0.6-22","4.0.6-23","4.0.6-24","4.0.6-25","4.0.6-26","4.0.6-27","4.0.6-28","4.0.6-29","4.0.6-3","4.0.6-30","4.0.6-31","4.0.6-32","4.0.6-33","4.0.6-34","4.0.6-35","4.0.6-36","4.0.6-37","4.0.6-38","4.0.6-39","4.0.6-4","4.0.6-40","4.0.6-41","4.0.6-42","4.0.6-43","4.0.6-44","4.0.6-45","4.0.6-46","4.0.6-47","4.0.6-48","4.0.6-49","4.0.6-5","4.0.6-50","4.0.6-6","4.0.6-7","4.0.6-8","4.0.6-9","4.0.7-0","4.0.7-1","4.0.7-10","4.0.7-11","4.0.7-12","4.0.7-13","4.0.7-14","4.0.7-15","4.0.7-16","4.0.7-17","4.0.7-18","4.0.7-19","4.0.7-2","4.0.7-3","4.0.7-4","4.0.7-5","4.0.7-6","4.0.7-7","4.0.7-8","4.0.7-9","4.0.9-0","4.0.9-1"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-4vxe-ezfm-447k-l4qh.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H"}]}