Security Vulnerability Report
中文
CVE-2026-27143 CVSS 9.8 CRITICAL

CVE-2026-27143

Published: 2026-04-08 02:16:03
Last Modified: 2026-04-16 19:20:02

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.

CVSS Details

CVSS Score
9.8
Severity
CRITICAL
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:golang:go:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:golang:go:*:*:*:*:*:*:*:* - VULNERABLE
Go < 1.22.0 (假设版本)
Go 1.21.x (假设版本)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
package main import ( "fmt" ) // PoC for CVE-2026-27143: Induction Variable Arithmetic Overflow // This code demonstrates a pattern that may trigger the compiler bug // where bounds checks are incorrectly omitted due to arithmetic on induction variables. func main() { data := make([]byte, 10) // A loop where the induction variable 'i' is used in arithmetic // that might lead to underflow/overflow if not strictly checked. for i := 0; i < 10; i++ { // Simulate arithmetic operation on induction variable // Compiler might fail to check that (i - 10) is negative idx := i - 10 // If the compiler optimization incorrectly assumes 'idx' is safe, // this line will cause an out-of-bounds write/read at runtime. // In a real exploit, this leads to memory corruption. if idx >= 0 && idx < 10 { // Manual check to prevent panic in safe run, // but vulnerable compiler might skip this check internally data[idx] = 0x41 } } fmt.Println("PoC execution completed.") }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-27143", "sourceIdentifier": "[email protected]", "published": "2026-04-08T02:16:03.017", "lastModified": "2026-04-16T19:20:02.250", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "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."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}, {"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "NVD-CWE-Other"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*", "versionEndExcluding": "1.25.9", "matchCriteriaId": "C6C9C072-9817-402D-877F-F83584B07017"}, {"vulnerable": true, "criteria": "cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*", "versionStartIncluding": "1.26.0", "versionEndExcluding": "1.26.2", "matchCriteriaId": "39FE9BAF-55E9-43AA-B14E-239E7EF1D65D"}]}]}], "references": [{"url": "https://go.dev/cl/763765", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://go.dev/issue/78333", "source": "[email protected]", "tags": ["Issue Tracking"]}, {"url": "https://groups.google.com/g/golang-announce/c/0uYbvbPZRWU", "source": "[email protected]", "tags": ["Release Notes", "Mailing List"]}, {"url": "https://pkg.go.dev/vuln/GO-2026-4868", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}