Abstract
Path traversal (CWE-22) was a headline web server flaw in October 2000, when Microsoft patched IIS (bulletin MS00-078), and it ranked sixth in MITRE’s 2025 CWE Top 25; two new advisories appeared between 27 November and 1 December 2026. Part of the reason it persists is missing confinement: code joins a user-supplied name to a directory without checking where it lands. The other part is disagreement. A path may be read by several components: decoders, proxies, application servers, policy engines, runtimes, archive extractors and the operating system. When two of them interpret the same string differently, a check made by one can be bypassed in the other, to reach a different file or a protected resource under a name the check did not recognise. Cases from IIS, Apache 2.4.49, Tomcat behind proxies, Python’s tarfile filters and HashiCorp Vault follow that pattern; a 2025 WinRAR flaw wrote archive entries outside the destination by an unpublished internal mechanism. Filters that strip dangerous sequences model one reader. The strongest designs take the attacker’s string out of the path or confine the open in the call that resolves it (openat2, Go’s os.Root, within documented limits), keeping authorisation and least privilege as separate controls.
An old weakness in new advisories
Two advisories from late November 2026
On 27 November 2026 INCIBE-CERT published a notice for CVE-2026-112189 in Medusa 2.14.2, an open-source e-commerce platform, classified as CWE-22. According to INCIBE, the product import function did not properly validate the file_key parameter of the /admin/products/imports endpoint, which could let a remote attacker authenticated with administrative access reference files outside the intended import directory. When the application tried to process such files as CSV, it could partially reveal their contents through parsing or validation error messages, and its clean-up routines, which operate on the attacker-controlled path, could delete files the application process can reach. INCIBE gave it a CVSS v4.0 score of 5.1 and reported no fix at the time of publication.1
Four days later, on 1 December 2026, AWS published bulletin 2026-205-AWS, titled as a relative path traversal, for CVE-2026-139820 in postgresql-logfdw, a foreign data wrapper that exposes PostgreSQL log files as SQL tables. Before version 1.5, a non-superuser role granted log_fdw privileges “might be able to read files outside the configured log directory that are readable by the database server process by supplying a crafted foreign table file name.” The remediation includes an instruction worth noting: recreate or alter “any foreign table whose file name is not a plain file name in the log directory.”2
Both needed some privilege, and both concern a name expected to be a plain file in one directory. They are ordinary, and the class remains common (below).
The family of weaknesses
MITRE’s Common Weakness Enumeration defines CWE-22 as the case where a product “uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.”3 Its children separate the two classic shapes: CWE-23, relative traversal with .. segments, and CWE-36, absolute traversal where the attacker simply supplies /etc/passwd or C:\Windows\....3 (On how these enumerations relate, see CVE, CWE and CAPEC.)
Two neighbouring entries matter as much as the parent. CWE-59, link following, covers a product that “does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.”4 A name can be entirely innocent as a string and still lead elsewhere once the file system resolves a symbolic link. CWE-41, path equivalence, covers manipulations “intended to generate multiple names for the same object”. CWE draws the distinction precisely: equivalence is “different from path traversal, wherein the manipulations are performed to generate a name for a different object.”5 Equivalence is the access-control version of the problem. If a rule protects /admin and the server also answers to /admin/ or /ADMIN, the rule protects one name of the resource. CWE-22’s own notes say that “pathname equivalence can be regarded as a type of canonicalization error” and give a trailing slash as an example of a bypass of access rules.3
These distinctions organise the article. Some cases reach a different file because nothing confined the name at all; the two advisories above read that way. Others reach a different file because a check was made on one interpretation of the name and the file system acted on another. Still others reach the same resource under a name an access rule did not recognise. The second and third groups share a mechanism, a disagreement between two components about what a name denotes, and they are the main subject here. The first is the simpler failure, and the confinement controls discussed later address it too.
Where it ranks
The 2025 CWE Top 25, built from 39,080 CVE records published between 1 June 2024 and 1 June 2025, places CWE-22 sixth with a score of 8.99, one place lower than in 2024. Ten of the CVEs mapped to it in that window were in CISA’s Known Exploited Vulnerabilities catalogue.67 MITRE’s separate 2025 list of the top ten weaknesses among KEV entries also ranks it sixth, again with ten CVEs, behind OS command injection (twenty).8
In May 2024 CISA and the FBI issued a Secure by Design Alert devoted to the class. At that point CISA had listed 55 directory traversal vulnerabilities in KEV. The alert was prompted by campaigns exploiting CVE-2024-1708 in ConnectWise ScreenConnect and CVE-2024-20345 in Cisco AppDynamics, and it notes that such flaws “have been called ‘unforgivable’ since at least 2007”, citing a MITRE paper of that year.9
The first famous instances
The canonical early case is Microsoft’s bulletin MS00-078 of 17 October 2000, the “Web Server Folder Traversal” vulnerability in IIS 4.0 and 5.0. Microsoft’s description attributes it to “a canonicalization error”: a malformed URL could reach “files and folders that lie anywhere on the logical drive that contains the web folders.”10 NVD’s record for CVE-2000-0884 says the malformed URLs “contain UNICODE encoded characters”.11
Seven months later MS01-026 described a second, related flaw (CAN-2001-0333, now CVE-2001-0333). IIS decoded a request for a server-side program, ran its security checks on the decoded form, and then decoded it again. In Microsoft’s words, “a second, superfluous decoding pass is performed after the security checks are completed.”12 NVD summarises the attack as “encoding .. (dot dot) and “\” characters twice”.13 The bulletin is one of the clearest statements of the whole problem in the literature: the check and the use saw different strings.
One name, several readers
The path a path travels
A request for a file can pass through several interpreters. The stages below are illustrative: a given deployment may have fewer, and which of them decode or normalise depends on the products and their configuration.
| Stage | What it does to the name | Typical owner |
|---|---|---|
| Edge proxy, CDN or WAF | Decodes some percent-escapes, may merge slashes, matches routes and rules | Platform team or vendor |
| Authentication or policy proxy | Matches allow and deny rules against its own parse | Platform or security team |
| Application server | May decode (again), may strip or interpret path parameters, maps to a handler | Framework |
| Application code | Joins a base directory with a parameter, perhaps normalises, perhaps checks | Developer |
| Language runtime | Converts strings to bytes or to the platform’s code page | Runtime |
| Windows path normalisation (Win32 APIs) | Converts separators, applies current drive and directory, evaluates . and .., trims trailing dots and spaces | Operating system |
| Kernel path lookup and file system | Resolves .., symbolic links and mount points; applies the file system’s case rules | Operating system |
Each row has its own grammar (the Windows row is described in Microsoft’s path-format documentation14), and specifications leave room for disagreement. RFC 3986, the URI standard, says that percent-encoded unreserved characters, including the period %2E, “should be decoded to their corresponding unreserved characters by URI normalizers”, while “URIs that differ in the replacement of a reserved character with its corresponding percent-encoded octet are not equivalent”, which makes %2F and / different things in a URI.15 Somewhere between the two an implementation decides when to decode and what to do with an encoded slash, and the next implementation in the chain may decide differently.
CWE’s mitigation advice compresses the lesson into two sentences: inputs “should be decoded and canonicalized to the application’s current internal representation before being validated”, and the application should make sure it “does not decode the same input twice”.3
Percent-encoding, once and twice
The Apache HTTP Server vulnerabilities of autumn 2021 are a recent example with a vendor advisory and published third-party analysis. The project’s own advisory for CVE-2021-41773 says: “A flaw was found in a change made to path normalization in Apache HTTP Server 2.4.49.” An attacker could map URLs “to files outside the directories configured by Alias-like directives”, and if CGI was enabled for those paths, run code. The issue was “known to be exploited in the wild”. It was reported on 29 September 2021 and version 2.4.50 shipped on 4 October.16
Qualys’s analysis describes the mechanism. The new normalisation routine decoded escapes one character at a time and did not recognise %2e as a dot when checking for parent references, so a segment written as .%2e passed the check and was later decoded into ...17 On Qualys’s reading, the traversal check was applied before the encoded dot had been decoded, so the order of decoding and checking was the defect.
The fix in 2.4.50 was itself incomplete. CVE-2021-42013, reported on 6 October and fixed in 2.4.51 the next day, covered the same traversal with a double-encoded dot.16 Qualys explains that the 2.4.50 fix “did not cover double URL encoding”: percent-encoding the characters of %2e itself produced a form that passed the new check and still decoded to a dot.17 Twenty years after MS01-026, the same structure had reappeared in a different code base. The Apache advisory also records the configuration that limited the damage: files outside the aliased directories were safe where the usual default “require all denied” was in place.16 That default is an authorisation rule enforced by the server: where it applied, a request that escaped the alias still could not be served from the rest of the file system.
Overlong UTF-8
UTF-8 has exactly one valid encoding for each character, but a careless decoder will accept longer, invalid forms. RFC 3629 makes this a requirement: implementations “MUST protect against decoding invalid sequences.” Its security considerations give the path example directly. A parser might prohibit the byte sequence 2F 2E 2E 2F (/../) “yet permit the illegal octet sequence 2F C0 AE 2E 2F”, in which C0 AE is an overlong encoding of the period. The RFC adds that this “has actually been used in a widespread virus attacking Web servers in 2001”.18 OWASP’s Path Traversal page still lists overlong forms such as %c0%af for / among the request variations testers should try.19
A decoder that conforms to RFC 3629 rejects these forms. The general point survives conformance: a security check that runs on bytes and a consumer that runs on decoded characters are two readers.
Unicode compatibility normalisation
Unicode defines normalisation forms so that equivalent text compares equal. The compatibility forms, NFKC and NFKD, also apply compatibility mappings. Unicode describes compatibility equivalence as a weaker equivalence between characters that “represent the same abstract character” but “may have distinct visual appearances or behaviors”.20 Some of those mappings produce path syntax. The OpenSSF secure coding guide for Python gives the example of U+2024 ONE DOT LEADER, which becomes an ordinary full stop under NFKC and NFKD, and U+FF0F FULLWIDTH SOLIDUS, which becomes /. Its non-compliant example checks the input for ./ and only then normalises; a string built from those characters passes the check and becomes a traversal sequence afterwards. The compliant version normalises first, with the chosen form, and validates the normalised result.21
Whether this matters depends on whether any component in the chain applies compatibility normalisation, and when. If one reader folds and the next does not, or if the fold happens after the check, the check is evaluating a different name.
Windows: a second grammar
Windows path handling has more transformations than POSIX, and most of them are documented. Microsoft’s page on file path formats says that “almost all paths passed to Windows APIs are normalized” and lists the steps. The points below apply to those API paths and path forms, not to every way a Windows program can reach a file:14
- Forward slashes are converted to backslashes during normalisation, so a filter that looks only for
/or only for\sees half the separators. CWE-22 gives the same warning: “filtering “/” is insufficient protection if the filesystem also supports the use of “\” as a directory separator.”3 - A path such as
D:sources, a drive letter without a separator, is resolved against the last current directory on drive D. Microsoft calls these “drive relative” paths “a common source of program and script logic errors”, adding that “assuming that a path beginning with a letter and a colon isn’t relative is obviously not correct.” - A path starting with a single separator, such as
\utilities, is relative to the root of the current drive. Go’s documentation of its own path APIs notes thatfilepath.IsAbsreports false for\fooon Windows for this reason.22 - If a path does not end in a separator, trailing periods and spaces are removed from the last segment. A name ending in a dot and the same name without it can therefore refer to the same file. CWE-41’s observed examples include source code disclosure through a trailing dot.5
- UNC paths (
\\server\share\...) and DOS device paths (\\.\and\\?\) are recognised; the\\?\prefix skips normalisation, although such paths are still normalised if passed explicitly toGetFullPathName.
Microsoft’s file naming rules add reserved device names: CON, PRN, AUX, NUL, COM1 to COM9, LPT1 to LPT9 and some superscript-digit variants, and “NUL.txt and NUL.tar.gz are both equivalent to NUL”. The same page describes 8.3 short-name aliases, which Windows may create for long names, and notes that alias generation can be disabled system-wide or per volume.23 Python’s os.path.realpath documents that on Windows it resolves 8.3 names such as C:\PROGRA~1.24 Where aliases exist, a denylist that blocks a directory by its long name can miss the short name; an allowlist that accepts only known long names would reject the alias, unless something resolves it to the long name first. Go’s 2025 write-up of its traversal-resistant APIs gives a concrete hazard: creating a file called CONOUT$ inside a trusted directory writes to the console instead.22
Alternate data streams add another dimension. NTFS lets a file carry named streams addressed with a colon suffix, and Microsoft’s naming rules note that control characters, forbidden in ordinary names, are allowed in stream names.23 The WinRAR case below shows a stream name used as the traversal vehicle.
A further transformation affects programs that pass Unicode strings to Windows narrow (“ANSI”) APIs. In January 2025 Orange Tsai and Splitline of DEVCORE published WorstFit, research into the “Best-Fit” behaviour of that conversion, which maps characters that have no equivalent in the active ANSI code page to look-alikes. Depending on the code page, several characters map to / or \: FULLWIDTH SOLIDUS (U+FF0F), FULLWIDTH REVERSE SOLIDUS (U+FF3C), and in the Japanese and Korean code pages the Yen (U+00A5) and Won (U+20A9) signs. They list affected APIs including GetFullPathNameA and FindFirstFileA and affected code pages 874, 125x, 932 and 949.25 Their case study is Cuckoo Sandbox, whose latest official version, at the time of the January 2025 study, still relied on Python 2.7; in Python 2, and in Python 3 before 3.6, narrow strings were passed to the ANSI file APIs, and a dropped file with a Unicode file name could traverse the path on the Cuckoo host.25 The mechanism is that a check performed on the Unicode string sees a harmless character, and the narrow API that receives the converted string sees a separator. DEVCORE notes that Chris Weber’s Black Hat USA 2009 talk had briefly touched on the behaviour as a way past simple blocklists, and, in an update, that Yosuke Hasegawa’s Black Hat Japan 2008 talk had covered part of the filename behaviour in the Japanese code page.25
When the proxy and the application disagree
Breaking Parser Logic
At Black Hat USA in August 2018, Orange Tsai presented “Breaking Parser Logic: Take Your Path Normalization Off and Pop 0days Out”. His slides compare how different servers treat a URL path with a semicolon parameter, /foo;name=orange/bar/. Apache, nginx and IIS keep the segment as written; Tomcat and Jetty strip the parameter and see /foo/bar/; WildFly and WebLogic see /foo.26
The consequence follows when three conditions hold: the front end matches and forwards the path unmodified, it enforces access by path prefix, and the back end interprets the segment differently. A front-end proxy sees /..;/ as an ordinary directory name, because ..; is not ... Tomcat strips the parameter and treats the same segment as a parent reference. In the slides’ example, a request for /portal/..;/manager/html passes a proxy rule that allows only /portal/ and reaches Tomcat’s manager application. In 2018 Tsai characterised the architecture as “vulnerable by default if you are using reverse proxy with Java as backend service”, naming Apache mod_jk, mod_proxy and nginx proxy_pass configurations, and listed the impact as bypassing allowlist and blocklist access control, escaping context mappings and reaching management consoles.26 One of his worked examples was a bug bounty finding at Uber, where nginx redirected requests for internal hosts to single sign-on, and a path through /status/..;/ reached a protected Jira page instead.26
The talk also reported framework traversal bugs, among them Spring Framework CVE-2018-1271 and Ruby on Rails CVE-2018-3760.26
The nginx alias off-by-slash
Tsai’s slides also popularised a configuration error he credits to a 2016 capture-the-flag challenge. nginx’s alias directive “defines a replacement for the specified location”.27 If the location lacks a trailing slash and the alias has one, as in location /static { alias /home/app/static/; }, a request for /static../settings.py matches the location prefix /static, and nginx appends the remainder ../settings.py to the alias, producing /home/app/static/../settings.py. According to the slides, nginx’s position was that this is not its problem, and Tsai reports a maximum bounty for an instance found in a private programme.26 nginx’s view is defensible: the directive does what it says. The bug sits between the configuration author’s assumption that /static and /static/ are the same prefix and the server’s literal prefix match.
Authentication proxies
Authentication often sits in a separate proxy that decides, by path, whether a request needs a login. That proxy and the application behind it are two readers. In April 2026 the oauth2-proxy project published GHSA-pxq7-h93f-9jrg (CVE-2026-41059), a configuration-dependent authentication bypass. The advisory lists conditions that must hold together: the deployment uses skip_auth_routes or the legacy skip_auth_regex; an exemption pattern can be widened by attacker-controlled suffixes (its example is ^/foo/.*/bar$); and the protected upstream application interprets # as a fragment delimiter or otherwise routes the request to the protected base path. Under those conditions an unauthenticated attacker could send a path containing a number sign, “including the browser-safe encoded form %23”, “so that OAuth2 Proxy matches a public allowlist rule while the backend serves a protected resource.” Version 7.15.2 fixed it; deployments without the skip-auth options, or with only exact public paths and tightly scoped method and path rules, were not affected.28
A raw # in a URL normally never reaches a server, because HTTP’s target URI excludes the fragment, which is “reserved for client-side processing”.29 The attack works on characters that arrive as path data and that the two components then interpret differently. No .. is involved, so this is outside the narrow definition of traversal. The failure is the same as ..;/ behind Tomcat: the guard and the resource owner parse the path differently, and the guard’s decision is applied to a name the owner never sees.
Policy engines and canonical names
The same pattern appears inside a single product when its authorisation layer and its storage layer canonicalise names differently. HashiCorp published two bulletins for Vault in autumn 2026.
HCSEC-2026-43, published 7 October, covers CVE-2026-89322. Vault “evaluated ACL policies against resource and policy names as supplied in a request, while the receiving component later normalized those names into their canonical form, for example by disregarding letter case or surrounding whitespace.” A delegated user could therefore refer to a protected resource by a non-canonical name, avoid a more specific deny rule, and have the request applied to the protected resource, including assigning an explicitly denied policy. Exploitation needed an authenticated principal with broad delegated permissions and a policy that relied on a specific deny beneath a broader allow.30
HCSEC-2026-56, published 12 November, covers CVE-2026-93335. Exact-path and segment-wildcard ACL rules were matched “against the request path as supplied, so a rule written for a path did not apply to the same path with a trailing slash added or removed”, while, in HashiCorp’s words, “the system endpoints that disable secrets engines, auth methods, and audit devices treat both forms as the same resource.” A user with a broad delete grant could disable a mount that a specific deny was meant to protect.31
HashiCorp’s bulletins do not cite a CWE entry. By analogy, both fit CWE-41’s definition of path equivalence, manipulations “intended to generate multiple names for the same object”:5 two names, one object, and a policy keyed to one of them. They also show where the fix belongs. The policy engine has to evaluate the name the storage layer will act on, which means either canonicalising before evaluation with the same function the storage layer uses, or rejecting non-canonical input outright.
Firewalls in front
A web application firewall is one more reader. The WAFFLED study (Akhavani and colleagues, first posted to arXiv in March 2025, revised March 2026) fuzzed the non-malicious parts of requests, such as headers, multipart boundaries and content types, and in its experiments identified and confirmed 1,207 bypasses across AWS, Azure, Google Cloud Armor, Cloudflare and ModSecurity. In a separate study in the wild, the authors found that more than 90% of the websites they examined accepted application/x-www-form-urlencoded and multipart/form-data interchangeably, which widens the room for disagreement.32 The study concerns body parsing; applying it to paths is an analogy, but a direct one: a filter that parses the request differently from the application protects its own interpretation. On edge rules, see virtual patching. The closest relative of these proxy cases is HTTP request smuggling, where the disagreement is about where a request ends.
Archives: the attacker writes the path
Zip Slip
In an archive the attacker supplies every path, plus link targets and metadata, and the extracting code writes. Snyk’s security team gave the pattern a name, Zip Slip, and published coordinated disclosures on 5 June 2018 covering projects from HP, Amazon, Apache, Pivotal “and many more”. Their example code joins the destination directory and each entry’s name, so an entry with leading ../ segments lands outside the destination. Snyk found the pattern in JavaScript, Ruby, .NET and Go, but “especially prevalent in Java, where there is no central library offering high level processing of archive” files, and noted that it affects tar, jar, war, cpio, apk, rar and 7z as well as zip.33
OWASP’s Application Security Verification Standard 5.0 now has a dedicated requirement, 5.3.3: server-side file processing such as decompression must ignore “user-provided path information to prevent vulnerabilities such as zip slip.”34
Tar, links and Python’s long road
Tar archives add symbolic links, hard links, device files and permission bits to the problem. An archive can create a symlink inside the destination that points outside it, and then write a regular file through that link. A check on each entry’s name alone does not catch this, because no individual name contains ...
In Python’s tarfile module the problem persisted for years. NVD published CVE-2007-4559 on 28 August 2007: the module’s extract and extractall functions allowed attackers “to overwrite arbitrary files via a .. (dot dot) sequence in filenames in a TAR archive”.35 PEP 706, created in February 2023 by Petr Viktorin and accepted for Python 3.12, quotes the documentation’s advice to “never extract archives from untrusted sources without prior inspection” and explains why that was not enough: “it’s not clear what kind of inspection should be done. Indeed, it’s quite tricky to do such an inspection correctly. As a result, many people don’t bother, or do the check incorrectly, resulting in security issues such as CVE-2007-4559.”36 It also explains why no single behaviour fits: a backup “should faithfully preserve” permissions, symlinks to system configuration and special files, whereas unpacking a data bundle must avoid unintended consequences such as “exposing a password file by symlinking it to a public place”. The PEP therefore added an extraction filter argument with named policies (fully_trusted, tar and data), and scheduled the strict data filter to become the default. The tarfile documentation confirms that since Python 3.14 the default is data, which “disallows some dangerous features such as links to absolute paths or paths outside of the destination”, while still warning that it “will not prevent all unintended or insecure behavior.”37
The filter that checked a different path
The warning proved accurate within two years. On 3 June 2025 the Python Software Foundation announced five CVEs in tarfile, three of them bypasses of the extraction filters. CVE-2025-4517, rated critical, allowed “arbitrary filesystem writes outside the extraction directory during extraction with filter=”data””. The notice warned that, because Python 3.14 changed the default filter to data, code relying on the new default was affected too. The PSF’s CVE record bounds the affected 3.14 builds to prereleases before 3.14.0b3,38 and the CPython changelog lists the fix in 3.14.0 beta 3 (17 June 2025), before the stable 3.14.0 release of 7 October 2025.39 A follow-up correction noted that the filter feature had been backported to versions earlier than 3.12, so filtered extraction there could also be affected.40 Google’s security research team, which reported it, published the mechanism. The filters used os.path.realpath() to validate each member’s destination. If a path containing symlinks was shorter than PATH_MAX but longer once realpath substituted the links, realpath stopped expanding them without raising an error. The extraction code then used the paths without passing them through realpath, so links the check had never expanded were followed when files were written.41
This is the resolve-then-check approach failing in its own terms. Validation and extraction handled the same member names along different code paths, and only the validation path stopped expanding links. The PSF’s primary advice was to upgrade to a fixed Python version or apply the linked patches. For those who could not, its corrected interim mitigation does two things: it first rejects any member whose link target contains a .. segment, and it then still extracts with the data filter.4042
WinRAR and alternate data streams
On 18 July 2025 ESET researchers found a WinRAR zero-day being exploited in the wild. They described CVE-2025-8088 as “a path traversal vulnerability, made possible with the use of alternate data streams.” The weaponised RAR files appeared to contain a single benign file but carried many alternate data streams whose names included parent references with increasing depths of ..\ segments. In ESET’s worked example, extraction deployed a malicious DLL into %TEMP% and a shortcut (LNK) file into the Windows startup directory, giving persistence at the next login; across the campaign, the archives carried an LNK file for the startup directory and a DLL or EXE unpacked to %TEMP% or %LOCALAPPDATA%. The archives also held streams with dummy data and invalid paths, and ESET writes that it suspects these were added so that the victim would not notice the suspicious paths among WinRAR’s warnings. ESET attributed the campaign to the Russia-aligned group RomCom and reports that a second actor began exploiting the same flaw a few days later. WinRAR shipped version 7.13 on 30 July 2025. ESET notes that a similar WinRAR traversal, CVE-2025-6218, had been disclosed about a month earlier, and advises users of the Windows versions of WinRAR’s command-line utilities, UnRAR.dll and the portable UnRAR source code to upgrade.43
ESET’s account does not identify which routine inside WinRAR mishandled the stream names, so the internal mechanism is not established by the sources cited here. What is documented is the outcome: names carried as stream entries in the archive were written outside the extraction directory.
Installers and copy tools
pip had two path traversal flaws in 2026. CVE-2026-1703, announced by the PSF on 2 February and rated low, allowed files from a crafted wheel to be extracted outside the installation directory, with the traversal “limited to prefixes of the installation directory”.44 CVE-2026-8643, which Red Hat credits to AISLE, concerns entry points. The GitHub advisory says pip “would treat console_scripts and gui_scripts as paths instead of file names” without confining the result to the installation directory,45 and Red Hat describes entry-point names that “use directory traversal or absolute paths” causing pip to write generated script wrappers outside it. Scores differ: Red Hat’s CVSS 3.1 vector gives 8.0 (network attack vector, user interaction required, high confidentiality, integrity and availability impact), NVD’s CVSS 3.1 vector gives 5.5 (local attack vector, no user interaction, integrity impact only), and the Python Software Foundation, as the assigning authority, gives a CVSS 4.0 score of 4.1.46 Red Hat separately notes that running pip with elevated privileges increases the potential impact; its mitigation advice is to avoid wheels from untrusted sources, not to run pip install under sudo, and to inspect entry_points.txt for path separators or absolute paths.47 An entry-point name is metadata until the installer turns it into a file path, and that conversion is where the traversal check was missing.
Kubernetes disclosed CVE-2026-19444 on 28 September 2026. kubectl cp copies files out of a container by running tar inside the container and unpacking the stream locally. If the container’s tar is malicious, it can emit an archive that writes “to arbitrary paths on the local machine of a user running kubectl cp on Windows”. Linux and macOS clients were not affected; fixed versions are 1.34.12, 1.35.9 and 1.36.5.4849 Cycode’s analysis of the patch attributes the Windows-only scope to a helper that stripped only forward-slash ../ prefixes when checking that an entry stayed relative, so backslash traversal passed the check and Windows honoured it.50 That attribution is from a third party; the Kubernetes advisory itself does not describe the code.
Time of check, time of use
Why resolving first is not enough
The usual advice after “do not filter” is “canonicalise, then check”: resolve the path to its real, absolute form, confirm it lies under the base directory, then open it. CWE-22 recommends a built-in canonicalisation function and lists examples, among them realpath() in C and PHP, getCanonicalPath() in Java and GetFullPath() in .NET.3 They do not all do the same thing. Microsoft documents GetFullPath as applying the Windows normalisation steps described earlier, which do not include resolving symbolic links.14 Python’s realpath, by default, stops at the first component that does not exist or raises an error and appends the rest unchanged, so the result “may still contain links”; strict=True raises instead.24 It is a large improvement over string filtering, but it has a structural weakness that the Go team spelled out when introducing os.Root in March 2025: if an attacker can modify any part of the directory tree, the program resolves the path, then opens it, and the attacker swaps a component for a symlink between the two steps. Damien Neil describes a second race in which an attacker renames a directory that forms part of the path while the open is in progress, so that a .. segment climbs out of a different directory from the one that was checked.22
These races matter where untrusted parties can write into the tree: upload directories, shared temporary areas, container images, multi-tenant storage and, as the tarfile case shows, an extraction in progress, where the archive itself creates the links. Where nobody untrusted can write, they do not arise.
There are also semantic gaps. Python’s documentation notes that os.path.normpath is a string manipulation that “may change the meaning of a path that contains symbolic links”, and that realpath “emulates the operating system’s procedure for making a path canonical”, which “differs slightly between Windows and UNIX”.24 An emulation is another reader.
O_NOFOLLOW covers only the last component
POSIX offers O_NOFOLLOW, and it is often misunderstood. The Linux man page is precise: if the trailing component of the path is a symbolic link, the open fails, but “symbolic links in earlier components of the pathname will still be followed.”51 Code that relies on it for confinement is exposed to a link in any directory component above the final name.
openat2 and resolution in the kernel
Linux 5.6 added openat2(), which moves the confinement check into path resolution itself. Its RESOLVE_BENEATH flag makes resolution fail “if any component of the resolution is not a descendant of the directory indicated by dirfd”, which also rejects absolute symlinks and absolute paths. RESOLVE_IN_ROOT instead treats the directory as the root for the duration of the call, so absolute symlinks and .. at the top are interpreted relative to it, an effect the man page compares to a temporary, per-call chroot(2). Further flags forbid all symlinks, “magic links” in /proc, or crossing mount points. When the kernel cannot be sure that a .. component did not escape because of a concurrent rename, the call fails with EAGAIN and the caller may retry.52
RESOLVE_BENEATH was modelled on FreeBSD’s O_BENEATH but “avoided a well-known correctness bug in FreeBSD’s implementation that rendered it effectively insecure”; FreeBSD 13 later replaced it with O_RESOLVE_BENEATH, based on the Linux semantics.52 The man page also notes that glibc provides no wrapper for the call.52
Because the check is part of the single resolution, no gap remains between check and use.
Library APIs: os.Root and cap-std
Go 1.24 added os.Root, which represents an open directory and offers methods (Open, Create, Mkdir, Lstat and others) that “disallow any operations that would escape from the root either using relative path components (“..”) or symlinks”. The package documentation qualifies this: methods follow symbolic links that stay inside the root, but “symbolic links must not be absolute”, even when the absolute target lies inside the tree; Root does “not prohibit traversal of filesystem boundaries, Linux bind mounts, /proc special files, or access to Unix device files”; and on Windows, names may not reference reserved device names such as NUL and COM1.53 On Unix it is built on the openat family and holds a descriptor that tracks the directory across renames; on Windows it holds a handle that prevents the directory being renamed or deleted while open. Its documented limits are honest: it does not defend against bind mounts, which require privilege to create, it depends on the WASI runtime’s own sandboxing under WASI, and under GOOS=js it is vulnerable to symlink races because Node’s API lacks openat.22 Earlier Go releases added lexical helpers, filepath.IsLocal in Go 1.20 (which also rejects reserved Windows names such as COM1) and filepath.Localize in Go 1.23.22
Rust’s cap-std crate takes a capability approach. Its Dir type “represents an open directory in a filesystem”, and “instead of opening files by absolute paths or paths relative to the current working directory, files are opened via paths relative to a Dir.”54 The process-wide current directory and global namespace become things the program must opt into explicitly: Dir also offers operations marked as using the process’s ambient authority, such as open_ambient_dir and open_parent_dir, the latter documented as accessing “a directory outside of the self subtree”.55 os.Root and cap-std share a design idea, that a directory handle is an authority and names are resolved within it, but they are library interfaces with their own documented guarantees, not the same mechanism as the kernel’s openat2 flags.
Containers as coarse confinement
Containers and chroots confine whole processes and limit what a traversal bug can reach, but their runtimes themselves resolve paths in hostile trees. In November 2025 runc disclosed three high-severity vulnerabilities, CVE-2025-31133, CVE-2025-52565 and CVE-2025-52881, that “ultimately allow (through different methods) for full container breakouts by bypassing runc’s restrictions for writing to arbitrary /proc files.” In the first, runc masked sensitive files by bind-mounting the container’s /dev/null over them; if an attacker replaced /dev/null with a symlink to another procfs file, runc mounted the symlink target read-write instead, which could expose files such as /proc/sys/kernel/core_pattern, a route out of the container entirely. The fix took more than twenty patches, with substantial work in the filepath-securejoin library.56
The runtime that forms the outer wall faced the same link-following problem as an archive extractor.
What works and what does not
Stripping sequences
One broken defence removes or rejects dangerous substrings. CWE-22 describes its failure modes. A single pass that removes ../ from .../...// removes two occurrences and leaves a new ../ behind.3 A filter for / misses \ on Windows. A filter for literal dots misses %2e, overlong encodings, fullwidth characters and Best-Fit conversions, depending on which reader decodes what and when. CWE’s guidance is to treat such filtering as equivalent to a denylist, which “may be incomplete”.3
A list of rejected characters is still a denylist, and it can admit special names such as Windows device names. What works for plain file names is a positive grammar for a single component: accept only a small character set (for instance letters, digits, hyphen and underscore, with at most one dot before a fixed extension), reject the empty name, . and .., reject reserved device names on Windows, and pass the validated string unchanged to the consumer, with no later decoding or normalisation. CWE-22 suggests allowing only a single “.” and excluding directory separators,3 and Microsoft lists the reserved names.23 The failure is in sanitising, which tries to turn hostile input into acceptable input, instead of rejecting it.
Prefix checks
The second broken defence canonicalises and then compares strings. CWE-22’s fourth demonstrative example accepts any path that starts with /safe_dir/ and is defeated by /safe_dir/../important.dat, because the check runs before resolution.3 Even after resolution, a character prefix test is wrong: /var/www-secret begins with /var/www. Python’s documentation warns that os.path.commonprefix “may return invalid paths because it works a character at a time” and that “if you need a common path prefix, then the algorithm implemented in this function is not secure”; it recommends commonpath, which compares whole components, and from 3.15 deprecates the old function for this purpose.24 Joining functions add a further trap. In Python on POSIX, if a later segment of os.path.join is absolute, all previous segments are ignored; on Windows a rooted segment such as \foo keeps the current drive, while a segment on a different drive, or a fully absolute one, resets it. commonpath also raises ValueError for paths on different drives or for a mix of absolute and relative paths.24
A broken check and better ones, side by side
The following Python is illustrative and assumes POSIX paths. The first function contains three of the errors above.
import os
BASE = "/srv/reports"
def open_report_broken(name):
name = name.replace("../", "") # one-pass strip
path = os.path.normpath(os.path.join(BASE, name)) # absolute name discards BASE
if not path.startswith(BASE): # character prefix
raise PermissionError(name)
return open(path, "rb") # symlinks never examinedAn absolute name such as /srv/reports-archive/q1.pdf replaces the base during the join and then passes the prefix test. A symlink inside /srv/reports that points elsewhere passes everything, because normpath never looks at the file system.
The strongest fix removes the user-supplied name from the path entirely.
# Assumes BASE and its files are writable only by trusted parties.
REPORTS = {"q3-summary": "q3-summary.pdf", "q3-detail": "q3-detail.pdf"}
def open_report(report_id):
filename = REPORTS.get(report_id) # we chose every name
if filename is None:
raise KeyError(report_id)
return open(os.path.join(BASE, filename), "rb")A server-selected file name does not make a mutable directory safe: if untrusted parties can replace files or directories under BASE, the open can still follow a planted link. When names must come from users, and only for reading from a stable tree that no untrusted party can modify, resolve strictly, compare whole components and fail closed.
def open_user_file(name):
base = os.path.realpath(BASE, strict=True)
try:
target = os.path.realpath(os.path.join(base, name), strict=True)
inside = os.path.commonpath([base, target]) == base
except (OSError, ValueError):
inside = False
if not inside:
raise PermissionError(name)
return open(target, "rb") # races if the tree can change in betweenThe last comment is the reason to prefer an API that confines the open itself where one exists, such as os.OpenInRoot(BASE, name) in Go 1.24 or openat2 with RESOLVE_BENEATH on Linux.2252
Indirect references
CISA and OWASP both describe mapping identifiers to files. The Secure by Design Alert advises manufacturers to “consider generating a random identifier for each file and storing associated metadata separately (e.g., in a database) rather than using user input when naming files”, and, failing that, to restrict file names to a strict character set such as alphanumerics and to ensure uploaded files lack execute permission.9 OWASP’s page says “prefer working without user input when using file system calls” and “use indexes rather than actual portions of file names”.19 ASVS 5.0 requirement 5.3.2, at level 1, does not prescribe a mapping; it asks that file paths be built, instead of from user-submitted filenames, from “internally generated or trusted data” and, where user-submitted filenames or file metadata must be used, that “strict validation and sanitization must be applied”.34
An identifier map moves the problem from naming to authorisation: the program now has to check that this user may fetch report q3-detail. That is a familiar and testable question, and far easier than guaranteeing that six parsers agree about a string. My reading of the Medusa and log_fdw advisories, which the vendors do not state, is that both designs could have taken a server-generated key or a bare file name where they accepted a path-shaped value.12
Confinement by the operating system
Where user-chosen names are part of the product (a file manager, an archive extractor, a static file server), the boundary should be enforced at open time by the kernel or a library built on it: openat2 with RESOLVE_BENEATH or RESOLVE_IN_ROOT, os.Root, cap-std, or equivalent handle-relative APIs. Within each interface’s documented limits (mount crossings, special files and platform differences vary), these collapse the check and the use into one operation performed by the component that will act on the result, which removes the parser differential between checker and file system. They do not address differentials higher up the stack, between a proxy and the application, and they do not fix authorisation.
Least privilege
A traversal bug can reach only what the process is permitted to touch and what the server’s own authorisation rules let it serve. Apache’s Require all denied default is of the second kind: a server rule that, where present, stopped 2.4.49 requests that escaped an alias from being served from the rest of the file system.16 The log_fdw bulletin shows the first kind: exposure is limited to files “readable by the database server process”, and its workaround is to revoke the privilege from roles that do not need it.2
Operating system controls narrow each consequence differently, and none covers all of them. A dedicated service account with read access only to its own content limits what a read traversal can disclose. A read-only mount prevents writes through a write traversal but does nothing about disclosure. On Linux, the execute bit on a directory is search permission: without it, path lookup through that directory fails, for interpreters as well.57 The control for a planted binary is different: execve fails if the file lacks execute permission or the file system is mounted noexec.58 CISA accordingly advises that uploaded files not have executable permissions.9 Neither stops an interpreter that is configured to run a script it can read, so a writable directory that a script handler serves remains a risk. The library’s article on least privilege covers the operating system mechanisms. For this class, they reduce the impact when the code is wrong; they do not prevent the traversal.
Filters at the edge
CWE-22 lists an application firewall as a mitigation where the code cannot yet be fixed, for example because a third party controls it.3 An edge rule helps as a stopgap when it blocks the specific forms that the vulnerable back end accepts and has been tested through the real proxy chain against that back end. Such testing shows coverage of the forms tried, not of the class, and the WAF remains one more reader.32 Traversal is a cousin of the injection flaws, in which data crosses into syntax; as there, the durable fixes are structural.
A programme for practitioners
Design decisions a reviewer can check
- Every place external data becomes part of a file system name is listed, including archive entries and package metadata.
- For each entry, the design records which approach applies: a server-chosen identifier mapped to a server-chosen name; a single component validated against a positive grammar and passed on unchanged; or a confining open API rooted at a directory handle, with that API’s documented limits noted.
- Authorisation for the resource is enforced in the application that owns it, whatever a proxy has already checked.
- The service account’s file permissions are written down and match what the feature needs.
Code review checks
- A user-derived segment joined to a base and then checked with a string prefix test,
commonprefixornormpath; a check that precedes a decoding or normalisation step; a second decoding pass after validation. - On Windows code paths:
\, drive-relative and root-relative forms, device names, trailing dots and spaces, stream syntax, and narrow (ANSI) file API calls. - In extractors and installers: confinement of each entry’s final destination, handling of symlinks and hard links, and any metadata that becomes a path.
- In policy engines: whether authorisation is evaluated on the canonical form the storage layer uses.
Testing
- Apply the encoding and platform variants in OWASP’s Path Traversal page and testing guide, which CISA cites for the formal testing it asks manufacturers to perform.199
- Run differential tests through the real deployment chain: send the same path variants through the proxy, any authentication layer and the application, and record which component saw which normalised path and which handler served it. Tsai’s table of path-parameter handling is a template.26
- Build archive fixtures with absolute names, parent references, links to outside targets followed by writes through them, very long link chains and Windows-specific names, and run them on every supported platform.
- Retest after upgrades of any proxy, framework or runtime. Apache 2.4.49 introduced its bug in a change to normalisation, and the 2.4.50 fix was bypassed within days.16
Deployment routing
- The front end and the back end agree on path interpretation, or the front end rejects forms they might disagree about (encoded slashes and dots, path parameters,
#and%23, backslashes) where the application does not need them. - Path-based authentication exemptions are exact paths with tightly scoped methods, the configuration the oauth2-proxy advisory describes as unaffected.28
aliasand equivalent directives have matching trailing slashes on the location and the target.26
Archive extraction and packages
- Extraction uses a patched library with a strict policy, such as Python’s
datafilter, treated as necessary but not sufficient.3740 - Untrusted archives are extracted, at any privilege level, only into a fresh empty directory owned by an unprivileged account, and results are moved into place after checks.
- Packages come from known sources and are never installed with elevated privileges; on Windows,
kubectl cpis used only against trusted containers until patched.4748 - Archivers and libraries that embed unpatched UnRAR code on Windows are updated.43
Operating system confinement
- Where user-chosen paths are part of the product, files are opened through
openat2withRESOLVE_BENEATHorRESOLVE_IN_ROOT,os.Root,cap-stdor an equivalent, and the review notes which of their limits (mounts, special files, platform behaviour) matter for the deployment.525355 - Container runtimes are patched like any other component.56
Conclusion
Part of the persistence of path traversal is plain missing confinement, as in the Medusa and log_fdw advisories. The harder part is that the bug is often not where it appears to be. A developer sees one parameter and one directory; the string may pass through several readers, each correct by its own rules, and the vulnerability is the gap between two of them: a check run before a decode, a proxy that sees ..; as a name while Tomcat sees a parent, a policy engine that compares names as supplied while storage canonicalises them, a realpath that stops expanding links silently while extraction follows them.
The cited bodies make overlapping but distinct recommendations. CISA and the FBI put server-generated identifiers first and strict character restrictions second. OWASP prefers avoiding user input in file system calls and using indexes. ASVS requires paths built from internally generated or trusted data, with strict validation and sanitisation where user names must be used. CWE lists allowlist validation, canonicalisation before validation, vetted libraries and, as an emergency measure, application firewalls. This article’s recommendation is conditional. A sanitising filter fails when some component applies a transformation, such as a further decoding or normalisation step, that the filter does not account for. Canonicalise-then-check helps only where the canonicaliser behaves like the consumer and no untrusted party can change the tree between check and use. Where a product does not need user-chosen paths, server-chosen identifiers avoid the question; where it does, an API that confines resolution at open time (openat2, os.Root, cap-std) removes the check-use gap within its documented limits. Least privilege reduces what remains. None resolves a disagreement between a proxy and an application, which requires making the components agree, rejecting ambiguous input at the edge, and authorising access in the application that owns the resource.
Footnotes
- INCIBE-CERT, “Path Traversal en Medusa de MedusaJS” (INCIBE-2026-958, CVE-2026-112189), 27 November 2026. https://www.incibe.es/incibe-cert/alerta-temprana/avisos/path-traversal-en-medusa-de-medusajs (opens in a new tab) ↩1 ↩2
- Amazon Web Services, “CVE-2026-139820 - Relative path traversal in AWS postgresql-logfdw”, security bulletin 2026-205-AWS, 1 December 2026. https://aws.amazon.com/security/security-bulletins/rss/2026-205-aws/ (opens in a new tab) ↩1 ↩2 ↩3
- MITRE, “CWE-22: Improper Limitation of a Pathname to a Restricted Directory (‘Path Traversal’)”, accessed 2 December 2026 (description, relationships, potential mitigations, demonstrative example 4, notes). https://cwe.mitre.org/data/definitions/22.html (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11
- MITRE, “CWE-59: Improper Link Resolution Before File Access (‘Link Following’)”, accessed 2 December 2026. https://cwe.mitre.org/data/definitions/59.html (opens in a new tab) ↩
- MITRE, “CWE-41: Improper Resolution of Path Equivalence”, accessed 2 December 2026. https://cwe.mitre.org/data/definitions/41.html (opens in a new tab) ↩1 ↩2 ↩3
- MITRE, “2025 CWE Top 25 Most Dangerous Software Weaknesses”, accessed 2 December 2026. https://cwe.mitre.org/top25/archive/2025/2025_cwe_top25.html (opens in a new tab) ↩
- MITRE, “2025 CWE Top 25 Methodology”, accessed 2 December 2026. https://cwe.mitre.org/top25/archive/2025/2025_methodology.html (opens in a new tab) ↩
- MITRE, “2025 CWE Top 10 KEV Weaknesses”, accessed 2 December 2026. https://cwe.mitre.org/top25/archive/2025/2025_kev_list.html (opens in a new tab) ↩
- CISA and FBI, “Secure by Design Alert: Eliminating Directory Traversal Vulnerabilities in Software”, 2 May 2024 (web page and PDF). https://www.cisa.gov/resources-tools/resources/secure-design-alert-eliminating-directory-traversal-vulnerabilities-software (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- Microsoft, “Security Bulletin MS00-078: Patch Available for ‘Web Server Folder Traversal’ Vulnerability”, 17 October 2000. https://learn.microsoft.com/en-us/security-updates/securitybulletins/2000/ms00-078 (opens in a new tab) ↩
- NIST National Vulnerability Database, CVE-2000-0884 record (API response), published 19 December 2000. https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2000-0884 (opens in a new tab) ↩
- Microsoft, “Security Bulletin MS01-026: Cumulative Patch for IIS”, 14 May 2001 (updated 18 May 2003). https://learn.microsoft.com/en-us/security-updates/securitybulletins/2001/ms01-026 (opens in a new tab) ↩
- NIST National Vulnerability Database, CVE-2001-0333 record (API response), published 27 June 2001. https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2001-0333 (opens in a new tab) ↩
- Microsoft, “File path formats on Windows systems”, .NET documentation, accessed 2 December 2026. https://learn.microsoft.com/en-us/dotnet/standard/io/file-path-formats (opens in a new tab) ↩1 ↩2 ↩3
- T. Berners-Lee, R. Fielding and L. Masinter, RFC 3986: Uniform Resource Identifier (URI): Generic Syntax, IETF, January 2005, sections 2.2, 2.3, 5.2.4 and 6.2.2.2. https://www.rfc-editor.org/rfc/rfc3986.html (opens in a new tab) ↩
- Apache Software Foundation, “Apache HTTP Server 2.4 vulnerabilities”, entries for CVE-2021-41773 and CVE-2021-42013, accessed 2 December 2026. https://httpd.apache.org/security/vulnerabilities_24.html (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5
- Qualys Threat Research, “Apache HTTP Server Path Traversal & Remote Code Execution (CVE-2021-41773 & CVE-2021-42013)”, 27 October 2021. https://blog.qualys.com/vulnerabilities-threat-research/2021/10/27/apache-http-server-path-traversal-remote-code-execution-cve-2021-41773-cve-2021-42013 (opens in a new tab) ↩1 ↩2
- F. Yergeau, RFC 3629: UTF-8, a transformation format of ISO 10646, IETF, November 2003, sections 3 and 10. https://www.rfc-editor.org/rfc/rfc3629.html (opens in a new tab) ↩
- OWASP Foundation, “Path Traversal”, community attack page, accessed 2 December 2026. https://owasp.org/www-community/attacks/Path_Traversal (opens in a new tab) ↩1 ↩2 ↩3
- Unicode Consortium, “Unicode Standard Annex #15: Unicode Normalization Forms”, section 1.1, accessed 2 December 2026. https://www.unicode.org/reports/tr15/ (opens in a new tab) ↩
- OpenSSF Best Practices Working Group, “pyscg-0044: Canonicalize Input Before Validating”, Secure Coding Guide for Python, accessed 2 December 2026. https://best.openssf.org/Secure-Coding-Guide-for-Python/02_encoding_and_strings/pyscg-0044/ (opens in a new tab) ↩
- Damien Neil, “Traversal-resistant file APIs”, The Go Blog, 12 March 2025. https://go.dev/blog/osroot (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6
- Microsoft, “Naming Files, Paths, and Namespaces”, Win32 documentation, accessed 2 December 2026. https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file (opens in a new tab) ↩1 ↩2 ↩3
- Python Software Foundation, “os.path: Common pathname manipulations”, Python documentation, accessed 2 December 2026. https://docs.python.org/3/library/os.path.html (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5
- Orange Tsai and Splitline (DEVCORE), “WorstFit: Unveiling Hidden Transformers in Windows ANSI!”, 9 January 2025. https://devco.re/blog/2025/01/09/worstfit-unveiling-hidden-transformers-in-windows-ansi/ (opens in a new tab) ↩1 ↩2 ↩3
- Orange Tsai, “Breaking Parser Logic! Take Your Path Normalization Off and Pop 0days Out”, Black Hat USA 2018 slides, August 2018. https://i.blackhat.com/us-18/Wed-August-8/us-18-Orange-Tsai-Breaking-Parser-Logic-Take-Your-Path-Normalization-Off-And-Pop-0days-Out-2.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7
- nginx, “Module ngx_http_core_module”, documentation of the
aliasdirective, accessed 2 December 2026. https://nginx.org/en/docs/http/ngx_http_core_module.html (opens in a new tab) ↩ - OAuth2 Proxy maintainers, “OAuth2 Proxy has an Authentication Bypass via Fragment Confusion in skip_auth_routes and skip_auth_regex”, GHSA-pxq7-h93f-9jrg / CVE-2026-41059, published 14 April 2026. https://github.com/advisories/GHSA-pxq7-h93f-9jrg (opens in a new tab) ↩1 ↩2
- R. Fielding, M. Nottingham and J. Reschke (eds.), RFC 9110: HTTP Semantics, IETF, June 2022, section 7.1. https://www.rfc-editor.org/rfc/rfc9110.html (opens in a new tab) ↩
- HashiCorp, “HCSEC-2026-43 - Vault Inconsistent ACL Policy Evaluation May Allow Bypass of Deny Restrictions” (CVE-2026-89322), 7 October 2026. https://discuss.hashicorp.com/t/hcsec-2026-43-vault-inconsistent-acl-policy-evaluation-may-allow-bypass-of-deny-restrictions/77815 (opens in a new tab) ↩
- HashiCorp, “HCSEC-2026-56 - Vault Vulnerable to ACL Deny Bypass via Trailing Slash” (CVE-2026-93335), 12 November 2026. https://discuss.hashicorp.com/t/hcsec-2026-56-vault-vulnerable-to-acl-deny-bypass-via-trailing-slash/78199 (opens in a new tab) ↩
- Seyed Ali Akhavani, Bahruz Jabiyev, Ben Kallus, Cem Topcuoglu, Sergey Bratus and Engin Kirda, “WAFFLED: Exploiting Parsing Discrepancies to Bypass Web Application Firewalls”, arXiv:2503.10846, v1 13 March 2025, v4 13 March 2026. https://arxiv.org/abs/2503.10846 (opens in a new tab) ↩1 ↩2
- Snyk Security Research, “Zip Slip Vulnerability”, disclosed 5 June 2018. https://security.snyk.io/research/zip-slip-vulnerability (opens in a new tab) ↩
- OWASP, Application Security Verification Standard 5.0.0, chapter V5 File Handling, requirements 5.3.2 and 5.3.3, 2025. https://raw.githubusercontent.com/OWASP/ASVS/v5.0.0/5.0/en/0x14-V5-File-Handling.md (opens in a new tab) ↩1 ↩2
- NIST National Vulnerability Database, CVE-2007-4559 record (API response), published 28 August 2007. https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2007-4559 (opens in a new tab) ↩
- Petr Viktorin, “PEP 706 – Filter for tarfile.extractall”, Python Enhancement Proposals, created 9 February 2023, Python 3.12. https://peps.python.org/pep-0706/ (opens in a new tab) ↩
- Python Software Foundation, “tarfile: Read and write tar archive files”, Python documentation, accessed 2 December 2026. https://docs.python.org/3/library/tarfile.html (opens in a new tab) ↩1 ↩2
- Python Software Foundation (CNA), CVE-2025-4517 record (CVE JSON 5 format, affected versions), published 3 June 2025. https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2025/4xxx/CVE-2025-4517.json (opens in a new tab) ↩
- Python Software Foundation, “Changelog”, Python 3.14.0 documentation, entries for 3.14.0 final (7 October 2025) and 3.14.0 beta 3 (17 June 2025, gh-135034). https://docs.python.org/release/3.14.0/whatsnew/changelog.html (opens in a new tab) ↩
- Alan Coopersmith (forwarding Seth Larson, Python Software Foundation), “CPython: Multiple CVEs (1 CRITICAL, 3 HIGH, 1 MODERATE) affecting the tarfile module”, oss-security, 23 June 2025 (original notice 3 June 2025). https://openwall.com/lists/oss-security/2025/06/24/1 (opens in a new tab) ↩1 ↩2 ↩3
- Google Security Research, “Python - Tarfile Realpath Overflow Vulnerability”, GHSA-hgqp-3mmf-7h8f, published 20 June 2025. https://github.com/google/security-research/security/advisories/GHSA-hgqp-3mmf-7h8f (opens in a new tab) ↩
- Seth Larson, corrected mitigation for CVE-2025-4517, CVE-2025-4330, CVE-2025-4138 and CVE-2024-12718, GitHub Gist, June 2025. https://gist.github.com/sethmlarson/52398e33eff261329a0180ac1d54f42f (opens in a new tab) ↩
- Anton Cherepanov, Peter Strýček and Damien Schaeffer, “Update WinRAR tools now: RomCom and others exploiting zero-day vulnerability”, ESET WeLiveSecurity, 11 August 2025, Internet Archive capture of 30 December 2025 (the original URL now redirects to an ESET product page). https://web.archive.org/web/20251230210540/https://www.welivesecurity.com/en/eset-research/update-winrar-tools-now-romcom-and-others-exploiting-zero-day-vulnerability/ (opens in a new tab) ↩1 ↩2
- Seth Larson, “[CVE-2026-1703] Limited path traversal when installing wheel archives”, Python security-announce list, 2 February 2026. https://mail.python.org/archives/list/security-announce@python.org/thread/WIEA34D4TABF2UNQJAOMXKCICSPBE2DJ/ (opens in a new tab) ↩
- GitHub Advisory Database, “pip: Path traversal in console_scripts/gui_scripts entry point names allows installing scripts outside of target directory”, GHSA-wf93-45jw-7689 / CVE-2026-8643, published 1 June 2026. https://github.com/advisories/GHSA-wf93-45jw-7689 (opens in a new tab) ↩
- NIST National Vulnerability Database, CVE-2026-8643 record (API response, CVSS metrics from NIST, Red Hat and the Python Software Foundation), published 1 June 2026. https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-8643 (opens in a new tab) ↩
- Red Hat, “CVE-2026-8643” (pip path traversal via malicious entry point name), Red Hat Customer Portal, accessed 2 December 2026. https://access.redhat.com/security/cve/CVE-2026-8643 (opens in a new tab) ↩1 ↩2
- Vyom Yadav for the Kubernetes Security Response Committee, “[kubernetes] CVE-2026-19444: kubectl cp path traversal on Windows allows arbitrary file writes”, oss-security, 28 September 2026. https://openwall.com/lists/oss-security/2026/09/28/1 (opens in a new tab) ↩1 ↩2
- Kubernetes, “CVE-2026-19444: kubectl cp path traversal on Windows allows arbitrary file writes”, GitHub issue 141294. https://github.com/kubernetes/kubernetes/issues/141294 (opens in a new tab) ↩
- Cycode, “kubectl cp Windows path traversal (CVE-2026-19444)”, blog analysis, accessed 2 December 2026. https://cycode.com/blog/kubectl-cp-windows-path-traversal-rce-cve-2026-19444/ (opens in a new tab) ↩
- Linux man-pages project, “open(2)”, accessed 2 December 2026. https://man7.org/linux/man-pages/man2/open.2.html (opens in a new tab) ↩
- Linux man-pages project, “openat2(2)”, accessed 2 December 2026. https://man7.org/linux/man-pages/man2/openat2.2.html (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5
- The Go Authors, “package os”, type Root, Go documentation, accessed 2 December 2026. https://pkg.go.dev/os (opens in a new tab) ↩1 ↩2
- “cap_std” crate documentation (version 4.0.3), docs.rs, accessed 2 December 2026. https://docs.rs/cap-std/latest/cap_std/ (opens in a new tab) ↩
- “Struct Dir”, cap_std crate documentation (version 4.0.3), docs.rs, accessed 2 December 2026. https://docs.rs/cap-std/latest/cap_std/fs/struct.Dir.html (opens in a new tab) ↩1 ↩2
- Aleksa Sarai, “runc container breakouts via procfs writes: CVE-2025-31133, CVE-2025-52565, and CVE-2025-52881”, oss-security, 5 November 2025. https://www.openwall.com/lists/oss-security/2025/11/05/3 (opens in a new tab) ↩1 ↩2
- Linux man-pages project, “path_resolution(7)”, accessed 2 December 2026. https://man7.org/linux/man-pages/man7/path_resolution.7.html (opens in a new tab) ↩
- Linux man-pages project, “execve(2)”, ERRORS (EACCES), accessed 2 December 2026. https://man7.org/linux/man-pages/man2/execve.2.html (opens in a new tab) ↩

SecSIG