CVE-2026-33319
AVideo Vulnerable to OS Command Injection via Unescaped URL in LinkedIn Video Upload Shell Command
WWBN AVideo is an open source video platform. Prior to version 26.0, the uploadVideoToLinkedIn() method in the SocialMediaPublisher plugin constructs a shell command by directly interpolating an upload URL received from LinkedIn's API response, without sanitization via escapeshellarg(). If an attacker can influence the LinkedIn API response (via MITM, compromised OAuth token, or API compromise), they can inject arbitrary OS commands that execute as the web server user. Version 26.0 contains a fix for the issue.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- High
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
5.9
AVideo Vulnerable to OS Command Injection via Unescaped URL in LinkedIn Video Upload Shell Command
WWBN AVideo is an open source video platform. Prior to version 26.0, the uploadVideoToLinkedIn() method in the SocialMediaPublisher plugin constructs a shell command by directly interpolating an upload URL received from LinkedIn's API response, without sanitization via escapeshellarg(). If an attacker can influence the LinkedIn API response (via MITM, compromised OAuth token, or API compromise), they can inject arbitrary OS commands that execute as the web server user. Version 26.0 contains a fix for the issue.
- Record
CVE-2026-33319- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N - Weakness
- CWE-78
- Updated
- 2026-11-02
EUVDEUVD-2026-20093
5.9
WWBN AVideo is an open source video platform. Prior to version 26.0, the uploadVideoToLinkedIn() method in the SocialMediaPublisher plugin constructs a shell command by directly interpolating an upload URL received from LinkedIn's API response, without sanitization via escapeshellarg(). If an attacker can influence the LinkedIn API response (via MITM, compromised OAuth token, or API compromise), they can inject arbitrary OS commands that execute as the web server user. Version 26.0 contains a fix for the issue.
- Record
EUVD-2026-20093- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-w5ff-2mjc-4phc
5.9
AVideo has an OS Command Injection via Unescaped URL in LinkedIn Video Upload Shell Command
Summary
The uploadVideoToLinkedIn() method in the SocialMediaPublisher plugin constructs a shell command by directly interpolating an upload URL received from LinkedIn's API response, without sanitization via escapeshellarg(). If an attacker can influence the LinkedIn API response (via MITM, compromised OAuth token, or API compromise), they can inject arbitrary OS commands that execute as the web server user.
Details
The vulnerability exists in plugin/SocialMediaPublisher/Objects/SocialUploader.php.
The initializeLinkedInUploadSession() method (line 649) sends a POST request to https://api.linkedin.com/rest/videos?action=initializeUpload and parses the JSON response at line 693:
// SocialUploader.php:693
$responseArray = json_decode($response, true);
The parsed uploadInstructions array is iterated at line 532, and each uploadUrl is passed to uploadVideoToLinkedIn() at line 542:
// SocialUploader.php:542
$uploadResponse = self::uploadVideoToLinkedIn($instruction['uploadUrl'], $tmpFile);
The uploadVideoToLinkedIn() method (line 711) constructs a shell command by directly concatenating both $uploadUrl and $filePath into a string passed to exec():
// SocialUploader.php:713-720
$shellCmd = 'curl -v -H "Content-Type:application/octet-stream" --upload-file "' .
$filePath . '" "' .
$uploadUrl . '" 2>&1';
_error_log("Upload Video Shell Command:\n" . $shellCmd);
exec($shellCmd, $o);
Neither $uploadUrl nor $filePath is sanitized with escapeshellarg(). A malicious URL such as https://uploads.linkedin.local" ; id ; echo " would break out of the quoted string and execute arbitrary commands.
The $uploadUrl originates from LinkedIn's API response — a trusted third-party source over HTTPS — so exploitation requires compromising that response (MITM at CA level, compromised OAuth token leading to attacker-controlled API responses, or LinkedIn API compromise). This makes the attack complexity high, but the missing sanitization is a defense-in-depth failure that could become critical if the trust boundary is ever violated.
PoC
This vulnerability requires manipulating the LinkedIn API response. A simulated proof-of-concept using a local proxy:
Step 1: Set up a proxy that intercepts the LinkedIn API response and replaces the uploadUrl field:
{
"value": {
"uploadInstructions": [
{
"uploadUrl": "https://example.com\" ; id > /tmp/pwned ; echo \"",
"firstByte": 0,
"lastByte": 1024
}
],
"uploadToken": "token123",
"video": "urn:li:video:123"
}
}
Step 2: The resulting shell command becomes:
curl -v -H "Content-Type:application/octet-stream" --upload-file "/tmp/tmpfile" "https://uploads.linkedin.local" ; id > /tmp/pwned ; echo "" 2>&1
Step 3: The id command executes as the web server user, writing output to /tmp/pwned.
Step 4: Verify:
cat /tmp/pwned
# uid=33(www-data) gid=33(www-data) groups=33(www-data)
Impact
- Remote Code Execution: If the LinkedIn API response is compromised, an attacker gains arbitrary command execution as the web server user (
www-data). - Confidentiality: Full read access to application source code, configuration files (including database credentials), and any data accessible to the web server process.
- Integrity: Ability to modify application files, inject backdoors, or alter database records.
- Practical risk is low due to the high attack complexity — exploitation requires compromising a trusted HTTPS API response from LinkedIn. This is primarily a defense-in-depth issue.
Recommended Fix
Sanitize both $uploadUrl and $filePath with escapeshellarg() before interpolation into the shell command. Alternatively, replace the exec() call with PHP's native cURL functions (which are already used elsewhere in the same class):
Option 1 — Minimal fix with escapeshellarg():
…
- Record
GHSA-w5ff-2mjc-4phc- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N - Weakness
- CWE-78
- Updated
- 2026-11-02
NVD
5.9
WWBN AVideo is an open source video platform. Prior to version 26.0, the uploadVideoToLinkedIn() method in the SocialMediaPublisher plugin constructs a shell command by directly interpolating an upload URL received from LinkedIn's API response, without sanitization via escapeshellarg(). If an attacker can influence the LinkedIn API response (via MITM, compromised OAuth token, or API compromise), they can inject arbitrary OS commands that execute as the web server user. Version 26.0 contains a fix for the issue.
- Record
CVE-2026-33319- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N - CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-78
- Updated
- 2026-11-02
OSV
5.9
AVideo Vulnerable to OS Command Injection via Unescaped URL in LinkedIn Video Upload Shell Command
WWBN AVideo is an open source video platform. Prior to version 26.0, the uploadVideoToLinkedIn() method in the SocialMediaPublisher plugin constructs a shell command by directly interpolating an upload URL received from LinkedIn's API response, without sanitization via escapeshellarg(). If an attacker can influence the LinkedIn API response (via MITM, compromised OAuth token, or API compromise), they can inject arbitrary OS commands that execute as the web server user. Version 26.0 contains a fix for the issue.
- Record
CVE-2026-33319- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N - Weakness
- CWE-78
- Updated
- 2026-11-11
OSVGHSA-w5ff-2mjc-4phc
5.9
AVideo has an OS Command Injection via Unescaped URL in LinkedIn Video Upload Shell Command
Summary
The uploadVideoToLinkedIn() method in the SocialMediaPublisher plugin constructs a shell command by directly interpolating an upload URL received from LinkedIn's API response, without sanitization via escapeshellarg(). If an attacker can influence the LinkedIn API response (via MITM, compromised OAuth token, or API compromise), they can inject arbitrary OS commands that execute as the web server user.
Details
The vulnerability exists in plugin/SocialMediaPublisher/Objects/SocialUploader.php.
The initializeLinkedInUploadSession() method (line 649) sends a POST request to https://api.linkedin.com/rest/videos?action=initializeUpload and parses the JSON response at line 693:
// SocialUploader.php:693
$responseArray = json_decode($response, true);
The parsed uploadInstructions array is iterated at line 532, and each uploadUrl is passed to uploadVideoToLinkedIn() at line 542:
// SocialUploader.php:542
$uploadResponse = self::uploadVideoToLinkedIn($instruction['uploadUrl'], $tmpFile);
The uploadVideoToLinkedIn() method (line 711) constructs a shell command by directly concatenating both $uploadUrl and $filePath into a string passed to exec():
// SocialUploader.php:713-720
$shellCmd = 'curl -v -H "Content-Type:application/octet-stream" --upload-file "' .
$filePath . '" "' .
$uploadUrl . '" 2>&1';
_error_log("Upload Video Shell Command:\n" . $shellCmd);
exec($shellCmd, $o);
Neither $uploadUrl nor $filePath is sanitized with escapeshellarg(). A malicious URL such as https://uploads.linkedin.local" ; id ; echo " would break out of the quoted string and execute arbitrary commands.
The $uploadUrl originates from LinkedIn's API response — a trusted third-party source over HTTPS — so exploitation requires compromising that response (MITM at CA level, compromised OAuth token leading to attacker-controlled API responses, or LinkedIn API compromise). This makes the attack complexity high, but the missing sanitization is a defense-in-depth failure that could become critical if the trust boundary is ever violated.
PoC
This vulnerability requires manipulating the LinkedIn API response. A simulated proof-of-concept using a local proxy:
Step 1: Set up a proxy that intercepts the LinkedIn API response and replaces the uploadUrl field:
{
"value": {
"uploadInstructions": [
{
"uploadUrl": "https://example.com\" ; id > /tmp/pwned ; echo \"",
"firstByte": 0,
"lastByte": 1024
}
],
"uploadToken": "token123",
"video": "urn:li:video:123"
}
}
Step 2: The resulting shell command becomes:
curl -v -H "Content-Type:application/octet-stream" --upload-file "/tmp/tmpfile" "https://uploads.linkedin.local" ; id > /tmp/pwned ; echo "" 2>&1
Step 3: The id command executes as the web server user, writing output to /tmp/pwned.
Step 4: Verify:
cat /tmp/pwned
# uid=33(www-data) gid=33(www-data) groups=33(www-data)
Impact
- Remote Code Execution: If the LinkedIn API response is compromised, an attacker gains arbitrary command execution as the web server user (
www-data). - Confidentiality: Full read access to application source code, configuration files (including database credentials), and any data accessible to the web server process.
- Integrity: Ability to modify application files, inject backdoors, or alter database records.
- Practical risk is low due to the high attack complexity — exploitation requires compromising a trusted HTTPS API response from LinkedIn. This is primarily a defense-in-depth issue.
Recommended Fix
Sanitize both $uploadUrl and $filePath with escapeshellarg() before interpolation into the shell command. Alternatively, replace the exec() call with PHP's native cURL functions (which are already used elsewhere in the same class):
Option 1 — Minimal fix with escapeshellarg():
…
- Record
GHSA-w5ff-2mjc-4phc- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N - Weakness
- CWE-78
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
wwbn/avideoPackagist |
through 25.0 | None known |
wwbn/avideoPackagist |
through 25.0, plus listed versions 10.410.81111.111.1.1 Show 10 moreShow less11.511.612.414.314.3.114.418.021.022.024.0 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| facts | OSV | |
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-33319 is a medium vulnerability (CVSS 5.9) in Wwbn Avideo, published March 19, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.34%, the 27th percentile. No source names a fixed version.
References
github.com/WWBN/AVideo/security/advisories/GHSA-w5ff-2mjc-4phc
github.com/WWBN/AVideo/commit/67d932eb05e1bc9b36796f73ff4f9fb47590598b
nvd.nist.gov/vuln/detail/CVE-2026-33319
github.com/advisories/GHSA-w5ff-2mjc-4phc
github.com/CVEProject/cvelistV5/tree/main/cves/2026/33xxx/CVE-2026-33319.json
github.com/WWBN/AVideo
Left out here: the rest of 2 source descriptions. The JSON record has them.