CVE-2024-56731
Gogs allows deletion of internal files which leads to remote command execution
Summary
Remediation
Upgrade to the fixed version using your package manager.
go get gogs.io/gogs@v0.13.3
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (1)
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| gogs.io/gogs | go | All versions | 0.13.3 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-552
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 10.0 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
References
- https://github.com/gogs/gogs/security/advisories/GHSA-wj44-9vcg-wjq7WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-56731ADVISORY
- https://github.com/gogs/gogs/commit/77a4a945ae9a87f77e392e9066b560edb71b5de9WEB
- https://github.com/advisories/GHSA-ccqv-43vm-4f3wADVISORY
- https://github.com/gogs/gogsPACKAGE
- https://github.com/gogs/gogs/releases/tag/v0.13.3WEB
Frequently Asked Questions
- What is CVE-2024-56731?
- Gogs allows deletion of internal files which leads to remote command execution This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 10.0/10).
- How do I check if my project is affected by CVE-2024-56731?
- CVE-2024-56731 affects gogs.io/gogs. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-56731 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation is straightforward and causes maximum impact. Patch immediately.
Also Known As
Related CVEs
- CVE-2022-1986CRITICAL
OS Command Injection in file editor in Gogs
- CVE-2026-52811CRITICAL
Gogs: UploadRepoFiles writes outside repo working tree via committed parent sym
- CVE-2024-39932CRITICAL
Gogs allows argument injection during the previewing of changes
- CVE-2026-52813CRITICAL
Gogs has Path Traversal in organization name that results in RCE through Git hooks
- CVE-2026-25921CRITICAL
Gogs: Cross-repository LFS object overwrite via missing content hash verification
- CVE-2025-64111CRITICAL
Gogs's update .git/config file allows remote command execution
- CVE-2026-52805HIGH
Gogs has a Migration Redirect Bypass that Leads to Internal Repository Theft
- CVE-2025-8110HIGH
Gogs vulnerable to a bypass of CVE-2024-55947
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies