Nginx
CVE-2026-33242
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft HTTP request with ../ path traversal sequences
-
DeliverySend request through salvo-proxy component
-
ExploitProxy fails to normalize path sequences
-
ExecutionForward request to upstream backend
-
ImpactAccess 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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)
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
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
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
Lifecycle Timeline
2DescriptionGitHub 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.
// 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:
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:
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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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
Related Vulnerabilities in Salvo Rust Framework Security Flaws
View all 2Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour
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
A critical vulnerability in Kubernetes ingress-nginx controller allows unauthenticated attackers with pod network access
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
An issue was discovered on GL.iNet devices before version 4.5.0. Rated critical severity (CVSS 9.8), this vulnerability
Nginx versions since 0.5.6 up to and including 1.13.2 are vulnerable to integer overflow vulnerability in nginx range fi
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
Kubernetes ingress-nginx contains a configuration injection vulnerability via the mirror-target and mirror-host Ingress
Use-after-free in NGINX Plus and NGINX Open Source can crash a worker process handling HTTP/2-proxied requests and, if A
Heap buffer overflow in NGINX Plus and NGINX Open Source when HTTP/2 is enabled lets remote, unauthenticated attackers c
Nginx UI is a web user interface for the Nginx web server. Rated high severity (CVSS 8.9), this vulnerability is remotel
A security issue was discovered in ingress-nginx https://github.com/kubernetes/ingress-nginx where the `auth-url` Ingres
GHSA-f842-phm9-p4v4
NVD
CVE.org
EPSS
VulDB
Exploit-DB