matcha
matcha copied to clipboard
BUG: Command injection via EDITOR environment variable
Describe the bug Editor execution uses EDITOR env var without sanitization. Shell metacharacters in EDITOR could enable command injection.
To reproduce
- Set EDITOR="vi; malicious_command"
- Run matcha config command
- Shell injection possible
Expected behavior Validate EDITOR path, use exec.Command with proper argument separation
Matcha version master
OS Unix-like
Additional context File: cli/config.go Security: command injection risk
This has had no activity for 30 days. It will be closed in 14 days unless updated. Comment or remove the stale label to keep it open.
Closing due to inactivity. Reopen if still relevant.