CVE-2024-56731: Gogs is an open source self-hosted Git service
CVE-2024-56731 is a critical-severity flaw (CVSS 10.0) affecting gogs. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
Gogs is an open source self-hosted Git service. Prior to version 0.13.3, it's still possible to delete files under the .git directory and achieve remote command execution due to an insufficient patch for CVE-2024-39931. Unprivileged user accounts can execute arbitrary commands on the Gogs instance with the privileges of the account specified by RUN_USER in the configuration. Allowing attackers to access and alter any users' code hosted on the sam
Why this priority
- Critical severity
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 10.0 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 1.1% (top 33%) |
| CISA exploited list | No |
| Weakness | CWE-552 |
| Published | 2025-06-24 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2024-56731?
gogs: upgrade to 0.13.3. Exact commands for each OS are on this page.
Is CVE-2024-56731 being exploited?
CVE-2024-56731 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2024-56731 affect?
CVE-2024-56731 affects gogs. Severity is critical (CVSS 10.0). Gogs is an open source self-hosted Git service. Prior to version 0.13.3, it's still possible to delete files under the .git directory and achieve remote command execution due to an insufficient patch for CVE-2024-39931. Unprivileged user ac
How urgent is CVE-2024-56731?
Priority 57/100. Critical severity; Remotely exploitable, no login, no user action
Software pages
Related CVEs
- CVE-2025-8110 HIGH 8.8 EXPLOITED UPGRADE Gogs Path Traversal Vulnerability
- CVE-2026-26276 HIGH 7.3 UPGRADE Gogs is an open source self-hosted Git service
- CVE-2026-26196 MEDIUM 5.3 UPGRADE Gogs is an open source self-hosted Git service
- CVE-2026-26195 MEDIUM 6.1 UPGRADE Gogs is an open source self-hosted Git service
- CVE-2026-26194 HIGH 7.3 UPGRADE Gogs is an open source self-hosted Git service