GO-2022-0592
A maliciously crafted path can cause Get and other query functions to consume excessive amounts of CPU and time.
Not rated yet
Withdrawn May 15, 2024
Go
- Severity
- Not rated yet
- No source has published a CVSS score yet
- Exploit chance (EPSS)
- —
- No score published
- Known exploited
- No
- Not in CISA's catalog
- Weakness
- —
- Not classified
- Fix
1.9.3- Upgrade github.com/tidwall/gjson to this version or later
Description
A maliciously crafted path can cause Get and other query functions to consume excessive amounts of CPU and time.
Affected versions
Go
| Package | Vulnerable | Fixed in |
|---|---|---|
| github.com/tidwall/gjson | < 1.9.3 |
1.9.3 |
How to fix
Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.
github.com/tidwall/gjson Go → 1.9.3
- go
go get github.com/tidwall/gjson@v1.9.3 && go mod tidy
References
Fixes and patches
Other links
Timeline
- Published
- Last updated by the source
- Withdrawn
Related advisories
| Advisory | Severity | Why it's related |
|---|---|---|
| GHSA-ppj4-34rq-v8j9 Duplicate Advisory: ReDoS via crafted JSON input in GJSON | High | Also affects github.com/tidwall/gjson |
| GHSA-p64j-r5f4-pwwx Improper Validation of Array Index in GJSON | High | Also affects github.com/tidwall/gjson |
| GHSA-wjm3-fq3r-5x46 github.com/tidwall/gjson is vulnerable to Denial of service | High | Also affects github.com/tidwall/gjson |
| GHSA-w942-gw6m-p62c Denial of service in GJSON | High | Also affects github.com/tidwall/gjson |
MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.
Check your repos with MergeHarbor