CVE-2026-27143

Missing bound checks can lead to memory corruption in safe Go in cmd/compile

Published Apr 8, 2026 CVSS 3.1 · 9.8 Critical EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The flaw arises when the Go compiler fails to correctly bounds‑check induction variables in loops, allowing an out‑of‑range index to be used during compilation. This oversight can corrupt memory inside the compiler at runtime, creating a memory corruption vulnerability. The weakness corresponds to improper bounds checking (CWE‑733).

Affected Systems

The defect is located in the cmd/compile component of the Go toolchain. Any system compiling Go source code with a compiler that contains this flaw, regardless of the specific build or version, is potentially affected. The CNA did not list particular version ranges, so all builds using the vulnerable compiler are at risk.

Risk and Exploitability

The CVSS score of 9.8 indicates a severe, high‑impact flaw, while an EPSS score of < 1% suggests that exploitation is unlikely but still possible. The vulnerability is not in CISA’s KEV catalog. The most likely attack vector is local: an attacker must supply malicious source code to a compilation process running on a system that uses the affected Go toolchain. Because the weakness is in the compiler, the impact remains confined to the compilation environment but can corrupt the compiler’s own memory space.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Go toolchain release that contains the cmd/compile bounds‑check patch.
  • Configure build systems to use a dedicated, isolated environment when compiling untrusted or third‑party source code.
  • Audit and replace any older Go compiler binaries on build servers and CI pipelines.

Generated by OpenCVE AI on April 18, 2026 at 09:32 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Golang
Golang go
Weaknesses NVD-CWE-Other
CPEs cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
Vendors & Products Golang
Golang go
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
First Time appeared Gotoolchain
Gotoolchain cmd/compile
Vendors & Products Gotoolchain
Gotoolchain cmd/compile
Type Values Removed Values Added
Weaknesses CWE-733
References
Metrics threat_severity

None

cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Description 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.
Title Missing bound checks can lead to memory corruption in safe Go in cmd/compile
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Go
Published
Updated
Apr 13, 2026, 6:20 PM
Reserved
Feb 17, 2026, 7:57 PM
Status
Analyzed
Published
Apr 8, 2026, 2:16 AM
Modified
Jul 25, 2026, 11:10 AM
Severity
Moderate
Public date
Apr 8, 2026, 1:06 AM