{"id":"CVE-2026-33647","summary":"AVideo Vulnerable to Remote Code Execution via MIME/Extension Mismatch in ImageGallery File Upload","details":"WWBN AVideo is an open source video platform. In versions up to and including 26.0, the `ImageGallery::saveFile()` method validates uploaded file content using `finfo` MIME type detection but derives the saved filename extension from the user-supplied original filename without an allowlist check. An attacker can upload a polyglot file (valid JPEG magic bytes followed by PHP code) with a `.php` extension. The MIME check passes, but the file is saved as an executable `.php` file in a web-accessible directory, achieving Remote Code Execution. Commit 345a8d3ece0ad1e1b71a704c1579cbf885d8f3ae contains a patch.","aliases":["GHSA-wxjw-phj6-g75w"],"modified":"2026-04-10T05:42:51.264709Z","published":"2026-03-23T18:23:20.079Z","database_specific":{"cwe_ids":["CWE-434"],"cna_assigner":"GitHub_M","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/33xxx/CVE-2026-33647.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/33xxx/CVE-2026-33647.json"},{"type":"FIX","url":"https://github.com/WWBN/AVideo/commit/345a8d3ece0ad1e1b71a704c1579cbf885d8f3ae"},{"type":"ADVISORY","url":"https://github.com/WWBN/AVideo/security/advisories/GHSA-wxjw-phj6-g75w"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33647"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/wwbn/avideo","events":[{"introduced":"0"},{"last_affected":"aee1e11ee8d9343f87b7643e49cc32924b07979b"}],"database_specific":{"versions":[{"introduced":"0"},{"last_affected":"26.0"}]}}],"versions":["10.8","11","11.1","11.1.1","11.5","11.6","12.4","14.3","14.3.1","18.0","2.2","2.7","21.0","22.0","24.0","25.0","26.0","3.4","4.0","7.2","7.3","7.4","7.6","7.7","7.8","8.1","8.5","8.6","8.7","8.9","8.9.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-33647.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}