Path traversal in Discourse - #VU166162
Published: November 13, 2026
Vulnerability details
The vulnerability allows a remote privileged user to read arbitrary server files, including configuration files.
The vulnerability exists due to path traversal in Discourse's S3 upload migration when processing restored backup upload filenames containing newlines. A remote privileged user can restore a crafted backup on an S3-enabled site with allow_restore enabled to cause files outside the uploads directory to be uploaded to the bucket, exposing their contents.