depthfirst's AI agent finds 21 new FFmpeg bugs for about $1k
In short
- Security company depthfirst says its AI agent found 21 previously unknown security flaws ("zero-days") in FFmpeg, the open-source library that decodes and converts video and audio for much of the internet. Each finding came with a crafted input file or network packet that, it says, reproduces the bug.
- The company puts the whole run at roughly $1,000 of compute, which it calls 10% of what Anthropic spent scanning FFmpeg with its Mythos model. That cost comparison is depthfirst's own and was not checked by anyone else.
- Nine of the 21 have CVE numbers, the public catalogue IDs for vulnerabilities (CVE-2026-39210 to CVE-2026-39218). The oldest bug dates from 2003; the company says several had sat unnoticed for 15 to 20 years.
- For one bug, in the AV1-over-RTP code, depthfirst built a proof of concept that takes over the program's execution with a single 183-byte network packet.
21 new vulnerabilities found in FFmpeg; 9 already have CVE numbers; ~$1k compute cost, per depthfirst; ~1.5 million lines of C code in FFmpeg
What is FFmpeg, and why does a bug in it matter?
FFmpeg is a widely used open-source library for reading, converting and streaming video and audio. depthfirst describes it as running quietly behind browsers and large streaming platforms. Because it constantly parses files and network streams from strangers, a bug in how it handles a malformed input can become a security hole, and the company calls it a prime target for "zero-click" attacks, where the victim does nothing beyond letting the software process a file.
The post says the code base is about 1.5 million lines of heavily optimised C, covering hundreds of media formats, and has absorbed "over two decades" of fuzzing (feeding programs random or mutated inputs to make them crash) and manual audits. It also notes that Google's Big Sleep team had disclosed 13 FFmpeg vulnerabilities, and that Anthropic had used its Mythos model to scan FFmpeg and found "some security issues". depthfirst did not have Mythos; it says it used only models available to it, and asked whether it could re-find what those efforts found and then find bugs they had missed.
What did the agent find?
The 21 findings span, in depthfirst's words, "components from the TS demuxer to the VP9 decoder". Most are memory-safety errors: code that reads or writes outside the block of memory it was given. Nine have CVE numbers; the other twelve were fixed but had no CVE yet, so the post lists them by its own tracking IDs (DFVULN-116 to DFVULN-127).
Among the twelve without CVEs, the post says the oldest is DFVULN-122, in the RTP MPEG-4 depacketizer, present since 2005. Its list also includes bugs added as recently as 2024 and 2025, so the set is not only old code. The post says the stack overflow from 2003 "sat latent for 23 years", which is longer than the 15 to 20 years in its summary line.
How does the agent work?
depthfirst contrasts a security agent with a coding agent. A coding agent, it says, is usually interactive and aims to write code. A security agent has to start by threat modelling: working out the code's architecture, which parsers and protocol handlers are exposed, and where attacker-controlled input can get in. It then reads that code, following the data as it moves through components, and runs parallel hypotheses.
The part the company stresses is the end of the process. A finding is only reported when the system "confirms the vulnerability by execution" with a concrete input that triggers it, and the post says guardrails stop the agent from inventing missing conditions or flooding reviewers with false positives. (Our explanation: a proof-of-concept input proves the flaw is reachable and triggerable, not that it can be exploited for gain; that needs more work, as the AV1 case below shows. The post does not say how many candidate bugs were dropped before the 21, so we cannot say what the false-positive rate was.)
What does the AV1 example show?
depthfirst picked one finding to show how far a bug can go. In FFmpeg's depacketizer for AV1 video sent over RTP, the network format used for live streams, the code writes the incoming data into a growing buffer and keeps a cursor for the next write position. When the packet contains a tiny "Temporal Delimiter" marker, which the specification says to ignore, the code moved the cursor forward by the size the sender declared but did not allocate matching memory. The next write then lands beyond the end of the buffer, at an offset the attacker picks, with contents the attacker supplies.
In the proof of concept, the cursor starts at 148 while the buffer is 81 bytes (a 17-byte block plus 64 bytes of padding), so the write begins 67 bytes past the end. The post says that spot holds the pointer to the function FFmpeg calls to release the buffer. By overwriting it with the test value 0xdeadbeef, a single 183-byte packet makes the program jump to that address, which is what the post's debugger output shows. In plain terms: the attacker decides where the program runs next, though the post's demonstration only reaches a placeholder address.
The post says a victim only has to run ffmpeg -i rtsp://attacker/stream, and lists media ingest pipelines that fetch user-supplied URLs, surveillance systems pulling RTSP feeds and transcoding services as exposed. The company links the proof-of-concept code from its page.
The $1,000 versus $10,000 comparison, and the claim that each finding is confirmed, come from depthfirst's own post. We have not seen Anthropic's cost figures, the patches or independent reproduction.
Terms in plain English
- Zero-day: a flaw its maker did not know about, so there was no fix when it was found. Here, depthfirst says all 21 were new.
- Heap and stack overflow: writing more data into a block of memory than it can hold, spilling into whatever sits next to it. The heap is memory a program requests as it runs; the stack holds a function's short-lived data. (Our explanation.)
- Proof-of-concept (PoC) input: a specific file or packet that makes the bug happen on demand. It shows the flaw is real, not that it has been used in an attack.
- CVE: a public ID, such as CVE-2026-39214, that lets everyone refer to the same vulnerability.
- Demuxer / depacketizer: FFmpeg code that splits a container file or network stream into its separate audio and video parts.
Where things stand
The post says the nine CVE-numbered issues have been assigned and that the remaining twelve are fixed. It does not say when the fixes shipped or which FFmpeg versions carry them. It frames the work as a measure of its security system's capability, and the page is also a company product post. The date on the page is 2 June 2026; press coverage dated it a few days later.
Sources
- 21 Zero-Days in FFmpeg, depthfirst research blog, 2 June 2026
Sources
Related stories
- Anthropic says plain Claude Code review finds 11 of 21 logic bugs
- Ruby fixes a one-byte heap overflow in string case conversion
- Chrome AI bug finder and fuzzer near tie: 45 vs 37, 25% shared
- Two PHP engine flaws allow remote code execution; fixed 21 Oct
- AI tool finds 100+ crypto-misuse bugs by comparing libraries
- Cloudflare's AI bug-hunting harness cuts 13,841 findings to 7,245
More from AI and Security
- AI agent turns fixed Linux bugs into Android attacks, authors say
- AI tool that turns patches into exploits unaided, Google says
- AI pentest tool traffic up 30x since October, Cloudflare says
- Anthropic says NIST curve seeds came from a clock-seeded RNG
- One extension hijacked five browsers' AI assistants, firm says