CVE-2023-32758
Coala Git-url-parse vulnerability
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.
Affected products
Git-url-parse. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Coala Git-url-parse runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/returntocorp/semgrep/pull/7611 · Patch
- github.com/coala/git-url-parse/blob/master/giturlparse/parser.py#L53
- github.com/returntocorp/semgrep/pull/7943
- github.com/returntocorp/semgrep/pull/7955
- pypi.org/project/git-url-parse
- nvd.nist.gov/vuln/detail/CVE-2023-32758
- cve.org/CVERecord?id=CVE-2023-32758
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.