Skip to content

CVE-2024-56731

Gogs remote code execution

10.0 CRITICALEPSS 1.15%
  1. Published24 Jun 2025

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 to access and alter any users' code hosted on the same instance. This issue has been patched in version 0.13.3.

CVSS 3.1 breakdown

Attack vectorNetwork
Attack complexityLow
Privileges requiredNone
User interactionNone
ScopeChanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Affected products

Gogs< 0.13.3

Frequently asked

Is CVE-2024-56731 being actively exploited?

CVE-2024-56731 is not in the CISA KEV catalog. Its EPSS exploit probability is 1.15%.

How severe is CVE-2024-56731?

CVE-2024-56731 has a CVSS 3.1 base score of 10.0, rated critical. EPSS estimates a 1.15% probability of exploitation.

Which products are affected by CVE-2024-56731?

Affected products include Gogs.

How do I fix CVE-2024-56731?

Upgrade affected software to a fixed version, for example Gogs 0.13.3 or later, then confirm no affected versions remain in your inventory.

How Secuno handles this

Secuno correlates vulnerabilities like CVE-2024-56731 against the real software inventory on every managed device, every day. Rather than a static severity, each match is scored in context: exploit availability, EPSS, the asset's exposure, and business criticality decide where it lands in the queue. If an affected version is present anywhere across your portfolio, it surfaces automatically with a prioritised remediation path.

Get Patch this first every Monday

Five vulnerabilities that matter this week, ranked on real exploitation. Plain language, one email, no spam.

You can unsubscribe with one click from every issue. We handle your details as described in our privacy policy.

Data from the NVD, CISA KEV catalog and FIRST EPSS. CVSS 3.1 base score shown where available.