GHSA-8GMH-2HHJ-2HV9
Addressable URI normalization resolves some dotted path segments to the wrong path
Overview
Description
Addressable::URI.normalize_path resolves some paths containing ..
segments to a different path than RFC 3986 does. When a path climbs
above the root before any other .. is resolved, the segments that
later .. segments should remove are instead kept:
/../../public/x/../../secret normalizes to /public/x/secret instead
of /secret. URI#normalize, URI#join, URI#== and URI#=== all use
this normalization. An application that checks a normalized Addressable
path against an allowlist, but sends the original URI to something
that resolves it according to RFC 3986, can be made to allow a
request for a path outside the allowlist.
Source: OX vulnerability database
Severity
MEDIUM
No CVSS vector in the source. Severity comes from the advisory.
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| RubyGems | addressable | — | 2.9.1 |
Open a package to see all its vulnerabilities.
Operating systems
No Linux distribution reports this ID.
References
- github.com https://github.com/sporkmonger/addressable/blob/main/CHANGELOG.md#v2.9.1
- github.com https://github.com/sporkmonger/addressable/compare/addressable-2.9.0...addressable-2.9.1
- github.com https://github.com/sporkmonger/addressable/security/advisories/GHSA-8gmh-2hhj-2hv9
- rubygems.org https://rubygems.org/gems/addressable/versions/2.9.1
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.