# CVE-2021-23351: Denial of Service (DoS)

- Severity: Medium 4.4 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.89%, higher than 80% of CVEs (2026-12-01)
- Published: 2021-03-08T04:45:23.830Z
- Modified: 2026-07-08T06:49:45.606Z
- Also known as: GHSA-fqh4-rh59-xhvf, SNYK-GOLANG-GITHUBCOMPIRESGOPROXYPROTO-1081577
- Weaknesses: CWE-400
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- github.com/pires/go-proxyproto: from unspecified before 0.5.0
- github.com/pires/go-proxyproto (Go): before 0.5.0
- go-proxyproto_project go-proxyproto: before 0.5.0
- fedoraproject fedora: 33; 34

## Every score

- snyk: CVSS:3.1 4.4 Medium `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 4.9 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 4.9 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:N/I:N/A:P`

## References

- <https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMPIRESGOPROXYPROTO-1081577> (third-party-advisory, web)
- <https://github.com/pires/go-proxyproto/pull/71> (patch, third-party-advisory, web)
- <https://github.com/pires/go-proxyproto/issues/69> (third-party-advisory, web)
- <https://github.com/pires/go-proxyproto/commit/7f48261db810703d173f27f3309a808cc2b49b8b> (patch, third-party-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4BNVGJMVI3ZTZ675EFPUHPGXCKCGSX46/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/C36IBVOZXRTWM7MGTRUTOM56P5RR74VU/> (vendor-advisory)
- <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)

## Sources

- CVE List: [CVE-2021-23351](https://www.cve.org/CVERecord?id=CVE-2021-23351), CVE Terms of Use, modified 2024-09-17
- GitHub Advisory Database: [GHSA-fqh4-rh59-xhvf](https://github.com/advisories/GHSA-fqh4-rh59-xhvf), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-23351](https://nvd.nist.gov/vuln/detail/CVE-2021-23351), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-23351 · Whole record: https://cve.day/CVE-2021-23351.json · Rebuilt by cve.day 2026-11-25T22:58:00.173Z
