CVE-2021-23351

Denial of Service (DoS)

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.

4.4
CVSS
Severity: Medium
CVSS 3.1 •
CVSS 2.0 •
EPSS 1.34% Top 25%
Vendor Advisory fedoraproject.org Vendor Advisory fedoraproject.org
Affected: n/a github.com/pires/go-proxyproto
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2021-23351?
CVE-2021-23351 has been scored as a medium severity vulnerability.
How to fix CVE-2021-23351?
To fix CVE-2021-23351, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2021-23351 being actively exploited in the wild?
It is possible that CVE-2021-23351 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~1% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2021-23351?
CVE-2021-23351 affects n/a github.com/pires/go-proxyproto.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.