Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain admin credentials or session token
-
DeliveryIdentify ubus session ACL wildcard path (e.g., /etc/config/*)
-
ExploitCraft path with ../ traversal suffix targeting /etc/shadow
-
ExecutionSubmit HTTP request to cgi-download endpoint
-
Persistfnmatch() ACL check passes without FNM_PATHNAME
-
Impactopen() resolves traversal and returns root-readable file
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 | Exploitation requires a valid high-privilege ubus session token with at least one file read ACL grant covering a directory path with a wildcard (e.g., /etc/config/*) - this corresponds to PR:H in the CVSS vector and reflects admin-level access to the OpenWrt management interface. The cgi-download CGI endpoint must be reachable over the network (AV:N). The traversal requires that the allowed ACL wildcard path and the target sensitive file share a common ancestor directory reachable via '..' traversal from the allowed path. Unauthenticated exploitation is not possible per the CVSS PR:H rating. The vulnerability does not affect configurations where the cgi-io package is absent or where ubus session ACLs are scoped to non-traversable paths. Both the cgi-download (file read) and main_exec (executable path) handlers were vulnerable to this class of bypass. |
| Impact | The CVSS 3.1 score of 4.9 (AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N) correctly reflects that while the confidentiality impact is high - reading /etc/shadow gives access to password hashes enabling offline cracking - the PR:H requirement is a genuine and significant barrier. Only an attacker who already holds a high-privilege ubus session (effectively admin access to the device) can exploit this. This limits real-world risk considerably: the attacker must already have substantial access, and the incremental gain is the ability to read files outside their explicitly granted ACL paths. No KEV listing and no EPSS data were provided, and no public exploit has been identified. The actual risk profile is moderate: meaningful for post-compromise lateral movement or privilege consolidation, but not a remotely exploitable pre-auth vector. The CVSS score of 4.9 is proportionate. The release notes note that v25.12.5 contains several more critical vulnerabilities (e.g., CVE-2026-53921, a CRITICAL DHCPv6 stack overflow), making the upgrade case stronger beyond this specific CVE alone. |
| Exploit ScenarioDerived | An attacker who has obtained OpenWrt admin credentials - through credential stuffing, phishing, or a prior compromise - authenticates and obtains a ubus session token that includes a file read ACL for /etc/config/*. The attacker then issues a crafted HTTP request to the cgi-download endpoint specifying a path such as /etc/config/../shadow; fnmatch() matches this against /etc/config/* without FNM_PATHNAME and the ACL check passes, but open() resolves the embedded '..' and returns the contents of /etc/shadow, providing password hashes for offline cracking. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 15, 2026
Path traversal in OpenWrt's cgi-io cgi-download handler (prior to 25.12.5) allows an authenticated administrator to read arbitrary root-readable files - including /etc/shadow - by exploiting a TOCTOU-style authorization flaw where ACL checks occur before path canonicalization. The rpcd session.c ACL matcher uses fnmatch() without FNM_PATHNAME, meaning a wildcard-prefixed ACL entry (e.g., /etc/config/*) can be defeated by appending ../ sequences that pass the ACL check but resolve to an out-of-scope file when open() is called. No public exploit identified at time of analysis; vendor-released patch is available in v25.12.5.
RemediationAI
Upgrade to OpenWrt 25.12.5, which introduces path canonicalization before ACL validation in both the cgi-download and main_exec handlers. Firmware images are available via the OpenWrt Firmware Selector at https://firmware-selector.openwrt.org/?version=25.12.5 and from download servers at https://downloads.openwrt.org/releases/25.12.5/targets/. The upstream fix is in cgi-io commit 72990b7 (https://github.com/openwrt/cgi-io/commit/72990b7489872112df31c94032637c907760bae4) and PR https://github.com/openwrt/cgi-io/pull/4. If immediate firmware upgrade is not feasible, restrict network access to the LuCI/CGI management interface to trusted hosts only (e.g., via firewall rules limiting access to port 80/443 on the LAN interface), which reduces exposure by ensuring only already-trusted network positions can reach the cgi-download endpoint. Note that this compensating control does not eliminate the vulnerability - it only reduces the network attack surface. Additionally, auditing and narrowing ubus session ACL grants to the minimum required paths limits traversal scope. Note that this release also fixes several critical vulnerabilities in odhcpd (CVE-2026-53921 et al.), making upgrading strongly advisable regardless.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability (CWE-22, Path Traversal) exists in main.c of the cgi-io package, which provides the CGI download handler for OpenWrt's web interface. The root cause is an ordering flaw: the requested path is checked against the caller's ubus session file ACL before being canonicalized, rather than after. The ubus session ACL in rpcd (session.c) uses the POSIX fnmatch() function without the FNM_PATHNAME flag. Without FNM_PATHNAME, the '*' wildcard matches any character including '/', so a path like /etc/config/../shadow matches the pattern /etc/config/* at the ACL check stage. However, when open() subsequently receives the uncanonicalized path, the kernel resolves the embedded '..' and opens /etc/shadow instead. The PR diff at https://github.com/openwrt/cgi-io/pull/4 confirms the fix introduces canonicalize_path() before the session_access() ACL call, closing the TOCTOU window. The same class of flaw was also present in the main_exec handler for executable path checks. Affected CPE: cpe:2.3:a:openwrt:openwrt:*:*:*:*:*:*:*:*.
Know when Openwrt 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:H/UI:N/S:U/C:H/I:N/A:N
Requires admin-level ubus session (PR:H); network-reachable endpoint (AV:N); impacts only confidentiality via sensitive file disclosure, no integrity or availability impact.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
OpenWrt is a Linux operating system targeting embedded devices. Prior to 25.12.5, the cgi-download handler in cgi-io authorizes the requested path against the caller's ubus session file ACL before canonicalization, and rpcd session.c uses fnmatch() without FNM_PATHNAME, allowing traversal such as an allowed wildcard prefix followed by ../ to read root-readable files including /etc/shadow. This vulnerability is fixed in 25.12.5.
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.
In wlan service, there is a possible out of bounds write due to improper input validation. Rated critical severity (CVSS
Stored cross-site scripting in OpenWrt's LuCI web interface lets an adjacent-network attacker inject executable HTML/Jav
An issue was discovered in OpenWrt 18.06.0 to 18.06.6 and 19.07.0, and LEDE 17.01.0 to 17.01.7. Rated high severity (CVS
An issue was discovered in OpenWrt libuci (aka Library for the Unified Configuration Interface) before 15.05.1 as used o
cgi_handle_request in uhttpd in OpenWrt through 18.06.1 and LEDE through 17.01 has unauthenticated reflected XSS via the
In wlan service, there is a possible out of bounds write due to an incorrect bounds check. Rated critical severity (CVSS
An exploitable information leak vulnerability exists in the ustream-ssl library of OpenWrt, versions 18.06.4 and 15.05.1
An exploitable information leak vulnerability exists in the ustream-ssl library of OpenWrt, versions 18.06.4 and 15.05.1
Remote privilege escalation in Android WLAN AP driver via packet injection.
In wlan AP driver, there is a possible out of bounds write due to an incorrect bounds check. This could lead to local es
In wlan AP driver, there is a possible out of bounds write due to an incorrect bounds check. This could lead to local es
In wlan AP driver, there is a possible out of bounds write due to an incorrect bounds check. This could lead to local es
EUVD-2026-44756
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB