All vulnerabilities

Servers and applications

CVE-2024-56731

Deletion of internal files allows remote command execution

Severity
Critical 9.8
Published
24 Jun 2025
Last changed
17 Jun 2026
Added to UpHeron
1 Nov 2026
Fixed in
0.13.3
Also known as
GHSA-wj44-9vcg-wjq7
Sources
NVD, Project advisories (GitHub)

Description

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…

Affected software

SoftwareAffected versions
GogsServers and applications · cpe:a:gogs:gogs
  • Every version before 0.13.3
GogsServers and applications · github:gogs/gogs
  • Every version up to 0.13.2

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2024-56731
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2024-56731
  • GitHub Advisory Database https://github.com/advisories/GHSA-wj44-9vcg-wjq7
  • github.com https://github.com/gogs/gogs/security/advisories/GHSA-wj44-9vcg-wjq7