Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. gogs.io/gogs
  4. ›
  5. CVE-2024-56731

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

June 24, 2025

Due to the insufficient patch for the CVE-2024-39931, it’s still possible to delete files under the .git directory and achieve remote command execution.

References

  • github.com/advisories/GHSA-ccqv-43vm-4f3w
  • github.com/advisories/GHSA-wj44-9vcg-wjq7
  • github.com/gogs/gogs
  • github.com/gogs/gogs/commit/77a4a945ae9a87f77e392e9066b560edb71b5de9
  • github.com/gogs/gogs/releases/tag/v0.13.3
  • github.com/gogs/gogs/security/advisories/GHSA-wj44-9vcg-wjq7
  • nvd.nist.gov/vuln/detail/CVE-2024-56731

Code Behaviors & Features

Detect and mitigate CVE-2024-56731 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.13.3

Fixed versions

  • 0.13.3

Solution

Upgrade to version 0.13.3 or above.

Impact 10 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-552: Files or Directories Accessible to External Parties

Source file

go/gogs.io/gogs/CVE-2024-56731.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:03 +0000.