SQLite shell command execution via .recover output
SQLite
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| SQLite SQLite |
| No fix yet |
Original description
SQLite command-line shell through 3.54.1 contains a command injection vulnerability in the .recover command that emits attacker-planted dot-commands stored in sqlite_schema.sql values verbatim. Attackers can craft a database whose schema holds a valid CREATE statement followed by a .shell or .system line, executing OS commands when victims pipe .recover output into sqlite3.
From the CVE record · VulnCheck