Path traversal in upload file paths from restored backups
Key facts
- Attack vector
- Network
- Privileges required
- High
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · GHSA-95q8-2cxf-wrjg. Fix status from GitHub.
Summary
Discourse versions from 2026.7.0-latest before 2026.7.5, from 2026.9.0-latest before 2026.9.2, and from 2026.10.0-latest before 2026.10.1 are affected. Upload records restored from a crafted backup can point outside the uploads directory (CWE-22), so an attacker with high privileges can read or write files elsewhere on the server, including configuration files. Only sites with allow_restore enabled are affected.
Written with Claude Haiku 5.5 from the sources below · 2026-11-12
Description from the GitHub advisory
### Impact Upload records restored from a crafted backup can point outside the uploads directory. Discourse then reads or writes files elsewhere on the server, including configuration files. Only sites with `allow_restore` enabled are affected. ### Workarounds Keep `allow_restore` disabled, and only restore backups from trusted sources. Discovered by Anthropic's OSS Scanner, as vulnerabilities ANT-2026-1JDG572G and ANT-2026-4E9WJ0YN.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | Discourse | — | 2026.11.0-latest.1 | Patch available | GHSA-95q8-2cxf-wrjg |
| — | Discourse | >= 2026.10.0-latest | 2026.10.1 | Patch available | GHSA-95q8-2cxf-wrjg |
| — | Discourse | >= 2026.9.0-latest | 2026.9.2 | Patch available | GHSA-95q8-2cxf-wrjg |
| — | Discourse | >= 2026.7.0-latest | 2026.7.5 | Patch available | GHSA-95q8-2cxf-wrjg |
- Discourse Vendor— Affected — Fixed in 2026.11.0-latest.1 Patch available GHSA-95q8-2cxf-wrjg
- Discourse Vendor— Affected >= 2026.10.0-latest Fixed in 2026.10.1 Patch available GHSA-95q8-2cxf-wrjg
- Discourse Vendor— Affected >= 2026.9.0-latest Fixed in 2026.9.2 Patch available GHSA-95q8-2cxf-wrjg
- Discourse Vendor— Affected >= 2026.7.0-latest Fixed in 2026.7.5 Patch available GHSA-95q8-2cxf-wrjg
Remediation
Upgrade to Discourse 2026.11.0-latest.1, 2026.10.1, 2026.9.2, or 2026.7.5. Until then, keep allow_restore disabled and restore only backups from trusted sources. The sources list no CISA KEV entry for this flaw.
Written with Claude Haiku 5.5 from the sources below · 2026-11-12
- Fix · GHSA-95q8-2cxf-wrjg Discourse Fixed in 2026.11.0-latest.1 Advisory →
- Fix · GHSA-95q8-2cxf-wrjg Discourse Fixed in 2026.10.1 Advisory →
- Fix · GHSA-95q8-2cxf-wrjg Discourse Fixed in 2026.9.2 Advisory →
- Fix · GHSA-95q8-2cxf-wrjg Discourse Fixed in 2026.7.5 Advisory →
Timeline
- 2026-11-12 Threatist record created from GHSA-95q8-2cxf-wrjg
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences