Discourse uploads:gather rake task command injection
Key facts
- Attack vector
- Network
- Privileges required
- High
- User interaction
- Active
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · GHSA-fv4x-gvp6-f3mc. Fix status from GitHub. Impact type from CWE-78.
Summary
Discourse upload records restored from a crafted backup can run shell commands when a sysadmin runs the uploads:gather rake task. The flaw is an OS command injection (CWE-78), and the attacker needs high privileges while a sysadmin runs the task.
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 run shell commands when a sysadmin runs the `uploads:gather` rake task. ### Workarounds Do not run `uploads:gather` on a database restored from an untrusted backup.
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-fv4x-gvp6-f3mc |
| — | Discourse | >= 2026.10.0-latest | 2026.10.1 | Patch available | GHSA-fv4x-gvp6-f3mc |
| — | Discourse | >= 2026.9.0-latest | 2026.9.2 | Patch available | GHSA-fv4x-gvp6-f3mc |
| — | Discourse | >= 2026.7.0-latest | 2026.7.5 | Patch available | GHSA-fv4x-gvp6-f3mc |
- Discourse Vendor— Affected — Fixed in 2026.11.0-latest.1 Patch available GHSA-fv4x-gvp6-f3mc
- Discourse Vendor— Affected >= 2026.10.0-latest Fixed in 2026.10.1 Patch available GHSA-fv4x-gvp6-f3mc
- Discourse Vendor— Affected >= 2026.9.0-latest Fixed in 2026.9.2 Patch available GHSA-fv4x-gvp6-f3mc
- Discourse Vendor— Affected >= 2026.7.0-latest Fixed in 2026.7.5 Patch available GHSA-fv4x-gvp6-f3mc
Remediation
Upgrade Discourse to 2026.11.0-latest.1, 2026.10.1, 2026.9.2 or 2026.7.5, matching your release line. Until you upgrade, do not run uploads:gather on a database restored from an untrusted backup.
Written with Claude Haiku 5.5 from the sources below · 2026-11-12
- Fix · GHSA-fv4x-gvp6-f3mc Discourse Fixed in 2026.11.0-latest.1 Advisory →
- Fix · GHSA-fv4x-gvp6-f3mc Discourse Fixed in 2026.10.1 Advisory →
- Fix · GHSA-fv4x-gvp6-f3mc Discourse Fixed in 2026.9.2 Advisory →
- Fix · GHSA-fv4x-gvp6-f3mc Discourse Fixed in 2026.7.5 Advisory →
Timeline
- 2026-11-12 Threatist record created from GHSA-fv4x-gvp6-f3mc
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences