CVE-2023-33290: Git url parse Denial of Service Vulnerability

LOW
Advisory Identifier: GHSA-qfh9-8p57-mjjj
CWE-1333
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2023-33290
GHSA Identifier GHSA-qfh9-8p57-mjjj
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-1333: Inefficient Regular Expression Complexity
Affected Product Git url parse
Package Ecosystem crates.io
Published Date
Last Updated

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.

git-url-parse fixed: Latest secure release
Upgrade git-url-parse to Latest secure release
Verify Direct and Transitive Dependencies

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

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

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?
CVE-2023-33290 is a security vulnerability in Git url parse involving git-url-parse crate vulnerable to Regular Expression Denial of Service under CWE-1333: Inefficient Regular Expression Complexity.
Which Git url parse versions are affected?
Affected versions include releases prior to current release patches across affected packages: git-url-parse.
What version fixes CVE-2023-33290?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is git-url-parse affected?
Yes, git-url-parse is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with CVE-2023-33290?
CVE-2023-33290 is classified under CWE-1333: Inefficient Regular Expression Complexity (The product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.).
How can I check crates.io dependencies for CVE-2023-33290?
Run the dependency tree command: 'inspect dependencies for git-url-parse'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}