CVE-2023-32758
giturlparse (aka git-url-parse) through 1.2.2, as used in Semgrep 1.5.2 through 1.24.1, is vulnerable to ReDoS (Regular Expression Denial of Service) if parsing untrusted URLs.
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (1.03%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
Description
giturlparse (aka git-url-parse) through 1.2.2, as used in Semgrep 1.5.2 through 1.24.1, is vulnerable to ReDoS (Regular Expression Denial of Service) if parsing untrusted URLs. This might be relevant if Semgrep is analyzing an untrusted package (for example, to check whether it accesses any Git repository at an http:// URL), and that package's author placed a ReDoS attack payload in a URL used by the package.
- CVSS 3.1
- 7.5 HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS
- 1.03% probability · 62th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-1333
- Affected
- coala/git-url-parse
- Source
- cve@mitre.org
References
- https://github.com/coala/git-url-parse/blob/master/giturlparse/parser.py#L53Product
- https://github.com/returntocorp/semgrep/pull/7611Issue Tracking, Patch
- https://github.com/returntocorp/semgrep/pull/7943
- https://github.com/returntocorp/semgrep/pull/7955
- https://pypi.org/project/git-url-parseProduct
- https://github.com/coala/git-url-parse/blob/master/giturlparse/parser.py#L53Product
- https://github.com/returntocorp/semgrep/pull/7611Issue Tracking, Patch
- https://github.com/returntocorp/semgrep/pull/7943
- https://github.com/returntocorp/semgrep/pull/7955
- https://pypi.org/project/git-url-parseProduct
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.