CVE-2024-39931
Duplicate Advisory: Gogs allows deletion of internal files
Gogs through 0.13.0 allows deletion of internal files.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
9.9
Gogs through 0.13.0 allows deletion of internal files.
- Record
CVE-2024-39931- CVSS 3.1
- 9.9 Critical
CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:L/S:C/UI:N - Weakness
- CWE-552
- Updated
- 2026-11-02
EUVDEUVD-2024-3577
9.9
Gogs through 0.13.0 allows deletion of internal files.
- Record
EUVD-2024-3577- CVSS 3.1
- 9.9 Critical
CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:L/S:C/UI:N - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-2vgj-3pvg-xh4w
9.4
Duplicate Advisory: Gogs allows deletion of internal files
Duplicate Advisory
This advisory has been withdrawn because it is a duplicate of GHSA-ccqv-43vm-4f3w. This link is maintained to preserve external references.
Original Description
Gogs through 0.13.0 allows deletion of internal files.
- Record
GHSA-2vgj-3pvg-xh4w- CVSS 4.0
- 9.4 Critical
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H - CVSS 3.1
- 9.9 Critical
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H - Weakness
- CWE-552
- Updated
- 2026-11-02
GitHub AdvisoriesGHSA-ccqv-43vm-4f3w
9.9
Gogs allows deletion of internal files
Impact
Unprivileged user accounts can execute arbitrary commands on the Gogs instance with the privileges of the account specified by RUN_USER in the configuration. It allows attackers to access and alter any users' code hosted on the same instance.
Patches
Deletion of .git files has been prohibited (https://github.com/gogs/gogs/pull/7870). Users should upgrade to 0.13.1 or the latest 0.14.0+dev.
Workarounds
No viable workaround available, please only grant access to trusted users to your Gogs instance on affected versions.
References
- Record
GHSA-ccqv-43vm-4f3w- CVSS 3.1
- 9.9 Critical
CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:L/S:C/UI:N - Weakness
- CWE-552
- Updated
- 2026-11-02
NVD
9.9
Gogs through 0.13.0 allows deletion of internal files.
- Record
CVE-2024-39931- CVSS 3.1
- 9.9 Critical
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H - Weakness
- CWE-552
- Updated
- 2026-11-02
OSV
9.9
Gogs through 0.13.0 allows deletion of internal files.
- Record
CVE-2024-39931- CVSS 3.1
- 9.9 Critical
CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:L/S:C/UI:N - Updated
- 2026-11-02
OSVGHSA-2vgj-3pvg-xh4w
9.4
Duplicate Advisory: Gogs allows deletion of internal files
Duplicate Advisory
This advisory has been withdrawn because it is a duplicate of GHSA-ccqv-43vm-4f3w. This link is maintained to preserve external references.
Original Description
Gogs through 0.13.0 allows deletion of internal files.
- Record
GHSA-2vgj-3pvg-xh4w- CVSS 4.0
- 9.4 Critical
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H - CVSS 3.1
- 9.9 Critical
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H - Weakness
- CWE-552
- Updated
- 2026-11-02
OSVGHSA-ccqv-43vm-4f3w
9.9
Gogs allows deletion of internal files
Impact
Unprivileged user accounts can execute arbitrary commands on the Gogs instance with the privileges of the account specified by RUN_USER in the configuration. It allows attackers to access and alter any users' code hosted on the same instance.
Patches
Deletion of .git files has been prohibited (https://github.com/gogs/gogs/pull/7870). Users should upgrade to 0.13.1 or the latest 0.14.0+dev.
Workarounds
No viable workaround available, please only grant access to trusted users to your Gogs instance on affected versions.
References
- Record
GHSA-ccqv-43vm-4f3w- CVSS 3.1
- 9.9 Critical
CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:L/S:C/UI:N - Weakness
- CWE-552
- Updated
- 2026-11-02
OSVGO-2024-2970 No score
Gogs allows deletion of internal files in github.com/gogs/gogs
Gogs allows deletion of internal files in github.com/gogs/gogs
- Record
GO-2024-2970- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
gogs.io/gogsGo |
through 0.13.0 | 0.13.1 |
gogs.io/gogsGo |
before 0.13.1 | 0.13.1 |
github.com/gogs/gogsGo |
All versions | None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2024-39931 is a critical vulnerability (CVSS 9.9) in Gogs, published July 4, 2024. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 52.7%, the 98th percentile. Fixed in gogs.io/gogs 0.13.1.
References
github.com/gogs/gogs/releases
sonarsource.com/blog/securing-developer-tools-unpatched-code-vulnerabilities-in-gogs-1
nvd.nist.gov/vuln/detail/CVE-2024-39931
github.com/advisories/GHSA-2vgj-3pvg-xh4w
github.com/gogs/gogs/security/advisories/GHSA-ccqv-43vm-4f3w
github.com/advisories/GHSA-ccqv-43vm-4f3w
github.com/CVEProject/cvelistV5/tree/main/cves/2024/39xxx/CVE-2024-39931.json
github.com/gogs/gogs