Vulnerability Details : CVE-2021-23351
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.
Vulnerability category: Denial of service
Products affected by CVE-2021-23351
- cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*
- cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
- cpe:2.3:a:go-proxyproto_project:go-proxyproto:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2021-23351
1.35%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 78 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2021-23351
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
4.0
|
MEDIUM | AV:N/AC:L/Au:S/C:N/I:N/A:P |
8.0
|
2.9
|
NIST | |
4.9
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H |
1.2
|
3.6
|
NIST | |
4.4
|
MEDIUM | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H |
0.7
|
3.6
|
Snyk |
References for CVE-2021-23351
-
https://github.com/pires/go-proxyproto/commit/7f48261db810703d173f27f3309a808cc2b49b8b
Merge pull request #71 from isedev/feature/issue-69-tests · pires/go-proxyproto@7f48261 · GitHubPatch;Third Party Advisory
-
https://github.com/pires/go-proxyproto/issues/69
parseVersion1() is not secure · Issue #69 · pires/go-proxyproto · GitHubThird Party Advisory
-
https://github.com/pires/go-proxyproto/pull/71
tests and fixes for issue #69 by isedev · Pull Request #71 · pires/go-proxyproto · GitHubPatch;Third Party Advisory
-
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/C36IBVOZXRTWM7MGTRUTOM56P5RR74VU/
[SECURITY] Fedora 34 Update: golang-github-pires-proxyproto-0.5.0-1.fc34 - package-announce - Fedora Mailing-ListsMailing List;Third Party Advisory
-
https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMPIRESGOPROXYPROTO-1081577
Denial of Service (DoS) in github.com/pires/go-proxyproto | SnykThird Party Advisory
-
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4BNVGJMVI3ZTZ675EFPUHPGXCKCGSX46/
[SECURITY] Fedora 33 Update: golang-github-pires-proxyproto-0.5.0-1.fc33 - package-announce - Fedora Mailing-ListsMailing List;Third Party Advisory
Jump to