CVEfocus › CVE database › CVE-2021-23351

CVE-2021-23351Denial of Service (DoS)

CVSS 4.4 MediumEPSS 1.9% (higher than 80% of CVEs)Published 2021-03-08Updated 2024-09-17Assigner: snyk

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.

What to do

Fixed builds are available from Debian, Go: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
1Fix pending
3Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04golang-github-pires-go-proxyprotoNot affected
vulnerable_code_not_present
Ubuntu 25.10golang-github-pires-go-proxyprotoNot affected
vulnerable_code_not_present
Ubuntu 24.04golang-github-pires-go-proxyprotoNot affected
vulnerable_code_not_present
Ubuntu 22.04golang-github-pires-go-proxyprotoFix pendingUBUNTU-CVE-2021-23351
Debian 14golang-github-pires-go-proxyprotoFixed0.4.2-1DEBIAN-CVE-2021-23351
Debian 13golang-github-pires-go-proxyprotoFixed0.4.2-1DEBIAN-CVE-2021-23351
Debian 12golang-github-pires-go-proxyprotoFixed0.4.2-1DEBIAN-CVE-2021-23351
Go librarygithub.com/pires/go-proxyprotoFixed0.5.0GHSA-fqh4-rh59-xhvf

What the vendor says

As published in the CVE record by snyk, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.