{"data":{"id":"15fdaa51-4baa-496a-8ab4-976173f2dd6d","title":"A “proof” of Fermat’s Last Theorem that fits the margin","summary":"Researchers using GPT-5.6 found a bug in Lean 4's String.Pos.Raw.extract function, where the logical definition returns an empty string but compiled native code returns the whole string, letting a contradiction be built that appears to prove Fermat's Last Theorem. The issue affects all stable Lean versions up to 4.33.1 and is not a kernel soundness flaw. The Lean team fixed the memory-safety problem within about three hours and the semantic mismatch five days after the report.","solution":"The patch is incorporated in v4.34.0-rc1. Validate external Lean proofs by checking #print axioms, since the native_decide axiom adds the compiler to the trusted boundary.","labels":["security","research"],"sourceUrl":"https://blog.trailofbits.com/2026/09/09/a-proof-of-fermats-last-theorem-that-fits-the-margin/","publishedAt":"2026-09-09T11:00:00.000Z","cveId":null,"cweIds":null,"cvssScore":null,"cvssSeverity":null,"severity":"low","attackType":["other"],"issueType":"news","affectedPackages":null,"affectedPackageNames":null,"affectedPackageRefs":null,"affectedVendors":["Anthropic"],"affectedVendorsRaw":["Anthropic","Claude","GPT-5.6","Lean"],"classifierModel":"claude-haiku-5-5","classifierPromptVersion":"v4","summaryPromptVersion":"v2","headline":null,"headlinePromptVersion":null,"cvssVector":null,"attackVector":null,"attackComplexity":null,"privilegesRequired":null,"userInteraction":null,"exploitMaturity":null,"epssScore":null,"epssCheckedAt":null,"kevDateAdded":null,"advisoryAliases":null,"affectedPackagesSource":null,"affectedPackagesCheckedAt":null,"patchAvailable":null,"disclosureDate":"2026-09-09T11:00:00.000Z","fixReleasedAt":null,"daysToFix":null,"fixCheckedAt":null,"capecIds":null,"crossRefCount":0,"attackSophistication":"advanced","impactType":["integrity"],"aiComponentTargeted":null,"llmSpecific":false,"classifierConfidence":0.6,"researchCategory":null,"atlasIds":null}}