GHSA-p5wf-cmr4-xrwr

Suggest an improvement
Source
https://github.com/advisories/GHSA-p5wf-cmr4-xrwr
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/10/GHSA-p5wf-cmr4-xrwr/GHSA-p5wf-cmr4-xrwr.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-p5wf-cmr4-xrwr
Aliases
Published
2024-10-18T18:40:32Z
Modified
2024-11-01T21:47:15Z
Severity
  • 7.6 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:H CVSS Calculator
  • 7.1 (High) CVSS_V4 - 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 CVSS Calculator
Summary
Permissive Regular Expression in tacquito
Details

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

Database specific
{
    "nvd_published_at": null,
    "github_reviewed": true,
    "github_reviewed_at": "2024-10-18T18:40:32Z",
    "severity": "HIGH",
    "cwe_ids": [
        "CWE-1333"
    ]
}
References

Affected packages

Go / github.com/facebookincubator/tacquito

Package

Name
github.com/facebookincubator/tacquito
View open source insights on deps.dev
Purl
pkg:golang/github.com/facebookincubator/tacquito

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.0.0-20241011192817-07b49d1358e6