Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CVE-2022-32149: golang.org/x/text < 0.3.8 #381

Open
MichaelMcAleer opened this issue Nov 23, 2022 · 3 comments · May be fixed by #391
Open

CVE-2022-32149: golang.org/x/text < 0.3.8 #381

MichaelMcAleer opened this issue Nov 23, 2022 · 3 comments · May be fixed by #391

Comments

@MichaelMcAleer
Copy link

golang.org/x/text versions before 0.3.8 are vulnerable to CVE-2022-32149:

An attacker may cause a denial of service by crafting an Accept-Language header which ParseAcceptLanguage will take significant time to parse.

This was flagged in a Whitesource/Mend vulnerability scan. Please update golang.org/x/text in go.mod to a version equal to or higher than 0.3.8.

https://www.cve.org/CVERecord?id=CVE-2022-32149
https://www.mend.io/vulnerability-database/CVE-2022-32149

@MShekow
Copy link

MShekow commented Jan 9, 2023

From looking at the code, I don't understand why golang.org/x/text is needed at all. It is only used in util.go in a function NeuterAccents() which is never called...

@MShekow
Copy link

MShekow commented Apr 12, 2023

Would be great if this could be addressed :)

@0x4c6565 0x4c6565 linked a pull request May 3, 2023 that will close this issue
@0x4c6565
Copy link

0x4c6565 commented May 3, 2023

@MShekow added #391 to address this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants