Vulnerabilities in pkg:golang/github.com/whilp/git-urls

PACKAGE
Advisory Identifier: GHSA-3f2q-6294-fmq5
Advisory Summary

CVE-2023-46402 is a HIGH (CVSS 7.5) inefficient regular expression complexity vulnerability (CWE-1333: Inefficient Regular Expression Complexity) affecting Github.com/whilp/git urls libraries in the Go ecosystem. The issue involves inefficient regular expression complexity in git-urls. Remediation is available in the latest vendor maintenance releases.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/whilp/git-urls

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/whilp/git-urls. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-3f2q-6294-fmq5 CVE-2023-46402 HIGH Inefficient Regular Expression Complexity in git-urls

CVE-2023-46402 at a Glance

CVE Identifier CVE-2023-46402
GHSA Identifier GHSA-3f2q-6294-fmq5
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-1333: Inefficient Regular Expression Complexity
Affected Product Github.com/whilp/git urls
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2023-46402

To remediate this vulnerability, upgrade all affected Github.com/whilp/git urls dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/whilp/git-urls fixed: Latest secure release
Upgrade github.com/whilp/git-urls 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 github.com/whilp/git-urls

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-46402, inspect your project dependencies for Github.com/whilp/git urls:

inspect dependencies for github.com/whilp/git-urls

Analyze the terminal output to locate any version of Github.com/whilp/git urls 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 Github.com/whilp/git urls, 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

git-urls version 1.0.1 is vulnerable to ReDOS (Regular Expression Denial of Service) in Go package.

CVE-2023-46402 Affected Github.com/whilp/git urls Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
github.com/whilp/git-urls
Go
≤ 1.0.1

References

Frequently Asked Questions

What is CVE-2023-46402?
CVE-2023-46402 is a security vulnerability in Github.com/whilp/git urls involving Inefficient Regular Expression Complexity in git-urls under CWE-1333: Inefficient Regular Expression Complexity.
Which Github.com/whilp/git urls versions are affected?
Affected versions include releases prior to current release patches across affected packages: github.com/whilp/git-urls.
What version fixes CVE-2023-46402?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/whilp/git-urls affected?
Yes, github.com/whilp/git-urls is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2023-46402?
CVE-2023-46402 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2023-46402?
CVE-2023-46402 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 Go dependencies for CVE-2023-46402?
Run the dependency tree command: 'inspect dependencies for github.com/whilp/git-urls'. 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-3f2q-6294-fmq5",
  "modified" : "2023-11-28T23:14:24Z",
  "published" : "2023-11-18T00:30:17Z",
  "aliases" : [ "CVE-2023-46402" ],
  "summary" : "Inefficient Regular Expression Complexity in git-urls",
  "details" : "git-urls version 1.0.1 is vulnerable to ReDOS (Regular Expression Denial of Service) in Go package.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/whilp/git-urls"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "1.0.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-46402"
  }, {
    "type" : "WEB",
    "url" : "https://gist.github.com/6en6ar/7c2424c93e7fbf2b6fc44e7fb9acb95d"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/whilp/git-urls"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1333" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-11-20T23:05:38Z",
    "nvd_published_at" : "2023-11-18T00:15:07Z"
  }
}