module
AVideo Encoder getImage.php Unauthenticated Command Injection
| Disclosed | Created |
|---|---|
| Mar 5, 2026 | Mar 19, 2026 |
Disclosed
Mar 5, 2026
Created
Mar 19, 2026
Description
This module exploits an unauthenticated OS command injection vulnerability
in AVideo Encoder's getImage.php endpoint (CVE-2026-29058).
The base64Url GET parameter is base64-decoded and injected directly into an
ffmpeg shell command within double quotes, without any sanitization or use of
escapeshellarg(). PHP's FILTER_VALIDATE_URL check does not block shell
metacharacters such as $() in the URL path, allowing command substitution.
A crafted URL like http://x/$(cmd) passes FILTER_VALIDATE_URL and is interpolated
into: ffmpeg -i "{$url}" ... resulting in arbitrary command execution as www-data.
The Encoder code is served by the main AVideo Apache container (mounted at
/Encoder), so exploitation gives access to the main application context including
database credentials and configuration.
Fixed in AVideo Encoder version 7.0 (commit 78178d1) which added escapeshellarg()
and shell metacharacter stripping.
in AVideo Encoder's getImage.php endpoint (CVE-2026-29058).
The base64Url GET parameter is base64-decoded and injected directly into an
ffmpeg shell command within double quotes, without any sanitization or use of
escapeshellarg(). PHP's FILTER_VALIDATE_URL check does not block shell
metacharacters such as $() in the URL path, allowing command substitution.
A crafted URL like http://x/$(cmd) passes FILTER_VALIDATE_URL and is interpolated
into: ffmpeg -i "{$url}" ... resulting in arbitrary command execution as www-data.
The Encoder code is served by the main AVideo Apache container (mounted at
/Encoder), so exploitation gives access to the main application context including
database credentials and configuration.
Fixed in AVideo Encoder version 7.0 (commit 78178d1) which added escapeshellarg()
and shell metacharacter stripping.
Authors
arkmarta
Valentin Lobstein [email protected]
Valentin Lobstein [email protected]
Platform
Linux,Unix
Architectures
cmd
References
Module Options
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
Rapid7 Labs
2026 Global Threat Landscape Report
The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.