From discovery to fix: OSS-Fuzz automatically generates security patches with CodeMender
Google combines OSS-Fuzz with Google DeepMind's code security AI Agent CodeMender, so that after OSS-Fuzz discovers a vulnerability, it not only reports the problem but also analyzes the root cause, generates a fix and delivers a patch. When OSS-Fuzz reports a vulnerability, the system hands the crash details and source code context to CodeMender, which explores multiple code paths and hypotheses in parallel to locate the root cause; each patch is verified in an isolated environment to confirm that it compiles cleanly, successfully resolves the crash and does not regress any functional tests. If a repository restricts AI-generated code, Google will comply with that rule and not submit patches at all; during the beta phase, patches are also manually reviewed by Google engineers. This feature currently applies to C/C++ projects in which OSS-Fuzz detects memory safety vulnerabilities; projects already integrated with OSS-Fuzz can receive patches without changing their configuration, and can also opt out in their configuration at any time.