CVE-2023-33290: Git url parse Denial of Service Vulnerability
LOWCVE-2023-33290 is a LOW denial of service vulnerability (CWE-1333: Inefficient Regular Expression Complexity) affecting Git url parse libraries in the crates.io ecosystem. The issue involves git-url-parse crate vulnerable to regular expression denial of service. Remediation is available in the latest vendor maintenance releases.
CVE-2023-33290 at a Glance
How to Fix CVE-2023-33290
To remediate this vulnerability, upgrade all affected Git url parse dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade git-url-parse to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for git-url-parse
How to Check if You Are Affected
To determine whether your application is affected by CVE-2023-33290, inspect your project dependencies for Git url parse:
inspect dependencies for git-url-parse
Analyze the terminal output to locate any version of Git url parse in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-1333: Inefficient Regular Expression Complexity, where the product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential. In Git url parse, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2023-33290 Affected Git url parse Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
git-url-parse
|
crates.io |
≤ 0.4.4
|
|
References
Frequently Asked Questions
What is CVE-2023-33290?
Which Git url parse versions are affected?
What version fixes CVE-2023-33290?
Is git-url-parse affected?
What CWE is associated with CVE-2023-33290?
How can I check crates.io dependencies for CVE-2023-33290?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-qfh9-8p57-mjjj",
"modified" : "2023-06-12T18:55:56Z",
"published" : "2023-06-12T15:30:28Z",
"aliases" : [ "CVE-2023-33290" ],
"summary" : "git-url-parse crate vulnerable to Regular Expression Denial of Service",
"details" : "The git-url-parse crate through 0.4.4 for Rust allows Regular Expression Denial of Service (ReDos) via a crafted URL to `normalize_url` in `lib.rs`, a similar issue to CVE-2023-32758 (Python).",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "git-url-parse"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "0.4.4"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-33290"
}, {
"type" : "WEB",
"url" : "https://github.com/tjtelan/git-url-parse-rs/issues/51"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/tjtelan/git-url-parse-rs"
}, {
"type" : "WEB",
"url" : "https://github.com/tjtelan/git-url-parse-rs/blob/main/src/lib.rs#L396"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1333" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2023-06-12T18:55:56Z",
"nvd_published_at" : "2023-06-12T13:15:10Z"
}
}