---
cve: "CVE-2024-56731"
severity: "CRITICAL"
cvss: 10.0
epss: "94%"
vendor: "gogs"
kev: false
exploited: false
published: "2025-06-24 04:15:45"
tags: [cve, security, critical]
source: tsecurity.de CVE-Dossier
exported: "2026-08-31T20:03:57+02:00"
---

# CVE-2024-56731

> 10.0 CRITICAL · 🧪 PoC

## Beschreibung

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.

## CVSS-Vektor

```
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
```

| Metrik | Wert | Bewertung |
|---|---|---|
| AV Angriffsvektor | Netzwerk | bad |
| AC Komplexität | Gering | bad |
| PR Privilegien | Keine | bad |
| UI Interaktion | Keine | bad |
| S Scope | Verändert | bad |
| C Vertraulichkeit | Hoch | bad |
| I Integrität | Hoch | bad |
| A Verfügbarkeit | Hoch | bad |

## Patch verfügbar (OSV)

- 5084b4a9b77a506f5e287e82e945e1c6882b827a (Commit)
- 77a4a945ae9a87f77e392e9066b560edb71b5de9 (Commit)

## Referenzen

- <https://github.com/gogs/gogs/security/advisories/GHSA-wj44-9vcg-wjq7>
- <https://github.com/gogs/gogs/commit/77a4a945ae9a87f77e392e9066b560edb71b5de9>
- <https://github.com/gogs/gogs/releases/tag/v0.13.3>

---
_Exportiert aus dem [tsecurity.de CVE-Dossier](https://tsecurity.de/cve?cve=CVE-2024-56731) · Datenquellen: EUVD (ENISA), NVD, OSV, CISA KEV, FIRST EPSS, Exploit-DB, BSI BITS_
