CVE-2021-23351 Details
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.
A denial-of-service vulnerability has been identified in the Pires Go-Proxyproto package, specifically in versions prior to 0.5.0. The issue arises in the parseVersion1() function, where the default bufio.Reader, wrapping a net.Conn, reads data from the connection until a newline is encountered. The absence of implemented limits allows a maliciously crafted V1 header to be used, potentially exhausting memory in a server process that utilizes this package. This exploitation can be achieved by sending a stream that begins with 'PROXY' and continues with data lacking a newline, causing the target to stop acknowledging. While the risk is minimal since only trusted sources should send proxy protocol headers, it remains a security concern that needs addressing.
Users can upgrade to Pires Go-Proxyproto version 0.5.0 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| NVD-CWE-noinfo | Insufficient Information to Classify Weakness | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| go-proxyproto project go-proxyproto | < 0.5.0 |
CPE
Remediation
| |
| fedoraproject fedora | 33 34 |
CPE
Remediation
| |
Change History
8 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Nov 7, 2023 | CVE Modified | [email protected] |
| Mar 23, 2021 | Modified Analysis | [email protected] |
| Mar 19, 2021 | CVE Modified | [email protected] |
| Mar 17, 2021 | CVE Modified | [email protected] |
| Mar 11, 2021 | Initial Analysis | [email protected] |