CVE-2024-56731 json
Gogs deletion of internal files allows remote command execution
published last yr. modified 4mo ago also EUVD-2024-54695 , GHSA-wj44-9vcg-wjq7 , GO-2025-3776
- cvss
- 10.0
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.2%
- EPSS 1.2% chance of exploitation in 30 days, percentile 67%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go gogs.io/gogs 0.13.3
- gogs gogs 0.13.3
- govulncheck-vulndb openSUSE Tumbleweed 0.0.20250730T213748-1.1
opensuse advisories openSUSE-SU-2025:15405-1
Is CVE-2024-56731 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- total
- Assessed
- last yr.
Exploit prediction
1.15% chance of exploitation in the next 30 days, higher than 67% of all scored CVEs (FIRST EPSS, 2026-11-11).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| GitHub | 3.1 | 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | gogs.io/gogs | <0.13.3 |
0.13.3 |
Affected products
- gogs gogs
Classification
- Weakness
-
- CWE-552 Files or Directories Accessible to External Parties
References
-
github.com
/gogs/gogs/commit/77a4a945ae9a87f77e392e9066b560edb71b5de9
web, patch
-
github.com
/gogs/gogs/security/advisories/GHSA-wj44-9vcg-wjq7
web, patch, vendor-advisory, advisory
-
github.com
/gogs/gogs/releases/tag/v0.13.3
web, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2024-56731
advisory
-
github.com
/advisories/GHSA-ccqv-43vm-4f3w
advisory, web
-
github.com
/gogs/gogs
package
Sources
- CVE List CVE-2024-56731
- GitHub Advisory GHSA-wj44-9vcg-wjq7
- NVD CVE-2024-56731
- OSV GO-2025-3776
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.