GHSA-p5wf-cmr4-xrwr json
Permissive Regular Expression in tacquito
published 2y ago modified 8mo ago also GO-2024-3207
- cvss
- 7.6
- version 3.1, GitHub
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- —
- no score, EPSS covers CVEs only
- public exploits
- 0
- none known
Summary
### 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
Patch / fix
- go github.com/facebookincubator/tacquito 0.0.0-20241011192817-07b49d1358e6
Is GHSA-p5wf-cmr4-xrwr in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| GitHub | 3.1 | 7.6 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/facebookincubator/tacquito | <0.0.0-20241011192817-07b49d1358e6 |
0.0.0-20241011192817-07b49d1358e6 |
Classification
- Weakness
-
- CWE-1333 Inefficient Regular Expression Complexity
References
-
github.com
/facebookincubator/tacquito/commit/07b49d1358e6ec0b5aa482fcd284f509191119e2
web, patch
-
github.com
/facebookincubator/tacquito/security/advisories/GHSA-p5wf-cmr4-xrwr
web, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2024-49400
advisory
-
github.com
/facebookincubator/tacquito
package
-
facebook.com
/security/advisories/cve-2024-49400
web
Sources
- GitHub Advisory GHSA-p5wf-cmr4-xrwr
- OSV GO-2024-3207
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.