Skip to main content

Addressable CVE-2026-141539

| EUVDEUVD-2026-140768 MEDIUM
Improper Neutralization of Null Byte or NUL Character (CWE-158)
2026-12-01 GitHub_M GHSA-mrrj-5mhw-rcf2
4.8
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Submit URL with pct-encoded NUL in host
  2. Delivery
    App denylist checks uri.host (sees full string)
  3. Exploit
    libidn truncates host at NUL during normalize
  4. Execution
    Request sent to shortened internal host
  5. Impact
    Reach host intended to be blocked

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Metacharacter neutralization
Exploitation Conditions

Three specific conditions must all hold: (1) the idn-ruby gem is installed, so Addressable selects the native IDNA backend - the pure-Ruby backend used when idn-ruby is absent is not affected; (2) the affected version range Addressable >= 2.2.5 and < 2.10.0 is in use; and (3) the consuming application mixes host forms, performing its security check on one representation (#host or #to_s, which keep the host as written) while acting on another (#normalize, #normalized_host, #normalized_authority, #normalized_site, #origin, #display_uri, or #== comparison, which return the NUL-truncated host). The attacker must also be able to supply a URL containing a pct-encoded NUL (%00) in the host label. Limiting factors: an application that consistently uses a single host form is not vulnerable, and the maximum effect is reaching a host that a filter intended to block.

Impact

This is a genuine but conditional access-control bypass rather than a high-urgency emergency. The provided CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N, base 4.8 Medium) aligns well with the mechanism: network-reachable (AV:N) and unauthenticated (PR:N), but high complexity (AC:H) because exploitation depends on the application itself mixing two host representations AND the idn-ruby gem being installed to select the native IDNA backend. No EPSS score, KEV listing, or SSVC automatable/technical-impact fields were supplied, so exploitation-probability and automation signals cannot be weighed. The vuln.today decision label is 'this_month' (not act_now or emergency), consistent with a medium-severity library flaw. No public exploit code or PoC reference is present in the input - only the vendor advisory, fix commit, and release are referenced. The limited C:L/I:L impact reflects that the payoff is a denylist/SSRF-filter bypass in a vulnerable consuming application, not direct code execution or data compromise. Overall: a real defense-in-depth concern for Ruby apps that use Addressable for host allow/deny decisions, but not a mass-exploitation priority on the available data.

Exploit ScenarioDerived

An application uses Addressable to enforce an SSRF denylist, checking uri.host against blocked internal hosts, but then issues the outbound request using uri.normalize or uri.origin. With idn-ruby installed, an attacker supplies a URL such as http://internal.example%00x/; the denylist sees 'internal.example%00x' and allows it, while the normalized request is sent to 'internal.example'. No public exploit code is identified at time of analysis, though the fix commit includes test cases demonstrating the truncation.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Dec 02, 2026

Hostname filtering bypass in the Addressable Ruby URI library (versions 2.2.5 through 2.9.2, fixed in 2.10.0) causes a percent-encoded NUL in a host label to be silently truncated when the URI is normalized. When the idn-ruby gem is installed, Addressable uses the native IDNA backend, whose libidn calls treat the decoded NUL as end-of-string, so 'http://internal.example%00x/' normalizes to 'http://internal.example/'. An application that validates the host using one representation (#host or #to_s, which keep the host as written) but builds the outbound request from another (#normalize, #normalized_host, #origin, #display_uri, or #==) can be induced to send a request to a shortened host it intended to block; the maximum impact is reaching a host a filter meant to deny. No public exploit identified at time of analysis, and the vendor notes the pure-Ruby IDNA backend (used when idn-ruby is absent) is not affected.

RemediationAI

Upgrade the addressable gem to 2.10.0 (release tag https://github.com/sporkmonger/addressable/releases/tag/addressable-2.10.0), which contains the upstream fix commit 19da0e8a2f4aed2328b25cbde83d7053890d8972; vendor-released patch: 2.10.0. Where upgrading is not immediately possible, the vendor documents three workarounds: perform the security check on the same host representation that is used to make the request (if the request is built from uri.normalize or uri.origin, check uri.normalize.host rather than uri.host), which closes the mismatch but requires auditing every call site that mixes forms; reject any URI whose host contains %00, which blocks the attack input but may break legitimate inputs containing an encoded NUL; or remove the idn-ruby gem so Addressable falls back to the pure-Ruby IDNA backend, at the cost of losing libidn-backed IDNA conversion performance/behavior. Applications that consistently use a single host representation throughout are not vulnerable.

Affected VersionsENISA

addressable 2.2.5, < 2.10.0

Affected Packages

rubygems addressable fix: 2.10.0

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

Addressable is an alternative implementation of Ruby's stdlib URI class, and it performs IDNA (internationalized domain name) conversion through one of two backends: a pure-Ruby implementation, or a native backend that binds the libidn C library via the idn-ruby gem. The root cause class is CWE-158 (Improper Neutralization of Null Byte or NUL Character), with the advisory also classifying it as CWE-626 (Null Byte Interaction Error). libidn operates on NUL-terminated C strings; when Addressable percent-decodes a host label and passes it to the native backend's to_ascii/to_unicode/punycode_encode/punycode_decode paths, an embedded NUL causes libidn to read only the text before it, dropping the rest of the label. The result is a representation mismatch inside the same object: #host and #to_s preserve the host as written, while #normalize, #normalized_host, #normalized_authority, #normalized_site, #origin and #display_uri return the truncated host, and #== considers the two forms equal. The fix in 2.10.0 makes the native backend leave a label containing a NUL unchanged (matching the pure-Ruby backend) and makes punycode_encode/punycode_decode raise IDN::Punycode::PunycodeError for strings containing a NUL rather than converting only the prefix.

Know when Addressable gets its next vulnerability

  • 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

Vendor (GitHub_M) PRIMARY 4.8 MEDIUM
AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
vuln.today AI 4.8 MEDIUM

Network-reachable and unauthenticated (AV:N/PR:N), but AC:H because exploitation requires idn-ruby installed and the app mixing #host with a normalized form; impact is a filter bypass (C:L/I:L, A:N).

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

2
Patch available
Dec 01, 2026 - 23:19 EUVD
CVE Published
Dec 01, 2026 - 21:47 cve.org
MEDIUM 4.8

DescriptionCVE.org

Addressable is an alternative implementation to the URI implementation that is part of Ruby's standard library. From 2.2.5 until 2.10.0, With the native IDNA backend, Addressable::URI#normalized_host passes a percent-encoded NUL after decoding to libidn, which truncates the remainder of the label. An application that checks the original host but uses normalize, origin, display_uri, or normalized_host can be made to send a request to a shortened host that it intended to block. This issue is fixed in version 2.10.0.

Threat Intelligence Overview

EPSS Score
0.4%
Top 66% exploitable
Prevalence
High
widely-used Ruby URI gem, but native IDNA path only when idn-ruby installed
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

24
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +24
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.

CVE-2026-35611 HIGH
7.5 Apr 07

Regular expression denial of service (ReDoS) in the Addressable Ruby library versions 2.3.0 through 2.8.x allows unauthe

CVE-2021-32740 HIGH
7.5 Jul 06

Addressable is an alternative implementation to the URI implementation that is part of Ruby's standard library. Rated hi

CVE-2026-141528 MEDIUM
5.9 Dec 01

Regular expression denial of service in the Addressable Ruby gem (2.3.0 through 2.9.2) allows crafted URIs to force exce

CVE-2026-141527 MEDIUM
5.9 Dec 01

Polynomial backtracking in Addressable's URI template matching lets a crafted URI drive Template#match or Template#extra

CVE-2026-141526 MEDIUM
5.9 Dec 01

Polynomial-time regular expression backtracking in the Addressable Ruby gem's URI template matcher (Template#match and T

CVE-2026-141525 MEDIUM
5.9 Dec 01

Polynomial-time regular-expression backtracking in the Addressable Ruby gem (2.9.1 through 2.9.2) lets unauthenticated r

CVE-2026-141538 MEDIUM
4.8 Dec 01

Addressable, the Ruby URI library, fails to reject or percent-encode host-changing delimiters in the userinfo component:

CVE-2026-141529 LOW
3.7 Dec 01

Denial of service in the Addressable Ruby gem 2.9.1 through 2.9.x lets unauthenticated remote attackers consume excessiv

CVE-2026-141524 LOW
3.7 Dec 01

Addressable, the Ruby URI and RFC 6570 template library, takes the variable name in an unexploded ';', '?', or '&' templ

CVE-2026-141535 LOW
3.7 Dec 01

SSRF filter bypass in the Addressable Ruby gem (2.3.5 through 2.9.2) lets an attacker-supplied URL pass a destination ch

CVE-2026-141537 LOW
3.7 Dec 01

Quadratic-time Unicode normalization in the Ruby Addressable gem (2.0.0 through 2.9.2) lets remote attackers burn CPU on

CVE-2026-141536 LOW
3.7 Dec 01

Addressable's URI#request_uri (versions 2.1.2 through 2.9.2) returns the path and query verbatim, so stored control char

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