4.9Medium

CVE-2026-62947OpenWrt: ACL bypass and arbitrary root file read via cgi-io cgi-download

openwrt openwrt Published: (4 months ago)

Description

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.

Weakness (CWE): CWE-22

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
openwrt openwrt < 25.12.5

References and patches

CPE matches (NVD) (1)

  • cpe:2.3:o:openwrt:openwrt:*:*:*:*:*:*:*:* < 25.12.5