Benchmark report · libgit2 ·

libgit2 CVE-2026-53583: one character of logic, missed in all runs

The smallest file and the smallest fix: an inverted comparison. The local model never saw it. It is the clearest example of a bug that pattern matching cannot find.

Bug found (vulnerable file)0 of 3 runs
Patched file clean of the bug3 of 3 runs
False or unrelated findings removed by Opus6 rejected; 2 unrelated kept (unverified)
Local scan time, 6 runs20 minutes on one Mac Studio
Opus cost, 6 runsUSD 1.70 (both passes)

The bug

CVE-2026-53583 in libgit2, one of the vulnerabilities AISLE Research discovered and disclosed. verify_server_cert() inverts a memcmp() result when comparing an IP address host with a certificate's IP SubjectAltName.

  • Class: Improper certificate validation (CWE-295)
  • File: src/libgit2/streams/openssl.c, 764 lines
  • Vulnerable: 607c9229a2a6; fix: c2aa35409ee0

What happened

The vulnerable line compares two IP addresses with an inverted result. There is no memory error and no unusual API, only logic that means the opposite of what it should.

The local model focused on how the code reads the SubjectAltName union before checking its type. Opus confirmed that claim twice and rejected it twice with opposite reasoning. We treat it as not a bug, and it is a useful reminder that a single Opus verdict is not proof.

Everything else the local model kept was rejected, and neither file kept a finding about the fixed comparison.

Run by run

"Raised" are findings the local scan sent to triage, "kept" are the ones local triage believed. Opus then checked every kept finding.

RunVulnerable filePatched file
1Missed. 1 raised, 1 kept; Opus: 0 confirmed, 0 uncertain, 1 rejected1 raised, 1 kept; Opus: 1 confirmed, 0 uncertain, 0 rejected
2Missed. 4 raised, 2 kept; Opus: 1 confirmed, 0 uncertain, 1 rejected4 raised, 1 kept; Opus: 0 confirmed, 0 uncertain, 1 rejected
3Missed. 3 raised, 1 kept; Opus: 0 confirmed, 0 uncertain, 1 rejected3 raised, 2 kept; Opus: 0 confirmed, 0 uncertain, 2 rejected

Kept by local triage: 4 on the vulnerable file and 4 on the patched file over three runs. In a second pass Opus also checked every finding the local triage rejected; it recovered none of the missed bugs.

Takeaway

Inverted logic in security checks needs a model that reasons about intent. Repeated runs also show where the checker itself is unsure.

How we ran it

Same setup as our first benchmark: nano-analyzer with Qwen 3.6 35B A3B running locally on our Mac Studio, 5 triage rounds, three runs per file, then Claude Opus 4.6 as an optional paid second opinion on public code only. The model is never told which bug to expect. Results for all nine applications: the overview.

Questions or raw run data: [email protected].

Request early access