Skip to content

Commit 7e8999e

Browse files
committed
x/vulndb: add reports/GO-2022-0322.yaml for CVE-2022-21698
Fixes #322 Change-Id: I8637bf1ceca5aef9de8e7dddcc584c1cecdf5df4 Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/392756 Run-TryBot: Damien Neil <[email protected]> Reviewed-by: kokoro <[email protected]> Reviewed-by: Tatiana Bradley <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
1 parent 1123a15 commit 7e8999e

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

reports/GO-2022-0322.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
packages:
2+
- module: github.com/prometheus/client_golang
3+
package: github.com/prometheus/client_golang/prometheus/promhttp
4+
symbols:
5+
- sanitizeMethod
6+
derived_symbols:
7+
- Handler
8+
- HandlerFor
9+
- InstrumentHandlerCounter
10+
- InstrumentHandlerDuration
11+
- InstrumentHandlerRequestSize
12+
- InstrumentHandlerResponseSize
13+
- InstrumentHandlerTimeToWriteHeader
14+
- InstrumentMetricHandler
15+
- InstrumentRoundTripperCounter
16+
- InstrumentRoundTripperDuration
17+
- flusherDelegator.Flush
18+
- init
19+
- readerFromDelegator.ReadFrom
20+
- responseWriterDelegator.Write
21+
- responseWriterDelegator.WriteHeader
22+
versions:
23+
- fixed: 1.11.1
24+
vulnerable_at: 1.11.0
25+
description: |
26+
The Prometheus client_golang HTTP server is vulnerable to a denial of
27+
service attack when handling requests with non-standard HTTP methods.
28+
29+
In order to be affected, an instrumented software must use any of
30+
the promhttp.InstrumentHandler* middleware except `RequestsInFlight`;
31+
not filter any specific methods (e.g GET) before middleware;
32+
pass a metric with a "method" label name to a middleware; and not
33+
have any firewall/LB/proxy that filters away requests with unknown
34+
"method".
35+
cves:
36+
- CVE-2022-21698
37+
ghsas:
38+
- GHSA-cg3q-j54f-5p7p

0 commit comments

Comments
 (0)