Description (CNA)
Ech0 before 5.0.1 does not impose any size or shape limit on the Accept-Language header processed by its i18n middleware, which runs on every HTTP request. The header is passed unfiltered to go-i18n's NewLocalizer, which internally calls golang.org/x/text/language.ParseAcceptLanguage. The CVE-2022-32149 mitigation in x/text caps '-' characters but not '_' characters, which the parser aliases to '-', allowing quadratic-time parsing to be triggered with a large header (up to Go's default 1 MiB) built from underscore separators. An unauthenticated attacker can send such requests to consume roughly 1.5 seconds of CPU each, and concurrent requests can saturate a multi-core server (denial of service).
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| lin-snow / Ech0 | affected 0 before 5.0.1; unaffected 5.0.1 |
CWE
CWE-400
References
- https://github.com/lin-snow/Ech0/security/advisories/GHSA-mqxv-9rm6-w8qc
- https://www.vulncheck.com/advisories/ech0-before-denial-of-service-via-accept-language
ADP enrichment
No English description supplied.
No references supplied.