Skip to main content

FFmpeg EUVDEUVD-2026-133638

| CVE-2026-135711 MEDIUM
XML Injection (aka Blind XPath Injection) (CWE-91)
2026-11-24 VulnCheck GHSA-3hqc-r3wp-5g4x
4.8
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Deliver crafted media file with malicious Language metadata
  2. Exploit
    Victim transcodes file to TTML via FFmpeg muxer
  3. Execution
    Unescaped value breaks out of xml:lang attribute
  4. Impact
    Injected markup alters downstream TTML parsing/rendering

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization XPath query parameterization
Exploitation Conditions

Exploitation requires a victim to run FFmpeg (before 9.1) to convert or mux an attacker-supplied media file into TTML output using the TTML muxer, where the attacker controls a stream's language metadata (e.g., a Matroska subtitle track's Language field). Concretely, the output format must be TTML so that ttml_write_header() in libavformat/ttmlenc.c writes the Language value into the xml:lang attribute without escaping. Limiting factors: the attack vector is local (AV:L) and requires passive user interaction (UI:P) - the victim must actually process the malicious file; the TTML output path must be selected; and impact is bounded to integrity of the generated document (VI:L) with no confidentiality, availability, or code-execution impact, so realistic risk is markup/parser manipulation downstream rather than system compromise.

Impact

This is a genuinely low-to-moderate priority issue, not a high-severity emergency. The CVSS 4.0 base score is 4.8 (medium) and the vector tells a consistent story: local attack vector (AV:L), low complexity (AC:L), no privileges (PR:N), but passive user interaction required (UI:P), with impact confined to integrity of the vulnerable system (VI:L) and zero confidentiality or availability impact (VC:N/VA:N) and no scope change (SC:N/SI:N/SA:N). In plain terms, an attacker cannot reach this over the network and cannot execute code; they can only cause markup to be injected into a generated TTML document when a victim converts an attacker-supplied media file through FFmpeg's TTML muxer. The vuln.today decision label is 'this_month' (not act_now or emergency), which aligns with the modest technical impact. No EPSS score was provided in the input and the CVE is not listed in CISA KEV, so there is no signal of active or widespread exploitation. The referenced VulnCheck advisory and the FFmpeg pull request document the flaw and fix but are not identified as working exploit code. The one modest tension worth noting: the description frames this as attackers supplying 'media files' which sounds remote-ish, yet the CVSS vector is correctly AV:L because the victim must locally run a conversion on that file - these are consistent, not conflicting, once you recognize the file-processing threat model.

Exploit ScenarioDerived

An attacker crafts a Matroska file with a subtitle track whose Language metadata contains XML markup (for example, closing the xml:lang attribute and injecting additional attributes or elements). A victim or automated pipeline transcodes that file to TTML subtitles using FFmpeg before 9.1, and the unescaped Language value is written directly into the xml:lang attribute, injecting markup into the output document that can alter how downstream TTML parsers or renderers interpret it. No public exploit identified at time of analysis, though the mechanism is documented in the VulnCheck advisory and FFmpeg pull request.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 24, 2026

XML injection in FFmpeg's TTML muxer (libavformat/ttmlenc.c) lets an attacker who controls a stream's language metadata - for example the Language field of a Matroska subtitle track - write unescaped markup into the xml:lang attribute of the generated TTML document. All FFmpeg builds before 9.1 are affected, but the attack is local: the victim must actually run FFmpeg to convert or mux the crafted media file and must select TTML as the output format (CVSS 4.0 4.8; PR:N, UI:P). Impact is confined to integrity of the produced document (VI:L) with no confidentiality, availability or code-execution effect, so the realistic risk is downstream parser or rendering manipulation rather than host compromise; no public exploit was identified at the time of analysis and there is no CISA KEV entry, though the vendor fix is already published.

RemediationAI

Vendor-released patch: upgrade to FFmpeg 9.1 or later, which contains the av_escape()-based XML encoding of the xml:lang value (commit bcb5d56b752cba0117eee5d6509dfc081de4c326, merged via https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24917); distributions that backport should apply that commit and confirm the av_escape/AV_ESCAPE_MODE_XML change is present in libavformat/ttmlenc.c. Until the upgrade is deployed, the practical compensating control is to avoid running the TTML muxer over untrusted media: restrict conversions to a fixed allow-list of output formats that excludes TTML, since FFmpeg's muxer selection is normally driven by the output file extension or -f argument and a conversion pipeline that never targets TTML cannot reach ttml_write_header(). Where TTML output is genuinely required, sanitize or strip the container's language metadata (for example drop the Matroska Language element or force a known-good language tag) before muxing, at the cost of losing legitimate language annotations in the produced document. Note that the flaw's impact is limited to markup injection in the generated TTML, so any downstream consumer that parses or renders FFmpeg-produced TTML from untrusted sources should be treated as untrusted input regardless of the patch level.

Affected VersionsENISA

FFmpeg 0 <9.1

Affected Packages

euvd ffmpeg fix: 9.1

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

FFmpeg's TTML muxer builds a Timed Text Markup Language document from an input AVFormatContext. In ttml_write_header(), the code previously took the stream's language metadata (the 'language' AVOption/dictionary value, in practice usually sourced from container metadata such as a Matroska track's Language element) and wrote it verbatim into the xml:lang attribute of the output <tt> element. Because the value was never XML-escaped, an attacker-controlled Language string containing quotes or angle brackets can break out of the attribute and inject arbitrary markup into the resulting document - the classic CWE-91 (XML Injection) failure mode that arises whenever untrusted data is concatenated into a serialized XML document without contextual encoding. The upstream fix at commit bcb5d56b752cba0117eee5d6509dfc081de4c326 replaces the direct pointer with a heap-allocated buffer populated by av_escape() using AV_ESCAPE_MODE_XML with AV_ESCAPE_FLAG_XML_DOUBLE_QUOTES, so double quotes, ampersands and angle brackets in the Language value are encoded before being placed in the attribute, and the buffer is released with av_free(). The change is confined to the TTML encoder; other muxers that emit language metadata were not modified in this commit.

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

Vendor (VulnCheck) PRIMARY 4.8 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
vuln.today AI 3.3 LOW

Local because the victim must run a conversion on the attacker's file (AV:L, UI:R); no privileges needed (PR:N); impact limited to integrity of the generated TTML (I:L), with no confidentiality or availability effect.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Red Hat 3.3 LOW

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

FFmpeg before 9.1 contains an XML injection vulnerability in ttml_write_header() in libavformat/ttmlenc.c that writes stream language metadata unescaped into the xml:lang attribute. Attackers can supply media files, such as Matroska subtitle tracks with crafted Language values, to inject markup into converted TTML documents and alter downstream parsing or rendering.

Threat Intelligence Overview

EPSS Score
0.2%
Top 90% exploitable
Prevalence
Ubiquitous
FFmpeg is near-universal in media processing pipelines, though the TTML muxer path is niche
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL GitHub

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

24
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +24
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

More in Ffmpeg

View all
CVE-2016-1897 MEDIUM POC
5.5 Jan 15

FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the concat protocol

CVE-2017-9993 HIGH
7.5 Jun 28

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

CVE-2016-1898 MEDIUM POC
5.5 Jan 15

FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the subfile protoco

CVE-2013-4265 CRITICAL POC
10.0 Nov 23

The av_reallocp_array function in libavutil/mem.c in FFmpeg before 2.0.1 has an unspecified impact and remote vectors re

CVE-2020-12284 CRITICAL POC
9.8 Apr 28

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

CVE-2026-58049 HIGH POC
8.8 Jun 28

Out-of-bounds heap write in FFmpeg's RASC video decoder (decode_dlta in libavcodec/rasc.c) allows attackers to corrupt m

CVE-2026-30754 HIGH POC
8.8 Sep 08

Memory corruption in FFmpeg before 8.1 allows an attacker who can supply a crafted H.264/HEVC media file to corrupt heap

CVE-2025-25469 HIGH POC
8.8 Feb 18

Memory exhaustion in FFmpeg git-master builds before commit d5873b can occur when a victim processes attacker-controlled

CVE-2021-38094 HIGH POC
8.8 Sep 20

Integer Overflow vulnerability in function filter_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacker

CVE-2021-38093 HIGH POC
8.8 Sep 20

Integer Overflow vulnerability in function filter_robert in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacke

CVE-2021-38092 HIGH POC
8.8 Sep 20

Integer Overflow vulnerability in function filter_prewitt in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack

CVE-2021-38091 HIGH POC
8.8 Sep 20

Integer Overflow vulnerability in function filter16_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy