# GHSA-p5wf-cmr4-xrwr: Permissive Regular Expression in tacquito

- Severity: High (CVSS:4.0, scored by GitHub) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2024-10-18T18:40:32.000Z
- Modified: 2026-03-03T04:55:55.758Z
- Also known as: GO-2024-3207
- Weaknesses: CWE-1333

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

(As written by GitHub Advisory Database.)

## Affected

- github.com/facebookincubator/tacquito (Go): before 0.0.0-20241011192817-07b49d1358e6

## Every score

- GitHub: CVSS:3.1 7.6 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:H`
- GitHub: CVSS:4.0 High `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`

## References

- <https://github.com/facebookincubator/tacquito/security/advisories/GHSA-p5wf-cmr4-xrwr> (advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-49400> (advisory)
- <https://github.com/facebookincubator/tacquito/commit/07b49d1358e6ec0b5aa482fcd284f509191119e2> (fix, web)
- <https://github.com/facebookincubator/tacquito> (package)
- <https://www.facebook.com/security/advisories/cve-2024-49400> (web)

## Sources

- GitHub Advisory Database: [GHSA-p5wf-cmr4-xrwr](https://github.com/advisories/GHSA-p5wf-cmr4-xrwr), CC-BY-4.0, modified 2024-11-01
- Go Vulnerability Database: [GO-2024-3207](https://pkg.go.dev/vuln/GO-2024-3207), CC-BY-4.0, modified 2026-03-03

---

Page: https://cve.day/GHSA-p5wf-cmr4-xrwr · Whole record: https://cve.day/GHSA-p5wf-cmr4-xrwr.json · Rebuilt by cve.day 2026-11-25T22:56:23.878Z
