OS Command Injection in Discourse - #VU166163
Published: November 13, 2026
Vulnerability details
The vulnerability allows a remote privileged user to execute arbitrary shell commands on the Discourse host.
The vulnerability exists due to improper neutralization of shell command elements in the Discourse uploads:gather rake task when processing upload records restored from a crafted backup. A remote privileged user can supply a backup containing malicious upload records to execute shell commands when a system administrator restores the backup and runs the task.