CVE-2021-23351
Summary
| CVE | CVE-2021-23351 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2021-03-08 05:15:00 UTC |
| Updated | 2023-11-07 03:30:00 UTC |
| Description | The package github.com/pires/go-proxyproto before 0.5.0 are vulnerable to Denial of Service (DoS) via the parseVersion1() function. The reader in this package is a default bufio.Reader wrapping a net.Conn. It will read from the connection until it finds a newline. Since no limits are implemented in the code, a deliberately malformed V1 header could be used to exhaust memory in a server process using this code - and create a DoS. This can be exploited by sending a stream starting with PROXY and continuing to send data (which does not contain a newline) until the target stops acknowledging. The risk here is small, because only trusted sources should be allowed to send proxy protocol headers. |
Risk And Classification
Problem Types: NVD-CWE-noinfo
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Operating System | Fedoraproject | Fedora | 33 | All | All | All |
| Operating System | Fedoraproject | Fedora | 34 | All | All | All |
| Application | Go-proxyproto Project | Go-proxyproto | All | All | All | All |
| Application | Go-proxyproto Project | Go-proxyproto | All | All | All | All |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| [SECURITY] Fedora 33 Update: golang-github-pires-proxyproto-0.5.0-1.fc33 - package-announce - Fedora Mailing-Lists | lists.fedoraproject.org | ||
| tests and fixes for issue #69 by isedev · Pull Request #71 · pires/go-proxyproto · GitHub | MISC | github.com | Patch, Third Party Advisory |
| [SECURITY] Fedora 34 Update: golang-github-pires-proxyproto-0.5.0-1.fc34 - package-announce - Fedora Mailing-Lists | lists.fedoraproject.org | ||
| [SECURITY] Fedora 34 Update: golang-github-pires-proxyproto-0.5.0-1.fc34 - package-announce - Fedora Mailing-Lists | FEDORA | lists.fedoraproject.org | |
| parseVersion1() is not secure · Issue #69 · pires/go-proxyproto · GitHub | MISC | github.com | Third Party Advisory |
| Denial of Service (DoS) in github.com/pires/go-proxyproto | Snyk | MISC | snyk.io | Third Party Advisory |
| [SECURITY] Fedora 33 Update: golang-github-pires-proxyproto-0.5.0-1.fc33 - package-announce - Fedora Mailing-Lists | FEDORA | lists.fedoraproject.org | |
| Merge pull request #71 from isedev/feature/issue-69-tests · pires/go-proxyproto@7f48261 · GitHub | MISC | github.com | Patch, Third Party Advisory |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
LEGACY: Iestyn Elfick
Legacy QID Mappings
- 180466 Debian Security Update for golang-github-pires-go-proxyproto (CVE-2021-23351)
- 281518 Fedora Security Update for golang (FEDORA-2021-f5fcd9b0c1)
- 281519 Fedora Security Update for golang (FEDORA-2021-e01c1fe4cc)
- 982549 Go (go) Security Update for github.com/pires/go-proxyproto (GHSA-fqh4-rh59-xhvf)