CVE-2024-56731Gogs
Critical 9.8 No auth needed
Follow: this CVE · Gogs · Gogs We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 2.2% probability of exploitation in 30 days · percentile 84
- Auth required
- No
- Published
- Jun 24, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-552
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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 same instance. This issue has been patched in version 0.13.3.
What to do
- Apply the vendor's security update for Gogs.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | gogs.io/gogs |
< 0.13.3 |
0.13.3 |
go get gogs.io/gogs@v0.13.3 |
| Go | gogs.io/gogs |
< 0.13.3 |
0.13.3 |
go get gogs.io/gogs@v0.13.3 |
Per OSV / GitHub Advisories (GHSA-wj44-9vcg-wjq7, GO-2025-3776). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| gogs | gogs | < 0.13.3 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Release Notes
- github.com Patch Vendor Advisory