CVE-2023-46402 Inefficient Regular Expression Complexity in git-urls

High 7.5 Published Updated

Attackers can cause denial of service in applications using the git-urls Go library via specially crafted input triggering ReDoS.

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

What is CVE-2023-46402?

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

Official description

git-urls 1.0.0 allows ReDOS (Regular Expression Denial of Service) in urls.go.

Weakness: CWE-1333

Which versions are affected by CVE-2023-46402?

2 open source packages ship an affected version, including github.com/whilp/git-urls. It affects 1 product.

PackageAffectedFixed in
github.com/whilp/git-urls GoAll versions to 1.0.1None
github.com/whilp/git-urls GoAll versions to 1.0.1None

Products include Git-Urls Project Git-Urls.

How do I fix CVE-2023-46402?

Upgrade to a fixed version.

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-46402 being exploited?

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

Sources

Also known as GHSA-3f2q-6294-fmq5, MINI-8rm5-748w-46q8, MINI-mxcr-349f-rv9w, MINI-xhhg-rqjh-j664.

Is CVE-2023-46402 in your software?

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

Check your SBOMs for free