depthfirst's AI agent finds 21 new FFmpeg bugs for about $1k

In short

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

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

Sources

Related stories

More from AI and Security

All stories from AI and Security