
CVE catalog
CVE-2021-23351
golang-github-pires-go-proxyproto: CVE-2021-23351
- Severity
- Medium · CVSS 4.4
CVSS: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.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | golang-github-pires-go-proxyproto | sid | 0.11.0-1 | fixed |
| Debian | golang-github-pires-go-proxyproto | forky | 0.11.0-1 | fixed |
| Debian | golang-github-pires-go-proxyproto | trixie | 0.7.0-1 | fixed |
| Debian | golang-github-pires-go-proxyproto | bookworm | 0.4.2-3 | fixed |
| Ubuntu | golang-github-pires-go-proxyproto | 22.04 | 0.4.2-1 | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | golang-github-pires-go-proxyproto | source | sid | 0.4.2-1 | not yet assigned | Not reported | [985025] |
| Debian | golang-github-pires-go-proxyproto | source | forky | 0.4.2-1 | not yet assigned | Not reported | [985025] |
| Debian | golang-github-pires-go-proxyproto | source | trixie | 0.4.2-1 | not yet assigned | Not reported | [985025] |
| Debian | golang-github-pires-go-proxyproto | source | bookworm | 0.4.2-1 | not yet assigned | Not reported | [985025] |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
Source package: [golang-github-pires-go-proxyproto]
Details (2)
0.4.2-3· all · bookwormFixed · Fixed:
0.4.2-1dsa · golang-github-pires-go-proxyproto · debian · bookworm; dsa · golang-github-pires-go-proxyproto · debian · 12
0.4.2-3· all · bookwormFixed · Fixed:
0.4.2-1dsa · 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 · trixieFixed · Fixed:
0.4.2-1dsa · golang-github-pires-go-proxyproto · debian · 13
0.7.0-1· all · trixieFixed · Fixed:
0.4.2-1dsa · golang-github-pires-go-proxyproto · debian · 13
0.11.0-1~bpo13+1· all · trixie-backportsFixed · Fixed:
0.4.2-1dsa · golang-github-pires-go-proxyproto · debian · 13
0.11.0-1~bpo13+1· all · trixie-backportsFixed · Fixed:
0.4.2-1dsa · golang-github-pires-go-proxyproto · debian · 13
Observed:
References
- [https://osv.dev/vulnerability/DEBIAN-CVE-2021-23351]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2021-23351]
- [https://security-tracker.debian.org/tracker/CVE-2021-23351]
- [https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-23351.json]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]