Vulnerability in Gogs

CVE-2024-56731

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.

Published · last modified .

CVSS v3 metric

CVSS v3 base score 10.0 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H.

EPSS exploit prediction

EPSS: 0.011 (65.6th percentile), scored .

Low probability of exploitation in the next 30 days, but still tracked. 66th percentile — 65.6% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2024-56731: held from 0.010 to 0.011.

EPSS over last 30 days · oldest: 0.010 · newest: 0.011 · change: +0.002

Affected products

  • Gogs — versions < 0.13.3

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2024-56731?
CVE-2024-56731 is a critical-severity vulnerability in Gogs, classified under Files or Directories Accessible to External Parties. CVSS score: 10.0/10. Published 2025-06-24.
How severe is CVE-2024-56731?
Critical severity. CVSS v3 base score is 10.0 out of 10.
Is CVE-2024-56731 known to be exploited?
2 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.