---
id: CVE-2026-27143
title: >-
  Arithmetic over induction variables in loops were not correctly checked for
  underflow or overflow
summary: >-
  Arithmetic over induction variables in loops were not correctly checked for
  underflow or overflow. As a result, the compiler would allow for invalid
  indexing to occur at runtime, potentially leading to memory corruption.
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
vendor: golang
product: go
affected:
  - go < 1.25.9
  - 'go >= 1.26.0, < 1.26.2'
patched:
  - go 1.26.2
published: '2026-04-08'
updated: '2026-07-25'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-27143'
references:
  - url: 'https://go.dev/cl/763765'
    label: security@golang.org
  - url: 'https://go.dev/issue/78333'
    label: security@golang.org
  - url: 'https://groups.google.com/g/golang-announce/c/0uYbvbPZRWU'
    label: security@golang.org
  - url: 'https://pkg.go.dev/vuln/GO-2026-4868'
    label: security@golang.org
tags:
  - nvd
epss: 0.00661
epssPercentile: 0.49495
ingestedAt: '2026-07-25T23:05:58.516Z'
---

## Overview

Arithmetic over induction variables in loops were not correctly checked for underflow or overflow. As a result, the compiler would allow for invalid indexing to occur at runtime, potentially leading to memory corruption.

## Affected

- `go < 1.25.9`
- `go >= 1.26.0, < 1.26.2`

## Remediation

Upgrade past the affected range:

- `go 1.26.2`
