More than half of AI-generated patches are broken

Cybersecurity community left reeling as new research reveals nearly half of AI-generated patches are ineffective

A growing concern in the cybersecurity world has just taken a significant turn for the worse. Research conducted by 1Password has found that more than half of AI-generated patches, designed to fix vulnerabilities and protect systems from attack, are actually broken or introduce new bugs. This alarming discovery highlights the limitations of relying on artificial intelligence (AI) to automate vulnerability remediation.

The study tested two popular commercial models, OpenAI’s ChatGPT 5.5 and Anthropic’s Claude Opus 4.8, against six high-impact vulnerabilities, including the notorious “Copy Fail” kernel flaw that can grant attackers root access to Linux cloud environments. The results were sobering: a success rate of just 47%, meaning nearly half of the AI-generated patches failed to fully remediate the vulnerability without introducing new problems.

According to John Hoodlet and his team, the models often addressed only a subset of vulnerable code paths, added fragile guard code that satisfied tests while failing to address the root cause, or introduced subtle changes in application behavior. This is particularly concerning given the widespread adoption of AI-generated code across various industries.

This isn’t an isolated incident. A separate report from Veracode found similar results, with an average security “pass rate” for AI-generated code hovering around 56%. While newer models like GPT 5.5 showed improvement, more than half of tested models fell between 50-53%, and a significant portion (44%) introduced detectable OWASP Top 10 vulnerabilities into the codebase.

The limitations of AI in cybersecurity patching are multifaceted. According to Tim Jarrett, vice president of product at Veracode, AI tools can lose context over time, hallucinate to fill gaps, or require human intervention to fully address complex vulnerabilities like cross-site scripting. “It’s premature to treat those as anything other than another code change to the codebase that needs to be reviewed and accepted by the team,” Jarrett emphasized.

The Veracode report highlights a pressing concern: with AI agents generating exponentially more code for human defenders to review, some form of automated code review will become necessary. However, this should not be performed by the same automation tool that produced the code, as it can introduce new vulnerabilities or propagate errors.

In conclusion, while AI-generated code shows promise in automating vulnerability remediation, it’s clear that we’re not yet there. The current state of AI in cybersecurity patching is more akin to a ” trust but verify” approach, where human oversight and review are essential to ensure the integrity of our digital systems. As we move forward, it’s crucial to acknowledge these limitations and develop strategies for effectively integrating AI-generated code into our security workflows.


Source: CyberScoop — 2026-08-07