{"id":"EUVD-2021-1065","enisaUuid":"f3976287-0cbd-3f1b-b29d-527e49668542","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.","datePublished":"Mar 8, 2021, 4:45:23 AM","dateUpdated":"Sep 17, 2024, 1:31:07 AM","baseScore":4.4,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H","references":"https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMPIRESGOPROXYPROTO-1081577\nhttps://github.com/pires/go-proxyproto/pull/71\nhttps://github.com/pires/go-proxyproto/issues/69\nhttps://github.com/pires/go-proxyproto/commit/7f48261db810703d173f27f3309a808cc2b49b8b\nhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4BNVGJMVI3ZTZ675EFPUHPGXCKCGSX46/\nhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/C36IBVOZXRTWM7MGTRUTOM56P5RR74VU/\n","aliases":"CVE-2021-23351\nGHSA-fqh4-rh59-xhvf\n","assigner":"snyk","epss":1.87,"enisaIdProduct":[{"id":"a8f94e4e-4e68-3d6d-9147-f315dc24d063","product":{"name":"github.com/pires/go-proxyproto","vendor":{"name":"n/a"}},"product_version":"unspecified \u003c0.5.0"}],"enisaIdVendor":[{"id":"70dc7084-f5c5-3866-b97a-d4dbd8d1f275","vendor":{"name":"n/a"}}],"enisaIdVulnerability":[{"id":"3e86d9ba-e368-32a2-903b-0033f531cd44","vulnerability":{"id":"CVE-2021-23351","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.","datePublished":"Mar 8, 2021, 4:45:23 AM","dateUpdated":"Sep 17, 2024, 1:31:07 AM","status":"PUBLISHED","baseScore":4.4,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H","references":"https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMPIRESGOPROXYPROTO-1081577\nhttps://github.com/pires/go-proxyproto/pull/71\nhttps://github.com/pires/go-proxyproto/issues/69\nhttps://github.com/pires/go-proxyproto/commit/7f48261db810703d173f27f3309a808cc2b49b8b\nhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4BNVGJMVI3ZTZ675EFPUHPGXCKCGSX46/\nhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/C36IBVOZXRTWM7MGTRUTOM56P5RR74VU/\n","enisa_id":"EUVD-2021-1065\n","assigner":"snyk","epss":1.87,"dataProcessed":"Nov 24, 2026, 7:19:26 AM","vulnerabilityProduct":[{"id":"82f87dfa-bffc-3059-bcf7-2662c63c2f7f","product":{"name":"github.com/pires/go-proxyproto","vendor":{"name":"n/a"}},"product_version":"unspecified \u003c0.5.0"}],"vulnerabilityVendor":[{"id":"8f1072e6-1f2f-39b7-922e-238dd478e88f","vendor":{"name":"n/a"}}]}},{"id":"aa45143d-a1d5-3aa2-8392-3e41a5a68dd3","vulnerability":{"id":"GHSA-fqh4-rh59-xhvf","description":"github.com/pires/go-proxyproto denial of service vulnerability","datePublished":"May 18, 2021, 9:07:43 PM","dateUpdated":"Sep 14, 2023, 7:22:34 PM","baseScore":null,"references":"https://nvd.nist.gov/vuln/detail/CVE-2021-23351\nhttps://github.com/pires/go-proxyproto/issues/69\nhttps://github.com/pires/go-proxyproto/pull/71\nhttps://github.com/pires/go-proxyproto/commit/7f48261db810703d173f27f3309a808cc2b49b8b\nhttps://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4BNVGJMVI3ZTZ675EFPUHPGXCKCGSX46\nhttps://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/C36IBVOZXRTWM7MGTRUTOM56P5RR74VU\nhttps://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMPIRESGOPROXYPROTO-1081577\n","enisa_id":"EUVD-2021-1065\n","aliases":"CVE-2021-23351\nGHSA-fqh4-rh59-xhvf\n","epss":0.0,"dataProcessed":"Nov 22, 2026, 2:06:15 AM","vulnerabilityProduct":[],"vulnerabilityVendor":[]}}],"enisaIdAdvisory":[]}