---
title: "CVE-2024-56731: Gogs allows deletion of internal files which leads to remote command execution"
url: https://erroneo.us/security/cve/CVE-2024-56731/
description: "CVE-2024-56731 (gogs.io/gogs (Go)): Gogs is an open source self-hosted Git service. Prior to version 0.13.3, it's still possible to delete files under the…"
type: vulnerability-record
section: "Security Digest"
date_published: 2025-06-24
date_modified: 2025-06-25
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2024-56731"
kev: false
cvss: 10
epss: 0.0115
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2024-56731: Gogs allows deletion of internal files which leads to remote command execution

**Signal:** Critical and remotely reachable. No known exploitation yet, but it is network-reachable without credentials. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- No confirmed exploitation. It is not in CISA’s KEV catalog and CISA’s SSVC assessment records no known exploitation. That can change quickly after a public write-up; re-check if you are affected.
- EPSS 1.1% , percentile 67: FIRST’s model estimates a 1.1% chance of exploitation activity in the next 30 days, higher than 67% of all scored CVEs (moderate). EPSS is a probability, not a verdict.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes gogs.io/gogs (Go) <= 0.13.2, fixed in 0.13.3 . Check your lockfile, including transitive dependencies.

## What it is

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 RUNUSER 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.

## Affected packages

- Go `gogs.io/gogs` <= 0.13.2 → fixed: 0.13.3

## Affected products (CVE record)

- gogs gogs: < 0.13.3

## Severity

- GitHub_M CVSS 3.1: 10 `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- GitHub CVSS 3.1: 10.0 `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation none , automatable yes , technical impact total .
- FIRST EPSS (model of 2026-10-21): 1.15% probability of exploitation activity in the next 30 days; percentile 67.

## Sources

- [GitHub Advisory GHSA-wj44-9vcg-wjq7](https://github.com/advisories/GHSA-wj44-9vcg-wjq7)
- [CVE.org record CVE-2024-56731](https://www.cve.org/CVERecord?id=CVE-2024-56731)
- [NVD entry CVE-2024-56731](https://nvd.nist.gov/vuln/detail/CVE-2024-56731)
- [github.com](https://github.com/gogs/gogs/security/advisories/GHSA-wj44-9vcg-wjq7)
- [github.com](https://github.com/gogs/gogs/commit/77a4a945ae9a87f77e392e9066b560edb71b5de9)
- [github.com](https://github.com/gogs/gogs/releases/tag/v0.13.3)
- [github.com](https://github.com/advisories/GHSA-ccqv-43vm-4f3w)

---
Source page: https://erroneo.us/security/cve/CVE-2024-56731/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
