CVE catalog

CVE-2021-23351

golang-github-pires-go-proxyproto: CVE-2021-23351

[CVE catalog]

Severity
Medium · CVSS 4.4CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
1.87% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiangolang-github-pires-go-proxyprotosid0.11.0-1fixed
Debiangolang-github-pires-go-proxyprotoforky0.11.0-1fixed
Debiangolang-github-pires-go-proxyprototrixie0.7.0-1fixed
Debiangolang-github-pires-go-proxyprotobookworm0.4.2-3fixed
Ubuntugolang-github-pires-go-proxyproto22.040.4.2-1vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiangolang-github-pires-go-proxyprotosourcesid0.4.2-1not yet assignedNot reported[985025]
Debiangolang-github-pires-go-proxyprotosourceforky0.4.2-1not yet assignedNot reported[985025]
Debiangolang-github-pires-go-proxyprotosourcetrixie0.4.2-1not yet assignedNot reported[985025]
Debiangolang-github-pires-go-proxyprotosourcebookworm0.4.2-1not yet assignedNot reported[985025]

[Debian bug #985025]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [golang-github-pires-go-proxyproto]

    Details (2)
    • 0.4.2-3 · all · bookworm

      Fixed · Fixed: 0.4.2-1

      dsa · golang-github-pires-go-proxyproto · debian · bookworm; dsa · golang-github-pires-go-proxyproto · debian · 12

    • 0.4.2-3 · all · bookworm

      Fixed · Fixed: 0.4.2-1

      dsa · golang-github-pires-go-proxyproto · debian · bookworm; dsa · golang-github-pires-go-proxyproto · debian · 12

[Debian 13 (Trixie)]

  • Source package: [golang-github-pires-go-proxyproto]

    Details (4)
    • 0.7.0-1 · all · trixie

      Fixed · Fixed: 0.4.2-1

      dsa · golang-github-pires-go-proxyproto · debian · 13

    • 0.7.0-1 · all · trixie

      Fixed · Fixed: 0.4.2-1

      dsa · golang-github-pires-go-proxyproto · debian · 13

    • 0.11.0-1~bpo13+1 · all · trixie-backports

      Fixed · Fixed: 0.4.2-1

      dsa · golang-github-pires-go-proxyproto · debian · 13

    • 0.11.0-1~bpo13+1 · all · trixie-backports

      Fixed · Fixed: 0.4.2-1

      dsa · golang-github-pires-go-proxyproto · debian · 13

Observed:

References