Vulnerability Details : 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. 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.
Vulnerability category: Denial of service
Products affected by CVE-2023-32758
- cpe:2.3:a:coala:git-url-parse:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2023-32758
0.12%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 31 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2023-32758
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
7.5
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
3.9
|
3.6
|
134c704f-9b21-4f2e-91b3-4a467353bcc0 | 2025-01-23 |
7.5
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
3.9
|
3.6
|
NIST |
CWE ids for CVE-2023-32758
-
The product uses a regular expression with an inefficient, possibly exponential worst-case computational complexity that consumes excessive CPU cycles.Assigned by:
- 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary)
- nvd@nist.gov (Primary)
References for CVE-2023-32758
-
https://github.com/coala/git-url-parse/blob/master/giturlparse/parser.py#L53
git-url-parse/parser.py at master · coala/git-url-parse · GitHubProduct
-
https://github.com/returntocorp/semgrep/pull/7955
Fix other source of slowness in git URL parser + limit URL length to 1024 by mjambon · Pull Request #7955 · returntocorp/semgrep · GitHub
-
https://github.com/returntocorp/semgrep/pull/7943
Fix for ReDoS vulnerability by mjambon · Pull Request #7943 · returntocorp/semgrep · GitHub
-
https://pypi.org/project/git-url-parse
git-url-parse · PyPIProduct
-
https://github.com/returntocorp/semgrep/pull/7611
fix(cli): git URL parsing for subgroups by brandonspark · Pull Request #7611 · returntocorp/semgrep · GitHubIssue Tracking;Patch
Jump to