Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeliver crafted media file with malicious Language metadata
-
ExploitVictim transcodes file to TTML via FFmpeg muxer
-
ExecutionUnescaped value breaks out of xml:lang attribute
-
ImpactInjected 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
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
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
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Related Vulnerabilities in FFmpeg libavformat Memory and Input Validation Flaws
View all 9FFmpeg 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
Memory exhaustion in FFmpeg git-master builds before commit d5873b can occur when a victim processes attacker-controlled
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
EUVD-2026-133638
GHSA-3hqc-r3wp-5g4x
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB