Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-107675 Overview
CVE-2026-107675 affects FFmpeg versions through 9.0.2. The vulnerability resides in the libssh-based SFTP protocol handler within libavformat/libssh.c. The handler fails to verify SSH host keys when establishing SFTP connections, mapping to [CWE-322] (Key Exchange without Entity Authentication). Network attackers positioned to perform man-in-the-middle, DNS spoofing, or ARP spoofing can impersonate legitimate SFTP servers. This allows them to intercept credentials embedded in sftp:// URLs, serve forged media content to downstream pipelines, or capture files uploaded through FFmpeg workflows.
Critical Impact
Attackers in a network path can impersonate SFTP servers, harvest plaintext passwords from sftp://user:pass@host URLs, and manipulate media content flowing through FFmpeg processing chains.
Affected Products
- FFmpeg versions through 9.0.2
- Applications and services bundling libavformat with libssh SFTP support
- Media processing pipelines invoking ffmpeg with sftp:// input or output URLs
Discovery Timeline
- 2026-10-08 - CVE CVE-2026-107675 published to NVD
- 2026-10-14 - Last updated in NVD database
Technical Details for CVE-2026-107675
Vulnerability Analysis
FFmpeg integrates SFTP support through libavformat/libssh.c, which wraps the libssh client library. When FFmpeg processes a URL with the sftp:// scheme, the handler establishes an SSH session, authenticates, and opens an SFTP channel. The affected code path omits the standard libssh host key verification step that validates the server's public key against a known_hosts store or user-supplied fingerprint. Without this check, the client accepts any SSH identity presented by the peer. An attacker positioned on the network path can present an attacker-controlled key, complete the key exchange, and proxy or terminate the session.
Root Cause
The root cause is the absence of a call to verify the server host key after libssh completes key exchange. Properly written libssh clients call ssh_session_is_known_server() (or the legacy ssh_is_server_known()) and reject unknown or mismatched hosts. The FFmpeg SFTP handler proceeds directly from connection to authentication, delegating no trust anchor to the user.
Attack Vector
Exploitation requires the attacker to intercept traffic between the FFmpeg host and the intended SFTP server. Common positions include adjacent network segments, compromised routers, poisoned ARP tables, or hijacked DNS resolution. Once in path, the attacker presents a rogue SSH service. FFmpeg negotiates a session, submits the password embedded in the sftp://user:password@host/path URL, and begins exchanging file data with the attacker. The attacker can log the credentials, return crafted media bytes for subsequent processing, or capture uploaded output files. User interaction is limited to invoking an FFmpeg command referencing an sftp:// resource.
See the GitHub Code Review - libssh.c and the VulnCheck Advisory - FFmpeg SFTP Issue for the vulnerable code region and advisory details.
Detection Methods for CVE-2026-107675
Indicators of Compromise
- Outbound SSH connections from media processing hosts to IP addresses that do not match the authorized SFTP server inventory.
- SSH host key fingerprints observed on the wire that differ from the recorded fingerprint of the legitimate SFTP server.
- FFmpeg process invocations containing sftp:// URLs with embedded credentials in command-line arguments or job queues.
Detection Strategies
- Inventory all FFmpeg deployments and inspect pipeline configurations for sftp:// scheme usage, including scripts, container images, and job templates.
- Correlate FFmpeg execution telemetry with network flow data to detect SSH destinations outside the approved allowlist.
- Monitor for ARP table changes and unexpected DNS responses on subnets that run FFmpeg workers.
Monitoring Recommendations
- Capture process command-line arguments for ffmpeg binaries and alert on sftp:// URLs that contain inline passwords.
- Log SSH client banners and host key fingerprints at network egress points to detect server impersonation attempts.
- Track installed FFmpeg package versions across endpoints and servers to identify instances still at 9.0.2 or earlier.
How to Mitigate CVE-2026-107675
Immediate Actions Required
- Audit all media workflows for sftp:// URL usage and rotate any passwords that have been passed to vulnerable FFmpeg versions.
- Replace FFmpeg binaries with a patched build that incorporates the fix from FFmpeg Commit 2b822b7fb6ed.
- Restrict network paths between FFmpeg hosts and SFTP servers using segmentation, static ARP entries, and DNSSEC-validated resolvers.
Patch Information
The FFmpeg project addressed the issue in Pull Request 24384 and merged commit 2b822b7fb6ed195546bc9fd9bdb794e98222bdce. The patch adds host key verification to the libssh SFTP handler in libavformat/libssh.c. Rebuild FFmpeg from source after the fix or install distribution packages that incorporate the commit. Operators tracking a release branch should pin to a version strictly later than 9.0.2.
Workarounds
- Avoid the sftp:// protocol handler entirely; stage files locally with a hardened SFTP client such as sftp or scp that enforces StrictHostKeyChecking=yes, then invoke FFmpeg against the local path.
- Remove credentials from sftp:// URLs and rely on key-based authentication through an external transfer tool to limit credential exposure if the handler is used.
- Enforce mutual TLS or IPsec tunnels between FFmpeg workers and SFTP servers to prevent man-in-the-middle positioning on untrusted segments.
# Configuration example: stage SFTP content with host key verification, then process locally
sftp -o StrictHostKeyChecking=yes -o UserKnownHostsFile=/etc/ssh/known_hosts \
user@sftp.example.com:/media/input.mp4 /tmp/input.mp4
ffmpeg -i /tmp/input.mp4 -c:v libx264 /tmp/output.mp4
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

