10

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

Analyzed
AliasesGHSA-wj44-9vcg-wjq7GO-2025-3776
Published 24-06-2025Last modified 25-06-2025

Vulnerability summary

CVE-2024-56731 is a critical (CVSS 10.0) vulnerability in gogs. EPSS estimates a 1.15% chance of exploitation in the next 30 days, higher than 66.9% of scored vulnerabilities.

Priority
Prioritisesevere

Severe, CVSS 10 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 03-11-2026)

Source freshness unavailable

How is this decided?
CVSS score
10.0/10
010
Critical · v3.1 (CVE.org)
EPSS score
1.15%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 1 · Related 1

Timeline

  1. 24-06-2025
    PublishedVulnerability first disclosed.
  2. 25-06-2025
    Last modifiedVulnerability information updated.

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 metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

1.15%

Chance of exploitation in the next 30 days

Percentile

67%

Versus all other CVEs

30-day change

No change 0.00 pp

From 1.15% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Gogs1 product
Gogs.io1 product
  • gogs< 0.13.3

2 vendors · 2 products

References

6 links