CVE-2023-32758 git-url-parse Regular Expression Denial of Service

High 7.5 Published Updated

Attackers can cause denial of service in Semgrep by providing malicious URLs in untrusted packages due to ReDoS in the giturlparse library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2023-32758?

CVE-2023-32758 is a high-severity denial of service vulnerability in n/a, published on 15 May 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-1333

Which versions are affected by CVE-2023-32758?

3 open source packages ship an affected version, including git-url-parse. It affects 1 product.

PackageAffectedFixed in
git-url-parse PyPIAll versions to 1.2.2None
git-url-parse PyPIAll versions to 1.2.2None
git-url-parse PyPIAll versions to 1.2.2None

Products include Coala Git-Url-Parse.

How do I fix CVE-2023-32758?

No fix has been published for CVE-2023-32758 yet. Limit exposure of the affected software until one is available.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2023-32758 being exploited?

There is no known exploitation of CVE-2023-32758 in the wild and no public exploit code.

Sources

Also known as GHSA-4xqq-73wg-5mjp, PYSEC-2026-1404.

Is CVE-2023-32758 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free