{"id":"CVE-2021-23351","published":"2021-03-08T04:45:23Z","modified":"2024-09-17T01:31:07Z","title":"Denial of Service (DoS)","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01871,"percentile":0.79877,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMPIRESGOPROXYPROTO-1081577","tags":["x_refsource_MISC"]},{"url":"https://github.com/pires/go-proxyproto/pull/71","tags":["x_refsource_MISC"]},{"url":"https://github.com/pires/go-proxyproto/issues/69","tags":["x_refsource_MISC"]},{"url":"https://github.com/pires/go-proxyproto/commit/7f48261db810703d173f27f3309a808cc2b49b8b","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4BNVGJMVI3ZTZ675EFPUHPGXCKCGSX46/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/C36IBVOZXRTWM7MGTRUTOM56P5RR74VU/","tags":["vendor-advisory","x_refsource_FEDORA"]}],"priority":{"score":19.1,"factors":[{"name":"EPSS percentile","points":15.98},{"name":"CVSS severity","points":3.08}]},"affectedVersions":[{"vendor":"n/a","product":"github.com/pires/go-proxyproto","versions":[">= unspecified, < 0.5.0"]}],"affected":[{"ecosystem":"Go","package":"github.com/pires/go-proxyproto","vulnerableRanges":["<0.5.0"],"patched":["0.5.0"],"from":["GHSA-fqh4-rh59-xhvf"],"provenance":"source"}],"summary":{"text":"The flaw is in the parseVersion1() function of the github.com/pires/go-proxyproto Go package before version 0.5.0, where the default bufio.Reader wrapping a net.Conn reads until it finds a newline without any enforced limit. An attacker who can reach the server and has the ability to send proxy protocol headers can send a stream beginning with \"PROXY\" and keep sending data without a newline, exhausting memory in the server process until it stops responding, though the attack is only practical from trusted sources since such headers are normally restricted to them.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:35:20Z"},"euvd":{"id":"EUVD-2021-1065","exploited":false,"provenance":"source"}}