Skip to main content

Nginx CVE-2026-33242

HIGH
Path Traversal (CWE-22)
2026-03-19 https://github.com/salvo-rs/salvo GHSA-f842-phm9-p4v4
7.5
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

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

  1. Access
    Craft HTTP request with ../ path traversal sequences
  2. Delivery
    Send request through salvo-proxy component
  3. Exploit
    Proxy fails to normalize path sequences
  4. Execution
    Forward request to upstream backend
  5. Impact
    Access protected endpoints or administrative dashboards

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires Salvo Rust framework v0.89.2 with salvo-proxy component enabled. Remote unauthenticated attacker sends crafted HTTP requests with '../' sequences in URL paths to bypass proxy routing and access protected backend endpoints. No user interaction needed.

Impact

This vulnerability presents a high real-world risk with multiple concerning factors. The CVSS vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N) indicates network-accessible exploitation requiring no authentication, low attack complexity, and no user interaction, making it trivially exploitable. A working proof-of-concept is publicly available demonstrating the attack methodology against common backend configurations like Nginx. The vulnerability enables unauthorized access to administrative interfaces and protected API endpoints that would normally be secured by the proxy gateway's routing rules, effectively negating authentication and authorization controls at the perimeter. While the CVSS score of 7.5 reflects only confidentiality impact, the business risk is elevated because API gateways are critical security control points in modern architectures. The attack is automatable and requires minimal skill, increasing likelihood of mass exploitation. Organizations using Salvo as a reverse proxy or API gateway for internal service protection should treat this as a priority remediation given the combination of ease of exploitation, public POC availability, and potential for unauthorized access to sensitive resources.

Exploit ScenarioDerived

An unauthenticated external attacker identifies a Salvo-based API gateway protecting internal services at /api/ paths. The attacker crafts a malicious request using URL-encoded path traversal sequences, such as curl http://target:8080/gateway/api/%2e%2e%2fadmin/index.html, which bypasses the proxy's routing constraints intended to restrict access to /api/* endpoints only. The Salvo proxy decodes %2e%2e to ../ but fails to normalize the path, forwarding GET /api/../admin HTTP/1.1 to the backend Nginx server, which processes the traversal and serves the administrative dashboard. The attacker gains unauthorized access to sensitive administrative interfaces, internal API documentation, or protected resources without authentication, effectively circumventing the API gateway's security controls.

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

Nginx's path traversal vulnerability enables unauthenticated remote attackers to bypass proxy routing controls and access unintended backend resources by exploiting improper normalization of encoded path sequences. The flaw allows attackers to reach protected endpoints and administrative interfaces that should be restricted through the proxy's access controls. A patch is available for this high-severity issue with a CVSS score of 7.5.

Earlier versions of this analysis (1)
v1 Mar 19, 2026 - 12:45 CVSS 7.5

A path traversal and access control bypass vulnerability exists in the salvo-proxy component of the Salvo Rust framework version 0.89.2. The vulnerability allows unauthenticated remote attackers to bypass proxy routing constraints and access protected backend endpoints or administrative dashboards by exploiting URL-encoded path traversal sequences (%2e%2e). A proof-of-concept exploit is publicly available demonstrating the attack against Nginx backends, with a CVSS score of 7.5 (High severity) reflecting the ease of exploitation and potential for unauthorized information disclosure.

RemediationAI

Upgrade to a patched version of Salvo that includes proper path normalization in the encode_url_path function. The vendor has made a patch available as referenced in the GitHub advisory at https://github.com/salvo-rs/salvo/security/advisories/GHSA-f842-phm9-p4v4, with details in commit 7bac30e6960355c58e358e402072d4a3e5c4e1bb. The recommended fix involves implementing RFC 3986-compliant path normalization before forwarding requests to upstream servers, either by using trusted libraries like Rust's URL crate for path joining or by explicitly blocking path segments containing dot-dot sequences after URL decoding. As a temporary mitigation until patching is complete, implement additional path traversal detection at the web application firewall or load balancer layer to block requests containing encoded traversal sequences (%2e%2e, %2e%2e%2f), restrict proxy-accessible routes to an explicit allowlist, and ensure backend services perform their own path validation rather than relying solely on the proxy gateway for access control. Monitor access logs for suspicious patterns including encoded dots in URLs targeting administrative or sensitive paths.

Affected Packages

cargo salvo fix: 0.89.3

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in cargo

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 Salvo Rust web framework (pkg:rust/salvo), specifically the salvo-proxy component. The root cause is CWE-22 (Improper Limitation of a Pathname to a Restricted Directory). The encode_url_path function in crates/proxy/src/lib.rs fails to normalize path traversal sequences before forwarding requests to upstream servers. When URL-encoded sequences like %2e%2e are received, Salvo's initial URL decoding converts them to literal ../ characters. The encode_url_path function then processes these sequences but uses a PATH_ENCODE_SET that excludes the dot (.) character from re-encoding, causing the traversal sequence to be forwarded verbatim to the backend server in requests like GET /api/../admin HTTP/1.1. This violates RFC 3986 path normalization requirements and allows attackers to escape intended routing boundaries at the API gateway layer.

Know when Nginx 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

GitHub Advisory PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

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

Lifecycle Timeline

2
Patch released
Mar 19, 2026 - 12:45 nvd
Patch available
CVE Published
Mar 19, 2026 - 12:44 nvd
HIGH 7.5

DescriptionGitHub Advisory

Details

A Path Traversal and Access Control Bypass vulnerability was discovered in the salvo-proxy component of the Salvo Rust framework (v0.89.2). The vulnerability allows an unauthenticated external attacker to bypass proxy routing constraints and access unintended backend paths (e.g., protected endpoints or administrative dashboards). This issue stems from the encode_url_path function, which fails to normalize "../" sequences and inadvertently forwards them verbatim to the upstream server by not re-encoding the "." character.

---

Technical Details

If someone tries to attack by sending a special code like %2e%2e, Salvo changes it back to ../ when it first checks the path. The proxy then gets this plain ../ value. When making the new URL to send forward, the encode_url_path function tries to change the path again, but its normal settings do not include the . (dot) character. Because of this, the proxy puts ../ straight into the new URL and sends a request like GET /api/../admin HTTP/1.1 to the backend server.

rust
// crates/proxy/src/lib.rs (Lines 100-105)

pub(crate) fn encode_url_path(path: &str) -> String {
    path.split('/')
        .map(|s| utf8_percent_encode(s, PATH_ENCODE_SET).to_string())
        .collect::<Vec<_>>()
        .join("/")
}

---

PoC

1 - Setup an Nginx Backend Server for example 2 - Start Salvo Proxy Gateway in other port routing to /api/ 3 - Run the curl to test the bypass:

bash
curl -s http://127.0.0.1:8080/gateway/api/%2e%2e%2fadmin/index.html

---

Impact

If attackers take advantage of this problem, they can get past API Gateway security checks and route limits without logging in. This could accidentally make internal services, admin pages, or folders visible.

The attack works because the special path is sent as-is to the backend, which often happens in systems that follow standard web address rules. Attackers might also use different ways of writing URLs or add extra parts to the web address to get past simple security checks that only look for exact ../ patterns.

---

Remediation

Instead of changing the text of the path manually, the proxy should use a standard way to clean up the path according to RFC 3986 before adding it to the main URL. It is better to use a trusted tool like the URL crate to join paths, or to block any path parts with “..” after decoding them. But a custom implementation maybe looks like:

rust
pub(crate) fn encode_url_path(path: &str) -> String {
    let normalized = normalize_path(path);
    normalized.split('/')
        .map(|s| utf8_percent_encode(s, PATH_ENCODE_SET).to_string())
        .collect::<Vec<_>>()
        .join("/")
}

fn normalize_path(path: &str) -> String {
    let mut stack = Vec::new();
    for part in path.split('/') {
        match part {
            "" | "." => (),
            ".." => { let _ = stack.pop(); },
            _ => stack.push(part),
        }
    }
    stack.join("/")
}

---

Vulnerable code introduced in: https://github.com/salvo-rs/salvo/commit/7bac30e6960355c58e358e402072d4a3e5c4e1bb#diff-e319bf7afcb577f7e9f4fb767005072f6335d23f306dd52e8c94f3d222610d02R20

---

Author: Tomas Illuminati

Executive ViewAI

Why It Matters

A critical vulnerability in the Salvo Rust framework (CVE-2026-33242) enables unauthenticated attackers to bypass security controls and access protected backend systems and administrative dashboards. Any organization running Salvo version 0.89.2 or earlier faces immediate risk of unauthorized data access and system compromise through publicly available exploit code.

Business Impact: High
Compensating Controls

Apply vendor patch. If patch deployment is delayed: (1) Deploy WAF rules to block requests containing URL-encoded path traversal sequences (%2e%2e, %2e, ../ variants); (2) Implement network segmentation to restrict Salvo proxy instances from direct access to sensitive backend systems; (3) Enable comprehensive request logging and alerting for suspicious path patterns; (4) Disable proxy routing features if not operationally critical until patching is complete.

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% exploitable
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 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
High

Priority Score

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

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Affected Products (CPE)GitHub Advisory

pkg:rust/salvo

Related Vulnerabilities in Salvo Rust Framework Security Flaws

View all 2

More in Nginx

View all
CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2013-2028 HIGH POC
7.5 Jul 20

The ngx_http_parse_chunked function in http/ngx_http_parse.c in nginx 1.3.9 through 1.4.0 allows remote attackers to cau

CVE-2025-1974 CRITICAL POC
9.8 Mar 25

A critical vulnerability in Kubernetes ingress-nginx controller allows unauthenticated attackers with pod network access

CVE-2013-4547 HIGH POC
7.5 Nov 23

nginx 0.8.41 through 1.4.3 and 1.5.x before 1.5.7 allows remote attackers to bypass intended restrictions via an unescap

CVE-2023-50919 CRITICAL POC
9.8 Jan 12

An issue was discovered on GL.iNet devices before version 4.5.0. Rated critical severity (CVSS 9.8), this vulnerability

CVE-2017-7529 HIGH
7.5 Jul 13

Nginx versions since 0.5.6 up to and including 1.13.2 are vulnerable to integer overflow vulnerability in nginx range fi

CVE-2016-0742 HIGH
7.5 Feb 15

The resolver in nginx before 1.8.1 and 1.9.x before 1.9.10 allows remote attackers to cause a denial of service (invalid

CVE-2025-1098 HIGH POC
8.8 Mar 25

Kubernetes ingress-nginx contains a configuration injection vulnerability via the mirror-target and mirror-host Ingress

CVE-2026-123633 CRITICAL POC
9.2 Nov 18

Use-after-free in NGINX Plus and NGINX Open Source can crash a worker process handling HTTP/2-proxied requests and, if A

CVE-2026-123007 CRITICAL POC
9.2 Nov 18

Heap buffer overflow in NGINX Plus and NGINX Open Source when HTTP/2 is enabled lets remote, unauthenticated attackers c

CVE-2024-49368 HIGH POC
8.9 Oct 21

Nginx UI is a web user interface for the Nginx web server. Rated high severity (CVSS 8.9), this vulnerability is remotel

CVE-2025-24514 HIGH POC
8.8 Mar 25

A security issue was discovered in ingress-nginx https://github.com/kubernetes/ingress-nginx where the `auth-url` Ingres

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