CVE-2026-56851

Panic parsing crafted input in x/text/secure/precis in golang.org/x/text

Published Oct 7, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
The Nickname profile can panic with an out-of-bounds slice error when transforming crafted input into a short destination buffer.

Analysis

AI-generated

Technical impact

The Nickname profile in golang.org/x/text/secure/precis contains an out-of-bounds slice error that triggers a panic when a crafted input is processed into a short destination buffer. This panic immediately terminates the calling goroutine and can bring down the entire application or service that relies on the library. Because the flaw does not enable arbitrary code execution or persistent data tampering, the primary damage is availability loss to users who depend on the affected functionality.

Affected Systems

Any software that imports golang.org/x/text and calls the Nickname profile function is at risk. The fix is available in updated releases of golang.org/x/text, yet the version range for vulnerability is not explicitly stated, so deployments using the current unpatched implementation should be considered vulnerable until a patched version is installed.

Risk and Exploitability

The CVSS score of 7.5 signifies a high potential impact on availability. The EPSS score of less than 1% (approximately 0.155%) indicates that the probability of exploitation in the wild is very low. The vulnerability requires an attacker to supply carefully crafted input to the Nickname profile function; no privileged access is needed. Therefore, although a successful exploitation would cause a denial of service, the overall risk is moderate because the likelihood of exploitation is scarce and the vulnerability is not currently listed in CISA’s KEV catalog.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade golang.org/x/text to a release that incorporates the patched Nickname profile implementation.
  • Validate all input before invoking the Nickname profile, ensuring that the destination buffer is large enough for the transformation and that malformed data is rejected or sanitized.
  • Wrap calls to the Nickname profile in a defer recover block so that unexpected panics do not crash the entire service.
  • Check the golang.org/x/text project release notes or security advisories for additional guidance when a patch becomes available.

Generated by OpenCVE AI on October 8, 2026 at 20: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 text
Vendors & Products Golang
Golang text
Type Values Removed Values Added
Weaknesses CWE-788
Type Values Removed Values Added
Weaknesses CWE-787
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
Weaknesses CWE-788
Type Values Removed Values Added
Description The Nickname profile can panic with an out-of-bounds slice error when transforming crafted input into a short destination buffer.
Title Panic parsing crafted input in x/text/secure/precis in golang.org/x/text
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Go
Published
Updated
Oct 8, 2026, 1:49 PM
Reserved
Jun 23, 2026, 3:10 PM
Status
Deferred
Published
Oct 7, 2026, 6:17 PM
Modified
Oct 8, 2026, 9:35 PM
Severity
Important
Public date
Oct 7, 2026, 5:46 PM