kin-openapi deepObject query decoding repeatedly compiles an invariant regular expression
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| getkin | kin-openapi | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Getkin | Kin-openapi |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-h4r5-mxv5-8mjc | kin-openapi deepObject query decoding repeatedly compiles an invariant regular expression |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.451% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Getkin
Getkin kin-openapi |
|
| Vendors & Products |
Getkin
Getkin kin-openapi |
| Type | Values Removed | Values Added |
|---|---|---|
| References |
| |
| Metrics |
threat_severity
|
threat_severity
|
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| Description | kin-openapi is a Go project for handling OpenAPI files. From 0.145.0 until 0.146.0, openapi3filter repeatedly calls regexp.MustCompile for the same parameter-name regular expression inside the per-query-key loop in urlValuesDecoder.DecodeObject used to decode a deepObject query parameter. An unauthenticated remote client can send an affected endpoint a request containing many unrelated query keys, causing ValidateRequest to perform work and allocations proportional to the attacker-controlled key count for every deepObject parameter. The expression itself is fixed and this is not regular expression denial of service; the resource consumption comes from loop-invariant recompilation. This issue is fixed in version 0.146.0. | |
| Title | kin-openapi deepObject query decoding repeatedly compiles an invariant regular expression | |
| Weaknesses | CWE-1050 CWE-400 CWE-770 |
|
| References |
| |
| Metrics |
cvssV3_1
|