CVE-2026-33210: Ruby JSON has a format string injection vulnerability
Impact A format string injection vulnerability than that lead to denial of service attacks or information disclosure, when the allowduplicatekey: false parsing option is used to parse user supplied documents. This option isn't the default, if you didn't opt-in to use it, you are not impacted. Patches Patched in 2.19.2. Workarounds The issue can be avoided by not using the allowduplicatekey: false parsing option.
Published Mar 19, 2026 · Updated Mar 25, 2026
Affected packages
json
- Ecosystem
- RubyGems
- Affected
- >= 2.18.0, < 2.19.2
- Fixed in
- 2.19.2
- Check
bundle info json
json
- Ecosystem
- RubyGems
- Affected
- >= 2.16.0, < 2.17.1.2
- Fixed in
- 2.17.1.2
- Check
bundle info json
json
- Ecosystem
- RubyGems
- Affected
- >= 2.14.0, < 2.15.2.1
- Fixed in
- 2.15.2.1
- Check
bundle info json
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
A format string injection vulnerability than that lead to denial of service attacks or information disclosure, when the allow_duplicate_key: false parsing option is used to parse user supplied documents.
This option isn't the default, if you didn't opt-in to use it, you are not impacted.
Patches
Patched in 2.19.2.
Workarounds
The issue can be avoided by not using the allow_duplicate_key: false parsing option.
Credited to DavidKorczynski.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More RubyGems vulnerabilities
All RubyGems entriesCVE-2026-71847
Ruby JSON: JSON::ResumableParser#partial_value dereferences a freed input buffer and crashes on truncated duplicate-key streams
lowAug 7, 2026CVE-2026-54696
Ruby json: JSON generator heap buffer overflow when streaming to an IO
low3.7Jul 23, 2026CVE-2025-27788
Out-of-bounds Read in Ruby JSON Parser
high7.5Mar 12, 2025
