CVE-2021-23351

Denial of Service (DoS)

MEDIUM
4.9
CVSS Score
Published: March 8, 2021 at 04:45 AM UTC
Updated: June 17, 2026 at 03:38 AM UTC
2 products affected across 2 vendorsFedoraGo Proxyproto

Using github.com/pires/go-proxyproto by N/A?

Get instant alerts when new vulnerabilities affect github.com/pires/go-proxyproto - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM4.9
Exploit prediction
EPSS 2%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 0.5.0
Affected range stops below 0.5.0, so it looks safe — our inference, not a vendor statement

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
HIGH
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card