Vulnerabilities in pkg:golang/github.com/facebookincubator/tacquito

PACKAGE
Advisory Summary

GHSA-p5wf-cmr4-xrwr is a HIGH (CVSS 7.6) permissive regular expression vulnerability (CWE-1333: Inefficient Regular Expression Complexity) affecting Github.com/facebookincubator/tacquito libraries in the Go ecosystem. The issue involves permissive regular expression in tacquito. Remediation is available by upgrading affected packages to version 0.0.0-20241011192817-07b49d1358e6.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/facebookincubator/tacquito

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/facebookincubator/tacquito. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-p5wf-cmr4-xrwr - HIGH Permissive Regular Expression in tacquito

GHSA-p5wf-cmr4-xrwr at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-p5wf-cmr4-xrwr
Severity HIGH
CVSS v3.1 Base Score 7.6
CWE Classification CWE-1333: Inefficient Regular Expression Complexity
Affected Product Github.com/facebookincubator/tacquito
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.6

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

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

How to Fix GHSA-p5wf-cmr4-xrwr

To remediate this vulnerability, upgrade all affected Github.com/facebookincubator/tacquito 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/facebookincubator/tacquito fixed: 0.0.0-20241011192817-07b49d1358e6
Upgrade github.com/facebookincubator/tacquito to 0.0.0-20241011192817-07b49d1358e6
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/facebookincubator/tacquito

How to Check if You Are Affected

To determine whether your application is affected by GHSA-p5wf-cmr4-xrwr, inspect your project dependencies for Github.com/facebookincubator/tacquito:

inspect dependencies for github.com/facebookincubator/tacquito

Analyze the terminal output to locate any version of Github.com/facebookincubator/tacquito in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.0-20241011192817-07b49d1358e6), 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/facebookincubator/tacquito, 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

### Impact The CVE is for a software vulnerability. Network admins who have deployed tacquito (or versions of tacquito) in their production environments and use tacquito to perform command authorization for network devices should be impacted. Tacquito code prior to commit 07b49d1358e6ec0b5aa482fcd284f509191119e2 was performing regex matches on authorized commands and arguments in a more permissive than intended manner. Configured allowed commands/arguments were intended to require a match on the entire string, but instead only enforced a match on a sub-string. This behaviour could potentially allowed unauthorized commands to be executed. ### Patches The problem has been patched, and users should update to the latest github repo commit to get the patch. ### Workarounds Users should be able to add boundary conditions anchors '^' and '$' to their command configs to remediate the vulnerability without the upgrade

GHSA-p5wf-cmr4-xrwr Affected Github.com/facebookincubator/tacquito Versions

1 component(s)
Fixed Versions:
0.0.0-20241011192817-07b49d1358e6
Product / Package Ecosystem Affected Versions Fixed Version
github.com/facebookincubator/tacquito
Go
< 0.0.0-20241011192817-07b49d1358e6
0.0.0-20241011192817-07b49d1358e6

References

Frequently Asked Questions

What is GHSA-p5wf-cmr4-xrwr?
GHSA-p5wf-cmr4-xrwr is a security vulnerability in Github.com/facebookincubator/tacquito involving Permissive Regular Expression in tacquito under CWE-1333: Inefficient Regular Expression Complexity.
Which Github.com/facebookincubator/tacquito versions are affected?
Affected versions include releases prior to 0.0.0-20241011192817-07b49d1358e6 across affected packages: github.com/facebookincubator/tacquito.
What version fixes GHSA-p5wf-cmr4-xrwr?
Upgrading to 0.0.0-20241011192817-07b49d1358e6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/facebookincubator/tacquito affected?
Yes, github.com/facebookincubator/tacquito is affected in releases prior to 0.0.0-20241011192817-07b49d1358e6. Upgrade your dependency to 0.0.0-20241011192817-07b49d1358e6 or later.
What is the CVSS score of GHSA-p5wf-cmr4-xrwr?
GHSA-p5wf-cmr4-xrwr has a CVSS v3.1 base score of 7.6 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:H.
What CWE is associated with GHSA-p5wf-cmr4-xrwr?
GHSA-p5wf-cmr4-xrwr 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 GHSA-p5wf-cmr4-xrwr?
Run the dependency tree command: 'inspect dependencies for github.com/facebookincubator/tacquito'. 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-p5wf-cmr4-xrwr",
  "modified" : "2024-11-01T21:47:15Z",
  "published" : "2024-10-18T18:40:32Z",
  "aliases" : [ ],
  "summary" : "Permissive Regular Expression in tacquito",
  "details" : "### Impact\nThe CVE is for a software vulnerability. Network admins who have deployed tacquito (or versions of tacquito) in their production environments and use tacquito to perform command authorization for network devices should be impacted.\n\nTacquito code prior to commit 07b49d1358e6ec0b5aa482fcd284f509191119e2 was performing regex matches on authorized commands and arguments in a more permissive than intended manner. Configured allowed commands/arguments were intended to require a match on the entire string, but instead only enforced a match on a sub-string. This behaviour could potentially allowed unauthorized commands to be executed.\n\n### Patches\nThe problem has been patched, and users should update to the latest github repo commit to get the patch. \n\n### Workarounds\nUsers should be able to add boundary conditions anchors '^' and '$' to their command configs to remediate the vulnerability without the upgrade\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/facebookincubator/tacquito"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.0.0-20241011192817-07b49d1358e6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/facebookincubator/tacquito/security/advisories/GHSA-p5wf-cmr4-xrwr"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-49400"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/facebookincubator/tacquito/commit/07b49d1358e6ec0b5aa482fcd284f509191119e2"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/facebookincubator/tacquito"
  }, {
    "type" : "WEB",
    "url" : "https://www.facebook.com/security/advisories/cve-2024-49400"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1333" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-10-18T18:40:32Z",
    "nvd_published_at" : null
  }
}