Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-33210: CWE-134: Use of Externally-Controlled Format String in ruby json

0
High
VulnerabilityCVE-2026-33210cvecve-2026-33210cwe-134
Published: Fri Mar 20 2026 (03/20/2026, 22:57:08 UTC)
Source: CVE Database V5
Vendor/Project: ruby
Product: json

Description

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 allow_duplicate_key: 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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 03/20/2026, 23:28:12 UTC

Technical Analysis

CVE-2026-33210 is a format string injection vulnerability classified under CWE-134, found in the Ruby JSON library versions 2.14.0 through versions prior to 2.15.2.1, 2.17.1.2, and 2.19.2. The vulnerability manifests when the JSON parser is invoked with the allow_duplicate_key: false option to parse user-supplied JSON documents. This option enforces uniqueness of keys but introduces a flaw where externally-controlled format strings can be injected and processed unsafely. An attacker can craft malicious JSON input that exploits this flaw, causing the Ruby JSON parser to interpret attacker-controlled data as format strings, leading to potential denial of service (e.g., application crashes) or information disclosure through unintended memory reads or logging outputs. The vulnerability is remotely exploitable over the network without requiring authentication or user interaction, with low attack complexity. The CVSS 4.0 vector indicates no privileges required, no user interaction, and a high impact on availability and moderate impact on confidentiality. The issue has been addressed in patched versions 2.15.2.1, 2.17.1.2, and 2.19.2 of the Ruby JSON library. No public exploits have been reported yet, but the high severity score and ease of exploitation make timely patching critical. This vulnerability affects any Ruby applications or services that parse JSON using the vulnerable library versions, especially those exposed to untrusted or external inputs.

Potential Impact

The vulnerability poses a significant risk to organizations worldwide that use the Ruby JSON library in affected versions, particularly in web applications, APIs, and services that parse JSON data from untrusted sources. Exploitation can result in denial of service, causing application crashes or service outages, which impacts availability and can disrupt business operations. Additionally, information disclosure risks may expose sensitive data, potentially leading to further exploitation or data breaches. Since the vulnerability requires no authentication or user interaction and can be triggered remotely, attackers can exploit it at scale, increasing the threat surface. Organizations relying on Ruby for backend services, especially those in sectors like finance, healthcare, and e-commerce where JSON parsing is common, face heightened risks. The impact extends to software supply chains and development environments that incorporate vulnerable Ruby JSON versions, potentially affecting downstream applications. Failure to patch promptly could lead to exploitation in targeted attacks or automated scanning campaigns once public exploits emerge.

Mitigation Recommendations

To mitigate CVE-2026-33210, organizations should immediately upgrade the Ruby JSON library to the patched versions 2.15.2.1, 2.17.1.2, or 2.19.2 depending on their Ruby environment. If upgrading is not immediately feasible, consider disabling or avoiding the use of the allow_duplicate_key: false parsing option when processing untrusted JSON input, as this triggers the vulnerability. Implement strict input validation and sanitization on JSON data sources to reduce the risk of malicious payloads reaching the parser. Employ runtime application self-protection (RASP) or web application firewalls (WAFs) with rules designed to detect and block suspicious JSON payloads containing format string patterns. Monitor application logs and network traffic for anomalies indicative of exploitation attempts, such as unexpected crashes or unusual format string patterns. Conduct code reviews and security testing focused on JSON parsing components to identify and remediate unsafe usage patterns. Finally, maintain an up-to-date inventory of Ruby dependencies and integrate automated vulnerability scanning into the CI/CD pipeline to detect vulnerable library versions proactively.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-03-17T23:23:58.313Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 69bdd4681188d0bb0cbbf670

Added to database: 3/20/2026, 11:12:40 PM

Last enriched: 3/20/2026, 11:28:12 PM

Last updated: 3/21/2026, 1:14:26 AM

Views: 6

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses