GHSA-p5wf-cmr4-xrwr
JSON

high

Permissive Regular Expression in tacquito

Severity
high CVSS:4.0 by GitHub
Published
Last changed
Also known as
GO-2024-3207

Description

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

Affected

Product or packageVersionsReported by
github.com/facebookincubator/tacquito (Go)before 0.0.0-20241011192817-07b49d1358e6GitHub Advisory Database, Go Vulnerability Database

All scores

GitHub7.6high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:H
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N

Classification

What each source says

GitHub Advisory Database
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

Go Vulnerability Database

Permissive Regular Expression in tacquito in github.com/facebookincubator/tacquito

References

Sources

SourceRecordLicence
GitHub Advisory DatabaseGHSA-p5wf-cmr4-xrwr changed 2024-11-01CC-BY-4.0
Go Vulnerability DatabaseGO-2024-3207 changed 2026-03-03CC-BY-4.0