Path traversal in Discourse - #VU165856
Published: November 11, 2026
Vulnerability details
The vulnerability allows a remote privileged user to read or overwrite files outside the uploads directory, including server configuration files.
The vulnerability exists due to path traversal in Discourse's restored upload records when processing backups on sites with allow_restore enabled. A remote privileged user can restore a crafted backup containing upload paths outside the uploads directory to cause Discourse to read or write files elsewhere on the server.