Found 1 critical and 4 high vulnerabilities in kube-state-metrics:v2.8.2

27 views
Skip to first unread message

Abdullah, Mohammad

unread,
May 17, 2023, 12:45:52 AM5/17/23
to kubernetes-se...@googlegroups.com, Mohan, Mano

Hi All,

 

Find below the 4 high and 1 critical vulnerability found in kube-state-metrics:v2.8.2 image. Please provide an ETA for the same

 

Severity: High

Component: github.com/emicklei/go-restful/v...@v3.9.0

Description: github.com/emicklei/go-restful/v3 module prior to v3.10.0 is vulnerable to Authentication Bypass by Primary Weakness. There is an inconsistency in how go-restful parses URL paths. This inconsistency could lead to several security check bypass in a complex system.

CVSS: 7.5

Key: PRISMA-2022-0227

Status: fixed in v3.10.0

 


Severity: High

Component: g...@1.19.7

Description: HTTP and MIME header parsing can allocate large amounts of memory, even when parsing small inputs, potentially leading to a denial of service. Certain unusual patterns of input data can cause the common function used to parse HTTP and MIME headers to allocate substantially more memory than required to hold the parsed headers. An attacker can exploit this behavior to cause an HTTP server to allocate large amounts of memory from a small request, potentially leading to memory exhaustion and a denial of service. With fix, header parsing now correctly allocates only the memory required to hold parsed headers.

CVSS: 7.5

Key: CVE-2023-24534

Status: fixed in 1.20.3, 1.19.8

 


Severity: High

Component: g...@1.19.7

Description: Calling any of the Parse functions on Go source code which contains //line directives with very large line numbers can cause an infinite loop due to integer overflow.

CVSS: 7.5

Key: CVE-2023-24537

Status: fixed in 1.20.3, 1.19.8

 


Severity: High

Component: g...@1.19.7

Description: Multipart form parsing can consume large amounts of CPU and memory when processing form inputs containing very large numbers of parts. This stems from several causes: 1. mime/multipart.Reader.ReadForm limits the total memory a parsed multipart form can consume. ReadForm can undercount the amount of memory consumed, leading it to accept larger inputs than intended. 2. Limiting total memory does not account for increased pressure on the garbage collector from large numbers of small allocations in forms with many parts. 3. ReadForm can allocate a large number of short-lived buffers, further increasing pressure on the garbage collector. The combination of these factors can permit an attacker to cause an program that parses multipart forms to consume large amounts of CPU and memory, potentially resulting in a denial of service. This affects programs that use mime/multipart.Reader.ReadForm, as well as form parsing in the net/http package with the Request methods FormFile, FormValue, ParseMultipartForm, and PostFormValue. With fix, ReadForm now does a better job of estimating the memory consumption of parsed forms, and performs many fewer short-lived allocations. In addition, the fixed mime/multipart.Reader imposes the following limits on the size of parsed forms: 1. Forms parsed with ReadForm may contain no more than 1000 parts. This limit may be adjusted with the environment variabl.

CVSS: 7.5

Key: CVE-2023-24536

Status: fixed in 1.20.3, 1.19.8

 


Severity: Critical

Component: g...@1.19.7

Description: Templates do not properly consider backticks (`) as Javascript string delimiters, and do not escape them as expected. Backticks are used, since ES6, for JS template literals. If a template contains a Go template action within a Javascript template literal, the contents of the action can be used to terminate the literal, injecting arbitrary Javascript code into the Go template. As ES6 template literals are rather complex, and themselves can do string interpolation, the decision was made to simply disallow Go template actions from being used inside of them (e.g. \var a = {{.}}), since there is no obviously safe way to allow this behavior. This takes the same approach as github.com/google/safehtml. With fix, Template.Parse returns an Error when it encounters templates like this, with an ErrorCode of value 12. This ErrorCode is currently unexported, but will be exported in the release of Go 1.21. Users who rely on the previous behavior can re-enable it using the GODEBUG flag jstmpllitinterp=1, with the caveat that backticks will now be escaped. This should be used with caution.

CVSS: 9.8

Key: CVE-2023-24538

Status: fixed in 1.20.3, 1.19.8

 

 

Thanks and Regards,

Abdullah Mohammad.

Reply all
Reply to author
Forward
0 new messages