CVE-2021-23351
MEDIUM 4.9CVSS 3.1github.com/pires/go-proxyproto denial of service vulnerability
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.
- Published
- 8 Mar 2021
- Last modified
- 8 Jul 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-400
- Also known as
- GHSA-fqh4-rh59-xhvfSNYK-GOLANG-GITHUBCOMPIRESGOPROXYPROTO-1081577
- Sources
- NVDJSONOSV GHSA-fqh4-rh59-xhvfJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 4.9 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.9 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | MEDIUM 4.4 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.0 | AV:N/AC:L/Au:S/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | go-proxyproto_project | go-proxyprotocpe:2.3:a:go-proxyproto_project:go-proxyproto:*:*:*:*:*:*:*:* |
< 0.5.0 | 0.5.0 |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:* |
= 33 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* |
= 34 | |
| OSV | Go | github.com/pires/go-proxyproto | < 0.5.0 | 0.5.0 |
References
- https://github.com/pires/go-proxyproto/commit/7f48261db810703d173f27f3309a808cc2b49b8b · Patch, Third Party Advisory, WEB
- https://github.com/pires/go-proxyproto/issues/69 · Third Party Advisory, WEB
- https://github.com/pires/go-proxyproto/pull/71 · Patch, Third Party Advisory, WEB
- 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/
- https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMPIRESGOPROXYPROTO-1081577 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-23351 · ADVISORY
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4BNVGJMVI3ZTZ675EFPUHPGXCKCGSX46 · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/C36IBVOZXRTWM7MGTRUTOM56P5RR74VU · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 8 Mar 2021)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 18 May 2021)