CVE-2026-56851: CWE-787: Out-of-bounds Write in golang.org/x/text golang.org/x/text/secure/precis
Description
CVE-2026-56851 is an out-of-bounds write vulnerability in the golang.org/x/text/secure/precis package. Specifically, the Nickname profile can cause a panic due to an out-of-bounds slice error when processing crafted input into a short destination buffer. This issue affects versions prior to 0.41.0.
Affected software
golang.org/x/text
golang.org/x/text/secure/precis
pkg:golang/golang.org/x/text/secure/precisRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability involves an out-of-bounds write (CWE-787) in the Nickname profile of the golang.org/x/text/secure/precis package. When transforming specially crafted input into a destination buffer that is too short, the code can panic due to accessing memory outside the bounds of the slice. The affected versions are all releases before 0.41.0.
Potential Impact
The vulnerability can cause the application to panic, which may lead to denial of service or unexpected termination of processes using the affected package. There is no indication of code execution or data corruption beyond the panic condition in the provided data.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Users should monitor the golang.org/x/text project for updates and apply any official fixes once available. Until then, avoid processing untrusted input with the Nickname profile or implement input validation to prevent crafted inputs that trigger the panic.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Go
- Date Reserved
- 2026-06-23T15:10:49.352Z
- State
- PUBLISHED
Threat ID: 6ac689992cdf04f6566d863e
Added to database: 10/07/2026, 18:04:09 UTC
Last enriched: 10/07/2026, 18:18:31 UTC
Last updated: 10/07/2026, 18:56:10 UTC
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.