CVE-2026-33210: Ruby JSON has a format string injection vulnerability

Published Mar 19, 2026
·
Updated

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.

Other sources

Ruby JSON is a JSON implementation for Ruby. From version 2.14.0 to before versions 2.15.2.1, 2.17.1.2, and 2.19.2, a format string injection vulnerability can lead to denial of service attacks or information disclosure, when the allowduplicatekey: false parsing option is used to parse user supplied documents. This issue has been patched in versions 2.15.2.1, 2.17.1.2, and 2.19.2.

MITRE

Affected Software

6 affected componentsFixes available
rubygems/json>=2.14.0<2.15.2.1
2.15.2.1
rubygems/json>=2.16.0<2.17.1.2
2.17.1.2
rubygems/json>=2.18.0<2.19.2
2.19.2
ruby-lang Json Ruby>=2.14.0<2.15.2.1
ruby-lang Json Ruby>=2.16.0<2.17.1.2
ruby-lang Json Ruby>=2.18.0<2.19.2

Event History

Mar 19, 2026
Advisory Published
via GitHub·12:45 PM
Data Sourced
via GitHub·12:45 PM
DescriptionWeaknessAffected Software
Mar 20, 2026
CVE Published
via MITRE·10:57 PM
Data Sourced
via MITRE·10:57 PM
DescriptionWeakness
Data Sourced
via NVD·11:16 PM
DescriptionSeverityWeaknessAffected Software
Mar 21, 2026
Data Sourced
via Red Hat·12:02 AM
DescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-33210?

CVE-2026-33210 is classified as a medium severity vulnerability due to its potential for denial of service attacks or information disclosure.

2

How do I fix CVE-2026-33210?

To remediate CVE-2026-33210, upgrade to json version 2.15.2.1, 2.17.1.2, or 2.19.2.

3

Who is affected by CVE-2026-33210?

CVE-2026-33210 affects users utilizing the json package between versions 2.14.0 to 2.15.2.1, 2.16.0 to 2.17.1.2, and 2.18.0 to 2.19.2.

4

What causes the vulnerability in CVE-2026-33210?

CVE-2026-33210 is caused by a format string injection vulnerability when using the `allow_duplicate_key: false` parsing option.

5

Is the `allow_duplicate_key: false` option enabled by default in CVE-2026-33210?

No, the `allow_duplicate_key: false` option is not enabled by default, so only those who opted-in are impacted by CVE-2026-33210.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203