Advisory

GHSA-p5wf-cmr4-xrwr

Also known as: GO-2024-3207

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

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-10-18 18:40 UTC
Modified
2024-11-01 21:47 UTC

Affected packages and fixes

github.com/facebookincubator/tacquito

Go · All systems

Affected

  • introduced 0, fixed 0.0.0-20241011192817-07b49d1358e6 (semver)

Fixed versions

0.0.0-20241011192817-07b49d1358e6

Fix

  • Fixed version 0.0.0-20241011192817-07b49d1358e6
    go get github.com/facebookincubator/[email protected]

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences