CVE-2026-56852

Infinite loop on invalid input in golang.org/x/text

Published Jul 21, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
A norm.Iter can enter an infinite loop when handling input containing invalid UTF-8 bytes.

Analysis

AI-generated

Technical impact

A norm.Iter in golang.org/x/text can become trapped in an endless loop when processing input that contains invalid UTF‑8 bytes. This reflects deficiencies in the library's handling of invalid input, corresponding to CWE‑835 (Infinite Loop). The infinite loop consumes CPU cycles and can tie up a process, effectively denying service until the process is terminated or the system is rebooted. No escalation to remote code execution or data exfiltration is described.

Affected Systems

The vulnerability affects the Unicode normalization component (golang.org/x/text/unicode/norm) of the Go text library. No specific version information is available in the advisory.

Risk and Exploitability

With a CVSS score of 7.5, this vulnerability is classified as high severity. The EPSS score indicates that the likelihood of exploitation is very low (<1 %). The vulnerability is not listed in the CISA KEV catalog. Attackers would need to supply crafted input to a consumer of the norm.Iter routine. If the consuming application accepts user data that is not validated for proper UTF‑8, the infinite loop could be triggered, leading to a denial‑of‑service condition.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Validate all incoming data for proper UTF‑8 before passing it to golang.org/x/text:unicode/norm
  • Implement timeouts or resource limits around calls to norm.Iter to prevent unbounded CPU usage
  • Periodically check the golang.org/x/text repository or vendor announcements for a patched release, and upgrade as soon as one becomes available

Generated by OpenCVE AI on August 4, 2026 at 17:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-400
Type Values Removed Values Added
Weaknesses CWE-400
Type Values Removed Values Added
First Time appeared Golang
Golang text
Vendors & Products Golang
Golang text
Type Values Removed Values Added
Weaknesses CWE-835
Metrics cvssV3_1

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

ssvc

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

Type Values Removed Values Added
Description A norm.Iter can enter an infinite loop when handling input containing invalid UTF-8 bytes.
Title Infinite loop on invalid input in golang.org/x/text
References
Weaknesses
  • CWE-835

    Loop with Unreachable Exit Condition ('Infinite Loop')

Sources

Status
PUBLISHED
Assigner
Go
Published
Updated
Aug 10, 2026, 10:57 PM
Reserved
Jun 23, 2026, 3:10 PM
Status
Deferred
Published
Jul 21, 2026, 8:17 PM
Modified
Oct 24, 2026, 7:10 PM