CVE-2026-40909 Details
Description
WWBN AVideo is an open source video platform. In versions 29.0 and prior, the locale save endpoint (`locale/save.php`) constructs a file path by directly concatenating `$_POST['flag']` into the path at line 30 without any sanitization. The `$_POST['code']` parameter is then written verbatim to that path via `fwrite()` at line 40. An admin attacker (or any user who can CSRF an admin, since no CSRF token is checked and cookies use `SameSite=None`) can traverse out of the `locale/` directory and write arbitrary `.php` files to any writable location on the filesystem, achieving Remote Code Execution. Commit 57f89ffbc27d37c9d9dd727212334846e78ac21a fixes the issue.
A path traversal vulnerability has been identified in WWBN AVideo versions through 29.0. The issue arises in the locale save endpoint (locale/save.php), where the file path is constructed by directly appending the 'flag' parameter from the POST request into the path without proper sanitization. This allows an admin attacker, or any user who can cross-site request forgery (CSRF) an admin, to escape the locale directory and write arbitrary PHP files to any writable location on the filesystem, leading to remote code execution. The vulnerability is amplified by the absence of CSRF token validation, as AVideo's session cookies are set to 'SameSite=None', enabling cross-site POST requests to include the admin's session cookie.
Users are advised to update to the patched version of WWBN AVideo, which includes validation of the 'flag' parameter to prevent path traversal, as well as CSRF protection. Instructions for updating can be found in the AVideo repository.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 21, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/WWBN/AVideo/security/advisories/GHSA-6rc6-p838-686f | CISA-ADP | ExploitVendor Advisory |
| https://github.com/WWBN/AVideo/commit/57f89ffbc27d37c9d9dd727212334846e78ac21a | [email protected] | Patch |
| https://github.com/WWBN/AVideo/security/advisories/GHSA-6rc6-p838-686f | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| wwbn avideo | <= 29.0 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 23, 2026 | Initial Analysis | [email protected] |
| Apr 21, 2026 | CVE Modified | CISA-ADP |
| Apr 21, 2026 | New CVE Received | [email protected] |