Description
navi through 2.24.0 fails to properly escape cheatsheet variable values when substituting them into shell commands. Attackers can inject shell metacharacters through crafted file names in suggestion command directories to execute arbitrary commands with victim privileges.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| denisidoro | navi | ≤ 2.24.0 | — |
References
- GitHub Issue #1037 issue-tracking
- https://github.com/denisidoro/navi/blob/5515367dc8a2a561d2d82b8352f729b1da4120d3/src/commands/core/actor.rs#L159-L193 technical-description
- https://github.com/denisidoro/navi/blob/5515367dc8a2a561d2d82b8352f729b1da4120d3/src/common/shell.rs#L39-L50 technical-description
- https://github.com/denisidoro/navi product
- VulnCheck Advisory: navi through 2.24.0 OS Command Injection via Cheatsheet Variables third-party-advisory