CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-67309

CVE-2026-67309: Path Traversal and Authentication Bypass in Traefik RewriteTarget Middleware

Alon Barad
Alon Barad
Software Engineer

Aug 6, 2026·7 min read·31 visits

Executive Summary (TL;DR)

Unauthenticated remote attackers can bypass Traefik's routing-layer security controls via relative dot-segment path traversals, gaining unauthorized access to restricted downstream backend resources.

A high-severity path traversal vulnerability exists in Traefik's Kubernetes Ingress NGINX provider. The flaw resides in the RewriteTarget middleware, which is auto-generated when an Ingress resource specifies the `nginx.ingress.kubernetes.io/rewrite-target` annotation. This allows remote, unauthenticated attackers to bypass route-level authentication and access restricted downstream endpoints by exploiting a parser differential.

Vulnerability Overview

Traefik is an open-source reverse proxy and edge router frequently deployed in Kubernetes environments as an Ingress Controller. In this deployment model, Traefik interfaces directly with the Kubernetes API to dynamically translate Ingress resources into internal routing rules. One such translation involves processing NGINX-specific ingress annotations, notably the nginx.ingress.kubernetes.io/rewrite-target annotation, which dynamically configures path rewrites using regular expressions.

The vulnerability, identified as CVE-2026-67309, exists within the auto-generated RewriteTarget middleware mechanism of Traefik. When handling rewrites, the proxy translates regular expression patterns into path replacement templates. Under specific pattern configurations, malicious HTTP requests can circumvent routing-layer authorization barriers while navigating to sensitive backend resources.

Classified under CWE-22, this path traversal flaw does not directly impact the local file system of the Traefik proxy. Instead, it alters the downstream request path forwarded to downstream services. This path modification results in an authentication bypass, as the proxy evaluates routing and security controls before executing the middleware-driven rewrite.

Root Cause Analysis

The root cause of CVE-2026-67309 resides in a technical discrepancy between Traefik's primary routing parser and the path modification performed by the RewriteTarget middleware. When an Ingress resource specifies an annotation like nginx.ingress.kubernetes.io/rewrite-target: /$1 alongside a loose regular expression like /api(.*), Traefik registers a routing rule matching the /api prefix.

When a malicious client sends a request to /api../admin, Traefik's routing phase analyzes the request path. At this point, the path /api../admin contains no valid dot-segment separators, meaning the directory traversal sequence .. is parsed as a literal part of the string api... Since this string starts with /api, the request matches the routing rule mapped to the public API controller.

Because the request matches the public API router, Traefik routes the traffic. Any authentication or authorization policies (such as BasicAuth, DigestAuth, or ForwardAuth) that protect the /admin path are ignored because the routing engine does not associate this request with the /admin route. The request successfully passes the routing layer without authorization.

Following the routing phase, Traefik passes the request to the RewriteTarget middleware. The regular expression ^/api(.*) is executed against /api../admin, capturing the group ../admin. The middleware substitutes this group into the target template, creating the rewritten path /../admin. Traefik forwards this unnormalized, traversable path directly to the downstream server, which cleans /../admin to /admin, exposing the restricted page.

Code-Level Vulnerability & Patch Analysis

To address this vulnerability, Traefik developers modified the request-handling logic in the RewriteTarget middleware, configuration snippet rewrite actions, and the ReplacePathRegex middleware. The primary fix introduces an invariant validation check after path modification, preventing unnormalized path segments from being forwarded downstream.

The fix leverages Go's standard library JoinPath() function to resolve any path-relative sequences before forwarding. The patched code verifies if the post-rewrite path remains equivalent to the sanitized path. If a difference is detected, indicating that directory traversal sequences were injected, the middleware terminates the request immediately with an HTTP 400 Bad Request status.

Below is the patched logic within pkg/middlewares/ingressnginx/rewritetarget/rewrite_target.go which enforces this constraint:

// Here we are sanitizing the URL when the path is not empty,
// as the JoinPath method is adding a leading slash if the path is empty.
path := req.URL.Path
if path != "" {
	req.URL = req.URL.JoinPath()
}
 
// Stop here if the normalization of the path produces a different path.
if path != req.URL.Path {
	logger.Debug().Msgf("Rejecting request, sanitized path: %q is not equivalent to stripped path: %q", path, req.URL.Path)
	http.Error(rw, http.StatusText(http.StatusBadRequest), http.StatusBadRequest)
	return
}

This check is consistently applied across multiple integration points. Similar modifications were introduced in pkg/middlewares/ingressnginx/snippet/action.go and pkg/middlewares/replacepathregex/replace_path_regex.go to ensure that any custom regex path replacement is subjected to the same structural validation. This comprehensive implementation blocks variants that attempt path replacement through alternative regex-driven configuration patterns.

Exploitation & Proof-of-Concept Analysis

Exploiting CVE-2026-67309 requires a specific combination of a loosely written regular expression in a Kubernetes Ingress resource and a downstream server that performs path normalization. An attacker does not require credentials, special network configurations, or user interaction. The attack is entirely unauthenticated and conducted over a standard HTTP connection.

An attacker begins by scanning public-facing Ingress definitions or sending speculative HTTP probes. If an Ingress maps /api(.*) to a rewrite target of /$1, the attacker constructs a payload targeting /api../<restricted_endpoint>. By omitting the slash after the initial segment, the routing parser is deceived into treating the payload as part of the public path.

Upon receiving the request, Traefik processes the rewrite, converting /api../admin into /../admin. The proxy forwards the raw rewritten URL to the target backend. The backend server receives /../admin, performs its own internal RFC-compliant URL parsing, collapses the dot-segments, and serves the resource mapped to /admin. The routing-layer authentication policies on Traefik are bypassed entirely, exposing the downstream administrative interface.

Re-exploitation, Bypass Potential, & Limitations

Evaluating the patch reveals potential edge cases where parser differentials between Traefik and downstream servers may persist. While the JoinPath() check successfully mitigates standard relative directory traversals on Unix-like targets, downstream environments running on Windows-based infrastructure may behave differently.

First, Go's standard library path cleaning on Unix targets does not evaluate the backslash (\) character as a folder separator. If an attacker submits a request targeting /api..\admin, the rewritten path resolves to /..\admin. Because Go's path cleaning does not collapse this sequence, the validation check passes. If the downstream application runs on Windows IIS or utilizes a framework that treats backslashes as forward slashes, it will normalize /..\admin to /admin, completing the bypass.

Second, double URL encoding remains an area of concern depending on backend parsing behavior. If an attacker submits /api%252e%252e/admin, Traefik decodes the first layer to /api%2e%2e/admin. The regex extracts %2e%2e/admin, which the JoinPath() validator evaluates as literal characters rather than dot-segments. If the downstream backend performs a second layer of URL decoding before executing path routing, it will translate %2e%2e/admin to ../admin and trigger the directory traversal.

Finally, matrix parameters or semicolon-delimited paths present potential bypass opportunities in Java environments. Servers like Apache Tomcat or Spring parse paths containing semicolons differently from standard Go routers. If Traefik fails to collapse sequences like /api/..;param/admin but the downstream server processes the semicolon to discard parameters and normalize the parent directory, unauthorized access may still be achieved.

Incident Detection & Mitigation Strategies

Remediation of CVE-2026-67309 requires upgrading Traefik to version v3.7.8 or higher. This release integrates the validation checks across all rewrite-related middleware components. Administrators should deploy the updated version using their standard Kubernetes lifecycle management tools, such as Helm or direct manifest updates.

If upgrading is not immediately possible, administrators must implement configuration workarounds. The primary configuration mitigation is to restrict regular expressions within Ingress resources to require explicit directory separators. Instead of using /api(.*), rewrite patterns must use /api/(.*). This forces any dot-segment input like /api/../admin to be normalized by Traefik prior to rule matching, correctly directing the request to the protected /admin route where authentication is enforced.

Additionally, security teams should implement Web Application Firewall (WAF) rules to inspect incoming requests. Detection signatures should target paths containing dot-segments directly adjacent to directory segments without a dividing slash. Monitoring logs for HTTP 400 Bad Request responses containing the debug log string 'Rejecting request, sanitized path' can assist in identifying active scanning or exploit attempts.

Official Patches

TraefikPrimary fix commit introducing JoinPath normalization validation check

Fix Analysis (3)

Technical Appendix

CVSS Score
7.8/ 10
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N
EPSS Probability
0.49%
Top 60% most exploited
15,000
via Shodan

Affected Systems

Traefik Proxy (Kubernetes Ingress NGINX provider environment with RewriteTarget enabled)

Affected Versions Detail

Product
Affected Versions
Fixed Version
Traefik
Traefik
>= v3.7.0, <= v3.7.7v3.7.8
AttributeDetail
CWE IDCWE-22
Attack VectorNetwork (AV:N)
CVSS v4.07.8 (High)
EPSS Score0.00492
Exploit StatusPoC (No Weaponized)
CISA KEV StatusNot Listed

MITRE ATT&CK Mapping

T1083File and Directory Discovery
Discovery
T1005Data from Local System
Collection
CWE-22
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

The product uses external input to construct a pathname that is intended to identify a file or directory that is located under a restricted parent directory, but the product does not properly neutralize special elements within the pathname.

Known Exploits & Detection

Wiz Vulnerability DatabaseExploit methodology and context details outlined in GHSA security advisory

Vulnerability Timeline

Development patches introduced internally.
2026-07-08
Initial testing and Gateway API test coverage fixes.
2026-07-09
Commits finalizing the JoinPath() sanitization checks.
2026-07-13
Vulnerability officially disclosed as CVE-2026-67309.
2026-08-01
NVD Record updated with primary CVSS scoring.
2026-08-03

References & Sources

  • [1]GitHub Security Advisory GHSA-8rxv-jg7p-wvg3
  • [2]VulnCheck Security Advisory

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•about 1 hour ago•CVE-2026-126299
7.5

CVE-2026-126299: Quadratic Algorithmic Complexity Denial of Service in NLTK CCG Lexicon Parser

An algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) before version 3.10.4 allows remote unauthenticated attackers to cause a denial of service via crafted Combinatory Categorial Grammar (CCG) lexicon strings. The parser in nltk.ccg.lexicon.fromstring performs repeated immutable string slicing, concatenation, and regex tail capturing, resulting in O(n^2) CPU consumption when processing wide, flat category definitions.

Alon Barad
Alon Barad
2 views•10 min read
•about 2 hours ago•CVE-2026-126295
7.1

CVE-2026-126295: Path Traversal and Unconfined File Access in NLTK BllipParser

CVE-2026-126295 (also tracked as GHSA-fg9w-wfp5-j933) is a path confinement bypass vulnerability in the Natural Language Toolkit (NLTK) affecting versions 3.10.0 prior to 3.10.4. The flaw resides in nltk/parse/bllip.py within the BllipParser class and its factory method BllipParser.from_unified_model_dir(). Unlike sibling tool wrappers in NLTK that enforce data-root confinement via the nltk.pathsec module, BllipParser passes caller-supplied filesystem paths directly into the third-party bllipparser native C extension without validation. When an application passes untrusted input as model paths or directories to BllipParser, an attacker can force the native extension to open arbitrary files on the local filesystem. This leads to information disclosure through parser diagnostic oracles, local model tampering via shared directories, and denial of service by hanging worker threads on blocking special files (such as FIFOs or device nodes) or exhausting memory via oversized files.

Amit Schendel
Amit Schendel
2 views•11 min read
•about 3 hours ago•CVE-2026-126300
5.3

CVE-2026-126300: Algorithmic Complexity Denial of Service in NLTK TreebankWordTokenizer.span_tokenize

CVE-2026-126300 (GHSA-ffr9-mgrr-wcvr) is an inefficient algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) Python library affecting versions 3.2.5 prior to 3.10.4. The flaw resides in the quote-restoration routine of TreebankWordTokenizer.span_tokenize and NLTKWordTokenizer.span_tokenize, where repeated calls to list.pop(0) over matched quote tokens introduce quadratic O(n^2) time complexity. An unauthenticated remote attacker who supplies input containing long sequences of double-quote characters can exhaust CPU resources and degrade service availability.

Amit Schendel
Amit Schendel
3 views•10 min read
•about 4 hours ago•GHSA-GPWC-27CW-RH9R
5.3

CVE-2026-126301: Quadratic CPU Exhaustion in NLTK LegalitySyllableTokenizer

The Natural Language Toolkit (NLTK) versions 3.6 through 3.10.3 contain an algorithmic complexity vulnerability in the LegalitySyllableTokenizer.tokenize method. When processing tokens composed of continuous runs of vowels, an unguarded string reversal and set membership lookup loop executes in quadratic time relative to the input token length. Remote attackers capable of submitting arbitrary text to applications utilizing this tokenizer can trigger sustained single-core CPU exhaustion and application-level denial of service.

Amit Schendel
Amit Schendel
4 views•10 min read
•about 5 hours ago•CVE-2026-126304
8.7

CVE-2026-126304: Symlink Path Traversal in NLTK YCOECorpusReader

CVE-2026-126304 is a symlink path traversal vulnerability (CWE-59) in the Natural Language Toolkit (NLTK) versions 3.10.0 prior to 3.10.4. The YCOECorpusReader class constructs internal sub-readers for the 'psd' and 'pos' subdirectories using FileSystemPathPointer.join(), which relies exclusively on lexical string-prefix validation rather than canonical path resolution. An attacker who supplies a crafted YCOE corpus containing symbolic links in place of the 'psd' or 'pos' subdirectories can bypass directory confinement and read arbitrary files from sibling corpora or sensitive directories within the NLTK data sandbox.

Amit Schendel
Amit Schendel
6 views•9 min read
•about 6 hours ago•CVE-2026-128077
6.5

CVE-2026-128077: Authorization Bypass via Request Path Desynchronization in Nuxt and @nuxt/nitro-server

CVE-2026-128077 (GHSA-r99w-jh2x-3mg9) is an authorization bypass and interpretation conflict vulnerability affecting Nuxt and its underlying @nuxt/nitro-server package in versions 4.6.0 through 4.6.3. When an incoming HTTP request path begins with a double forward slash (e.g., //x/admin), the WHATWG URL parser within the Nuxt server-side page renderer interprets the initial segment as a network host/authority and resolves the remaining path (/admin) against the application's page router. Because Nitro server middleware, route-scoped serverHandlers, and Nitro routeRules evaluate the unparsed request path (//x/admin), path-based access controls, redirects, and security header policies configured for /admin fail to match and are bypassed.

Amit Schendel
Amit Schendel
5 views•10 min read