# CVE-2026-40909: WWBN AVideo has a Path Traversal in Locale Save Endpoint that Enables Arbitrary PHP File Write to Any Web-Accessible Directory (RCE)

- Severity: High 8.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.68%, higher than 53% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-14T22:49:48.000Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-6rc6-p838-686f
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- WWBN AVideo: <= 29.0; up to 29.0
- wwbn/avideo (Packagist): up to 29.0

## Every score

- GitHub_M: CVSS:3.1 8.7 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N`
- GitHub: CVSS:3.1 8.7 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/WWBN/AVideo/security/advisories/GHSA-6rc6-p838-686f> (exploit, vendor-advisory, web)
- <https://github.com/WWBN/AVideo/commit/57f89ffbc27d37c9d9dd727212334846e78ac21a> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40909> (advisory)
- <https://github.com/WWBN/AVideo> (package)

## Sources

- CVE List: [CVE-2026-40909](https://www.cve.org/CVERecord?id=CVE-2026-40909), CVE Terms of Use, modified 2026-04-21
- GitHub Advisory Database: [GHSA-6rc6-p838-686f](https://github.com/advisories/GHSA-6rc6-p838-686f), CC-BY-4.0, modified 2026-05-05
- NVD: [CVE-2026-40909](https://nvd.nist.gov/vuln/detail/CVE-2026-40909), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-40909 · Whole record: https://cve.day/CVE-2026-40909.json · Rebuilt by cve.day 2026-11-25T22:59:19.145Z
