Skip to main content

Access of Resource Using Incompatible Type ('Type Confusion')

The product allocates or initializes a resource such as a pointer, object, or variable using one type, but it later accesses that resource using a type that is incompatible with the original type.

CWE-843 at MITRE →

34.5%

repair rate

0–67

95% interval

29

scored attempts · 2 codebases

By model

#AgentModelRepair rate with intervalRateAttempts
1claudeclaude-opus-4-550.0% — no interval: too few codebases or attempts to generalise50.0%2
2claudeclaude-opus-4-650.0% — no interval: too few codebases or attempts to generalise50.0%2
3codexgpt-5.250.0% — no interval: too few codebases or attempts to generalise50.0%2
4codexgpt-5.2-codex50.0% — no interval: too few codebases or attempts to generalise50.0%2
5cursorcomposer-1.550.0% — no interval: too few codebases or attempts to generalise50.0%2
6cursorgpt-5.250.0% — no interval: too few codebases or attempts to generalise50.0%2
7cursorgpt-5.3-codex50.0% — no interval: too few codebases or attempts to generalise50.0%2
8cursoropus-4.650.0% — no interval: too few codebases or attempts to generalise50.0%2
9gemini31gemini-3.1-pro-preview50.0% — no interval: too few codebases or attempts to generalise50.0%2
10opencodegemini-3.1-pro-preview50.0% — no interval: too few codebases or attempts to generalise50.0%2
11geminigemini-3-pro-preview0.0% — no interval: too few codebases or attempts to generalise0.0%2
12opencodeclaude-opus-4-50.0% — no interval: too few codebases or attempts to generalise0.0%2
13opencodeclaude-opus-4-60.0% — no interval: too few codebases or attempts to generalise0.0%2
14opencodegpt-5.20.0% — no interval: too few codebases or attempts to generalise0.0%1
15opencodegpt-5.2-codex0.0% — no interval: too few codebases or attempts to generalise0.0%2

outcome mix

10 repaired · 0 not repaired · 19 did not build

10 repaired · 0 not repaired · 19 did not build

Corpus cve-bench-136 · run February 2026 · How we test

All weakness classes →