CVE-2026-37531: Path Traversal
AGL app-framework-main thru 17.1.12 contains a Zip Slip path traversal vulnerability (CWE-22) combined with a TOCTOU race condition (CWE-367) in the widget installation flow. The isvalidfilename function in wgtpkg-zip.c validates ZIP entry names but does not check for dot notation directory traversal sequences it only blocks absolute paths. The zread extraction function uses openat(workdirfd, filename, OCREAT) which resolves dot notation values relative to the work directory, allowing files to be written anywhere on the filesystem. Critically, in function installwidget in file wgtpkg-install.c, extraction via zread occurs BEFORE signature verification via checkallsignatures. Even if signature verification fails, the error cleanup (removeworkdir) only deletes the temporary work directory files written outside via path traversal persist permanently.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-37531?
CVE-2026-37531 is considered a critical vulnerability due to its potential for exploitation through path traversal and TOCTOU race conditions.
How do I fix CVE-2026-37531?
To mitigate CVE-2026-37531, update the AGL app-framework-main to version 17.1.13 or later, which includes the necessary patches.
What software is affected by CVE-2026-37531?
CVE-2026-37531 affects AGL app-framework-main versions up to and including 17.1.12.
What type of vulnerability is CVE-2026-37531?
CVE-2026-37531 is a combination of a Zip Slip path traversal vulnerability and a TOCTOU race condition.
What does the is_valid_filename function do in relation to CVE-2026-37531?
The is_valid_filename function checks ZIP entry names but fails to adequately prevent dot notation directory traversal, leading to the vulnerability.