CVE-2021-23351

Summary

CVECVE-2021-23351
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2021-03-08 05:15:00 UTC
Updated2023-11-07 03:30:00 UTC
DescriptionThe 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.

Risk And Classification

Problem Types: NVD-CWE-noinfo

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Fedoraproject Fedora 33 All All All
Operating System Fedoraproject Fedora 34 All All All
Application Go-proxyproto Project Go-proxyproto All All All All
Application Go-proxyproto Project Go-proxyproto All All All All

References

ReferenceSourceLinkTags
[SECURITY] Fedora 33 Update: golang-github-pires-proxyproto-0.5.0-1.fc33 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
tests and fixes for issue #69 by isedev · Pull Request #71 · pires/go-proxyproto · GitHub MISC github.com Patch, Third Party Advisory
[SECURITY] Fedora 34 Update: golang-github-pires-proxyproto-0.5.0-1.fc34 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
[SECURITY] Fedora 34 Update: golang-github-pires-proxyproto-0.5.0-1.fc34 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
parseVersion1() is not secure · Issue #69 · pires/go-proxyproto · GitHub MISC github.com Third Party Advisory
Denial of Service (DoS) in github.com/pires/go-proxyproto | Snyk MISC snyk.io Third Party Advisory
[SECURITY] Fedora 33 Update: golang-github-pires-proxyproto-0.5.0-1.fc33 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
Merge pull request #71 from isedev/feature/issue-69-tests · pires/go-proxyproto@7f48261 · GitHub MISC github.com Patch, Third Party Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

Discovery Credit

LEGACY: Iestyn Elfick

Legacy QID Mappings

  • 180466 Debian Security Update for golang-github-pires-go-proxyproto (CVE-2021-23351)
  • 281518 Fedora Security Update for golang (FEDORA-2021-f5fcd9b0c1)
  • 281519 Fedora Security Update for golang (FEDORA-2021-e01c1fe4cc)
  • 982549 Go (go) Security Update for github.com/pires/go-proxyproto (GHSA-fqh4-rh59-xhvf)

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report