Anthropic says plain Claude Code review finds 11 of 21 logic bugs

In short

11 of 21 bugs rediscovered blind by agentic code review (Claude Mythos 5); 0 of 21 blind, for LLM-driven fuzzing and symbolic execution; 1 to 15 blind rediscoveries, from Claude Sonnet 4.5 (1) to the Claude Mythos models (11 to 15); 316 unique bugs found across all runs, in outdated copies of the targets

What is a logic bug, and why do tools miss it?

The post draws the line this way. A memory bug, such as reading memory that should not be read, is wrong in any program, so general tools can spot it. Sanitizers, for example, watch a running program and flag invalid memory access. Anthropic calls such automatic checks "bug oracles": something that can say "this behaviour is wrong" without knowing what the program is for.

A logic bug breaks an unwritten rule of the specific program, which the post calls an invariant. Because the rule is specific and usually implicit, no general oracle exists. The post says finding these bugs mostly relies on human code review, which does not scale to large codebases. Its argument is that a language model can read the code, infer the intent and test its own guesses.

The test

The team collected 21 logic bugs from the change history of four open-source projects, all since patched: SQLite (9), zstd (3), brotli (1) and image-png (8), disclosed between 2016 and 2026.

The post notes that the grader does not check that the model understood the bug, only that its input reached the patched code path. It says the other results suggest that assumption generally holds.

Four techniques, one result

All four ran with Claude Mythos 5 (the model for the first experiment):

In the blind setting, agentic code review rediscovered 11 of 21. Fuzzing and symbolic execution scored zero unless told what to find. Given the invariant, the post says agentic code review and the proof method each found 20 to 21 of 21, and symbolic execution found 13. A variant of fuzzing that was also given control over seeds and harnesses rediscovered 15.

Anthropic adds a caveat on those informed results: the symbolic execution engine confirmed only two bugs and added nothing beyond what the LLM had already found while reading the source. The same held for the fuzzing variant: all 15 came from the LLM spotting the bug and forcing the fuzzer to it. The post blames the pipelines' rigid structure and the limits of the underlying tools: fuzzers can only reach what the harness exposes, and symbolic execution is limited by fixed strategies and solver heuristics.

Newer models do better

For agentic review in the blind setting, the post reports a steady rise across model generations:

Outside the 21 benchmark bugs, the post says Mythos models found 54 to 241 verified bugs, against 17 to 18 for the Claude 4.5 generation. Claude Mythos 5.2 found 216 logic bugs out of 241; Claude Mythos Preview found 95 out of 118. All generations found a similar number of "specification conformance" bugs, so the gain is in logic bugs. Anthropic reads this as better hypothesis-forming: in the informed setting the testing step was easy (20 to 21 of 21), so the hard part is guessing the rule from the code alone.

Across every technique and model the runs found 316 unique bugs in the outdated copies of the targets. Anthropic says 189 are already fixed or known, and it is reporting the other 127 to maintainers.

Did the models just remember the bugs? Anthropic checked by asking each model about the bugs without showing code. Claude 4.5 models remembered none. Claude Opus 5 and later remembered 8 to 10 of the 10 bugs made public between 2016 and 2024, and at most one of the 11 newer ones. On the nine bugs no model remembers, Claude 4.5 models and Sonnet 5 rediscovered zero to one, and Opus 5 and later two to five. The post adds that remembering a bug is neither necessary nor sufficient: Opus 4.5 rediscovered 4 of the 10 older bugs without remembering any. The post says the first experiment is less exposed to memorisation, since all four techniques use the same model.

New bugs in real software

The post describes four findings that were not public when found.

What Anthropic recommends

Defenders should first try agentic code review and informal correctness proofs on their own code before investing in specialised tooling. The post expects the share of logic bugs found without human help to keep growing, while saying even recent models are limited in producing useful invariants and benefit from human assistance.

Reading the result

Terms in plain English

Where things stand

Anthropic is reporting the remaining 127 non-benchmark bugs to maintainers, and says the eBPF bugs are being patched. It says the trend suggests future models will find logic bugs fully autonomously. We did not read the chart data behind the figures or have access to the benchmark.

Official channels of Anthropic: Website · LinkedIn · X · YouTube

Sources

Sources

Related stories

More from AI and Security

All stories from AI and Security