CVE-2021-23351Denial of Service (DoS)
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.
What to do
Fixed builds are available from Debian, Go: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | golang-github-pires-go-proxyproto | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | golang-github-pires-go-proxyproto | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | golang-github-pires-go-proxyproto | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | golang-github-pires-go-proxyproto | Fix pending | UBUNTU-CVE-2021-23351 | |
| Debian 14 | golang-github-pires-go-proxyproto | Fixed | 0.4.2-1 | DEBIAN-CVE-2021-23351 |
| Debian 13 | golang-github-pires-go-proxyproto | Fixed | 0.4.2-1 | DEBIAN-CVE-2021-23351 |
| Debian 12 | golang-github-pires-go-proxyproto | Fixed | 0.4.2-1 | DEBIAN-CVE-2021-23351 |
| Go library | github.com/pires/go-proxyproto | Fixed | 0.5.0 | GHSA-fqh4-rh59-xhvf |
What the vendor says
As published in the CVE record by snyk, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- github.com/pires/go-proxyproto: affected: unspecified to before 0.5.0; fixed in
0.5.0
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
References
- https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMPIRESGOPROXYPROTO-1081577
- https://github.com/pires/go-proxyproto/pull/71
- https://github.com/pires/go-proxyproto/issues/69
- https://github.com/pires/go-proxyproto/commit/7f48261db810703d173f27f3309a808cc2b49b8b
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4BNVGJMVI3ZTZ675EFPUHPGXCKCGSX46/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/C36IBVOZXRTWM7MGTRUTOM56P5RR74VU/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.