-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
x/text/language: ParseAcceptLanguage takes a long time to parse complex tags #56152
Comments
Change https://go.dev/cl/442235 mentions this issue: |
This is to pick up the fix for golang/go#56152. Signed-off-by: Andrew Mason <andrew@planetscale.com>
This is to pick up the fix for golang/go#56152. Signed-off-by: Andrew Mason <andrew@planetscale.com> Signed-off-by: Andrew Mason <andrew@planetscale.com>
This is to pick up the fix for golang/go#56152. Signed-off-by: Andrew Mason <andrew@planetscale.com>
This is to pick up the fix for golang/go#56152. Signed-off-by: Andrew Mason <andrew@planetscale.com> Signed-off-by: Andrew Mason <andrew@planetscale.com> Co-authored-by: Andrew Mason <andrew@planetscale.com>
golang/go#56152 causes our `snyk-deps` pre-submit job to complain: https://prow.ci.openshift.org/view/gs/origin-ci-test/pr-logs/pull/openshift_ci-tools/3088/pull-ci-openshift-release-snyk-deps/1580892349003730944 Require a newer version of `golang.org/x/text` by: - adding `golang.org/x/text v0.3.8` to the `require` section of `go.mod` - `go mod tidy && go mod vendor && git add go.* vendor/ && git commit`
This upgrades the golang.org/x/text module to mitigate CVE-2022-32149. The vulnerability was reported by the Trivy scanner. See also https://nvd.nist.gov/vuln/detail/CVE-2022-32149 golang/go#56152
This upgrades the golang.org/x/text module to mitigate CVE-2022-32149. The vulnerability was reported by the Trivy scanner. See also https://nvd.nist.gov/vuln/detail/CVE-2022-32149 golang/go#56152
Ref: golang/go#56152 Signed-off-by: Renuka Fernando <renukapiyumal@gmail.com>
Ref: golang/go#56152 Signed-off-by: Renuka Fernando <renukapiyumal@gmail.com>
Denial of service in golang.org/x/text/language golang/go#56152
Hi Team |
This was fixed in the golang.org/x/text repository. It's not in any particular Go release. I think the first revision of golang.org/x/text with the fix is v0.4.0. |
Ref: golang/go#56152 Signed-off-by: Renuka Fernando <renukapiyumal@gmail.com>
Ref: golang/go#56152 Signed-off-by: Renuka Fernando <renukapiyumal@gmail.com>
yes, it is fixed in golang.org/x/text repository, and it is not in any particular Go release. but there is reference relationship between the go version and x/text version. when i run go mod graph in the src of go(any version), i can see the dependencies like this
the text version was referred in the source code, i think. even if i upgrade the version of the x/text, how can i handle this part? |
Nothing in the Go standard library uses this function, so no versions of Go itself are affected. |
The BCP 47 tag parser has quadratic time complexity due to inherent aspects of its design. Since the parser is, by design, exposed to untrusted user input, this can be leveraged to force a program to consume significant time parsing Accept-Language headers.
This is a PRIVATE issue for CVE-2022-32149, tracked in http://b/238189978 and fixed by http://tg/1565112
/cc @golang/security
The text was updated successfully, but these errors were encountered: