HIGH 7.5 Go

golang.org/x/text/language Out-of-bounds Read vulnerability

GHSA-ppp9-7jff-5vj2 · CVE-2021-38561 · GO-2021-0113

Published · Modified

AI SAST

Find this class of vulnerability in your own code

Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.

Description

golang.org/x/text/language in golang.org/x/text before 0.3.7 can panic with an out-of-bounds read during BCP 47 language tag parsing. Index calculation is mishandled. If parsing untrusted user input, this can be used as a vector for a denial-of-service attack.

Ready to move

Start Securing

Free, no credit card | First findings in minutes