matcha icon indicating copy to clipboard operation
matcha copied to clipboard

BUG: Command injection via EDITOR environment variable

Open andrinoff opened this issue 7 months ago • 2 comments

Describe the bug Editor execution uses EDITOR env var without sanitization. Shell metacharacters in EDITOR could enable command injection.

To reproduce

  1. Set EDITOR="vi; malicious_command"
  2. Run matcha config command
  3. 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

andrinoff avatar Apr 21 '26 14:04 andrinoff

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.

floatpanebot avatar May 22 '26 06:05 floatpanebot

Closing due to inactivity. Reopen if still relevant.

floatpanebot avatar Jun 04 '26 19:06 floatpanebot