Skip to main content

CVE-2026-33210

HIGH
Use of Externally-Controlled Format String (CWE-134)
2026-03-19 https://github.com/ruby/json GHSA-3m6g-2423-7cp3
High
Disputed · 8.3 Vendor: https://github.com/ruby/json
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send crafted document with duplicate keys
  2. Exploit
    Parser processes with allow_duplicate_key: false
  3. Execution
    Format string injection triggers
  4. Impact
    Denial of service or information disclosure occurs

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Format string safety
Exploitation Conditions

Requires the non-default allow_duplicate_key: false parsing option to be explicitly enabled. Remote unauthenticated attacker sends crafted document with format string injection. Affects versions before 2.19.2.

Impact

The real-world risk of this vulnerability is moderate to low due to several mitigating factors. First, the vulnerable configuration ('allow_duplicate_key: false') is not enabled by default, meaning only users who explicitly opted into this parsing behavior are affected. Without available CVSS scores or EPSS probability data, we must assess based on the vulnerability class and attack requirements. Format string vulnerabilities (CWE-134) are typically exploitable remotely if user input reaches the vulnerable code path, but exploitation requires the attacker to control JSON documents being parsed. The technical impact is limited to denial of service and information disclosure rather than remote code execution, reducing severity. The availability of a patch (version 2.19.2) and a simple workaround (disabling the non-default option) further reduces risk. Organizations should prioritize patching based on whether they use the vulnerable parsing option in production systems that process untrusted JSON input. This is not a critical emergency requiring immediate action for most deployments, but affected systems should be patched during regular maintenance windows.

Exploit ScenarioDerived

An attacker identifies a Ruby web application that accepts JSON input and uses the 'allow_duplicate_key: false' parsing option, such as an API endpoint processing user configuration data. The attacker crafts a malicious JSON document containing format string specifiers (e.g., '%x', '%s', '%n') in keys or values where duplicate keys would normally be rejected. When the application parses this document, the format string injection triggers, either causing the application to crash (denial of service) or leaking sensitive memory contents such as authentication tokens or internal data structures back to the attacker through error messages or API responses.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 19, 2026

A format string injection vulnerability exists in the Ruby JSON gem that can lead to denial of service attacks or information disclosure when parsing user-supplied documents with the non-default 'allow_duplicate_key: false' parsing option enabled. The vulnerability affects users of the pkg:rubygems/json package who have explicitly opted into using this specific parsing configuration. There is no evidence of active exploitation (not listed in CISA KEV), and no EPSS score is currently available for risk quantification.

RemediationAI

Upgrade the Ruby JSON gem to version 2.19.2 or later, which contains the patch for this vulnerability. Detailed information is available in the official security advisory at https://github.com/ruby/json/security/advisories/GHSA-3m6g-2423-7cp3. Organizations can verify their current version using 'gem list json' and update with 'gem update json' or by updating their Gemfile dependencies. As an immediate workaround for systems that cannot be patched immediately, remove or avoid using the 'allow_duplicate_key: false' parsing option when processing untrusted JSON documents. Review application code to identify where this option is explicitly set and either remove it or ensure the JSON input is from trusted sources only. After patching, conduct testing to ensure application functionality is maintained, particularly for code paths that rely on duplicate key handling behavior.

Affected Packages

rubygems json fix: 2.15.2.1, 2.17.1.2, 2.18.3, 2.19.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in rubygems

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

This vulnerability affects the Ruby JSON gem (pkg:rubygems/json), a widely-used library for JSON parsing and generation in Ruby applications. The root cause is classified as CWE-134 (Use of Externally-Controlled Format String), which occurs when an application uses external input as part of a format string in functions like printf. In this case, when the 'allow_duplicate_key: false' option is enabled during JSON parsing, the library fails to properly sanitize user-supplied input, allowing attackers to inject format string specifiers. This can result in reading from arbitrary memory locations (information disclosure) or causing the application to crash (denial of service). The vulnerability is significant because JSON parsing is a fundamental operation in web applications, APIs, and data processing pipelines, though the non-default nature of the vulnerable configuration limits the attack surface.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Sources disagree (Medium–Critical)
Vendor (https://github.com/ruby/json) PRIMARY 8.3 HIGH
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE 9.1 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Red Hat 6.5 MEDIUM

vuln.today treats the vendor’s rating as authoritative. A higher third-party CVSS (e.g. CISA-ADP) is shown for transparency but does not drive the headline severity.

CVSS VectorVendor: https://github.com/ruby/json

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch released
Mar 31, 2026 - 21:13 nvd
Patch available
CVE Published
Mar 19, 2026 - 12:45 nvd
HIGH 8.3

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

A vulnerability in the Ruby JSON gem could allow attackers to disrupt services or access sensitive information, but only affects systems using a non-default parsing configuration. Organizations running Ruby applications with this specific setting enabled should assess their exposure and implement mitigations immediately, as no patch is currently available.

Business Impact: Medium
Compensating Controls
  1. Disable the 'allow_duplicate_key: false' parsing option if not required for business operations. 2) Implement strict input validation and sanitization for user-supplied JSON documents before parsing. 3) Deploy Web Application Firewall (WAF) rules to detect and block malformed JSON with duplicate keys. 4) Restrict network access to affected applications, limiting exposure to untrusted sources. 5) Monitor application logs for parsing errors or unexpected behavior. 6) Consider running affected Ruby applications in sandboxed or containerized environments with resource limits to mitigate DoS impact.

Threat Intelligence Overview

EPSS Score
0.0%
Top 97% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS GHSA Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Medium

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)CVE.org

pkg:rubygems/json
pkg:rubygems/json
pkg:rubygems/json

Vendor StatusVendor

SUSE

Severity: Critical
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy