Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain man-in-the-middle position via ARP/DNS spoofing
-
DeliveryVictim's FFmpeg initiates sftp:// connection
-
ExploitImpersonate SFTP server without host-key check
-
ExecutionCapture URL-supplied password and serve forged media
-
ImpactInformation disclosure and content tampering
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Authenticated key exchange
|
| Exploitation Conditions | Exploitation requires FFmpeg to be built with libssh support AND the victim application/user to actually use the sftp:// protocol handler with a password-bearing URL - this is not a default media workflow. The attacker must additionally hold an active man-in-the-middle position on the network (ARP, DNS, or routing spoofing) at the moment of connection. Limiting factors: required user interaction (supplying or triggering the sftp URL, reflected as UI:P), the attacker's need for a privileged on-path network position (AT:P), high attack complexity (AC:H), and the compile-time/runtime dependence on the libssh SFTP feature - none of which apply to the vast majority of FFmpeg invocations that process local files or HTTP(S)/RTMP streams. |
| Impact | This is a genuine but conditional medium-severity issue, not a drop-everything priority. The CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:N/UI:P, score 6.0) is internally consistent with the description: no authentication is needed (PR:N), but exploitation demands a privileged network position (AT:P), succeeds only against a user action (UI:P supplying/triggering an sftp URL), and is non-trivial (AC:H), which collectively depress real-world risk despite the network attack vector. Impact is primarily confidentiality (VC:H - capture of passwords embedded in sftp:// URLs) with limited integrity (VI:L - forged media served to the victim) and no availability impact. There is no EPSS score, KEV listing, or POC in the provided data: exploitation status is 'no public exploit identified at time of analysis,' which aligns with a flaw that requires an active man-in-the-middle rather than remote mass exploitation. Note a signal to weigh: FFmpeg is ubiquitously deployed, but this flaw only reaches code paths that use the libssh-based SFTP handler, so the ubiquitous product footprint overstates the actual attack surface - most FFmpeg deployments never invoke sftp:// at all. No conflicting signals were observed between the CVSS vector and the description; both point to an adjacent/network MITM scenario against SFTP clients. |
| Exploit ScenarioDerived | A victim runs FFmpeg against an sftp:// URL (e.g., to pull or push media) while an attacker occupies the network path via ARP or DNS spoofing. Because FFmpeg's libssh handler does not verify the server host key, the attacker impersonates the real SFTP server, harvests the password embedded in the sftp URL, and can return forged media or capture uploaded output. No public exploit code is identified at time of analysis, but the technique (SSH MITM without host-key pinning) is well understood and requires no memory-corruption primitive. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 08, 2026
FFmpeg 9.0.2 and earlier, when compiled with libssh support, fail to verify SSH host keys in the sftp:// protocol handler, allowing an on-path attacker to impersonate a legitimate SFTP server and capture passwords embedded in sftp:// URLs, serve forged media, or receive uploaded output. The issue is conditional rather than broadly exploitable: it only affects applications that actually invoke the sftp:// handler with password-bearing URLs, and the attacker must already hold a privileged man-in-the-middle position (ARP, DNS, or routing spoofing) at the moment of connection. No public exploit code or confirmed active exploitation was identified at the time of analysis.
RemediationAI
Upstream fix available (PR/commit); released patched version not independently confirmed - the correction is tracked as FFmpeg pull request 24384 (https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24384) and commit 2b822b7fb6ed195546bc9fd9bdb794e98222bdce (https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/2b822b7fb6ed195546bc9fd9bdb794e98222bdce), so affected deployments should upgrade FFmpeg past 9.0.2 to a release that contains that change once it is published, and should first confirm the fix is present in the chosen build. If an immediate upgrade is not possible, the most effective compensating control is to avoid invoking the sftp:// protocol handler with password-bearing URLs, processing media from local storage, HTTPS, or trusted mount points instead, which removes the attack surface at the cost of losing FFmpeg's built-in SFTP input/output. Rebuilding FFmpeg with --disable-libssh fully eliminates the vulnerable code path but also disables all SFTP functionality, while restricting sftp:// usage to network paths where a man-in-the-middle is not feasible remains a weaker, harder-to-enforce mitigation; regardless of the chosen approach, any SFTP credentials previously supplied through FFmpeg URLs should be treated as potentially compromised and rotated.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The defect lives in libavformat/libssh.c (lines 60-110 in the n9.0.2 reference), FFmpeg's SFTP input/output module built on the libssh library. The code establishes an SSH connection but does not perform SSH host key verification against a known_hosts file or a pinned key, which is CWE-322 (Key Exchange without Entity Authentication). SSH host key verification is the mechanism that binds a server's public key to its identity; without it, the client accepts any key presented during key exchange, so a network attacker with an on-path position (ARP spoofing, DNS poisoning, or malicious routing) can transparently complete the SSH handshake as the impersonated server. Because libssh support is a compile-time option and the vulnerable path is only reached when the sftp:// protocol is used, exposure is limited to builds and workflows that deliberately use FFmpeg's SFTP feature set; default local-file, HTTP(S), and RTMP media processing is unaffected. The assessed vector (CVSS 3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N, with the CVSS 4.0 vector adding AT:P, UI:P, VC:H, VI:L) describes an unauthenticated network attack of high complexity that requires a privileged attacker position and partial user interaction, with high confidentiality impact and low integrity impact - consistent with an adversary who can steal credentials and substitute media streams but cannot necessarily corrupt resulting files or disrupt availability.
Know when Ffmpeg 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
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
MITM position and absent host-key check make AC:H; no auth needed (PR:N); victim must initiate the sftp connection (UI:R); password capture gives C:H, forged media I:L, no A impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
FFmpeg through 9.0.2 contains a missing host key verification vulnerability in the libssh-based sftp protocol handler that allows network attackers to impersonate SFTP servers. Attackers performing man-in-the-middle, DNS, or ARP spoofing can capture passwords supplied in sftp URLs, serve forged media, or receive uploaded output.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the concat protocol
FFmpeg before 2.8.12, 3.0.x and 3.1.x before 3.1.9, 3.2.x before 3.2.6, and 3.3.x before 3.3.2 does not properly restric
FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the subfile protoco
The av_reallocp_array function in libavutil/mem.c in FFmpeg before 2.0.1 has an unspecified impact and remote vectors re
cbs_jpeg_split_fragment in libavcodec/cbs_jpeg.c in FFmpeg 4.1 and 4.2.2 has a heap-based buffer overflow during JPEG_MA
Out-of-bounds heap write in FFmpeg's RASC video decoder (decode_dlta in libavcodec/rasc.c) allows attackers to corrupt m
Memory corruption in FFmpeg before 8.1 allows an attacker who can supply a crafted H.264/HEVC media file to corrupt heap
Integer Overflow vulnerability in function filter_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacker
Integer Overflow vulnerability in function filter_robert in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacke
Integer Overflow vulnerability in function filter_prewitt in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack
Integer Overflow vulnerability in function filter16_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack
Integer Overflow vulnerability in function filter16_roberts in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows atta
EUVD-2026-95080
GHSA-vv62-hhh4-f6vv
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB