CVE-2024-56731 Vulnerability Analysis & Exploit Details

CVE-2024-56731
Vulnerability Scoring

10.0
/10
Critical Risk

As a catastrophic security flaw, CVE-2024-56731 has severe implications, demanding immediate intervention.

Attack Complexity Details

  • Attack Complexity: Low
    Exploits can be performed without significant complexity or special conditions.
  • Attack Vector: Network
    Vulnerability is exploitable over a network without physical access.
  • Privileges Required: None
    No privileges are required for exploitation.
  • Scope: Changed
    Successful exploitation can impact components beyond the vulnerable component.
  • User Interaction: None
    No user interaction is necessary for exploitation.

CVE-2024-56731 Details

Status: Analyzed

Last updated: 🕣 21 Aug 2025, 20:43 UTC
Originally published on: 🕓 24 Jun 2025, 04:15 UTC

Time between publication and last update: 58 days

CVSS Release: version 3

CVSS3 Source

security-advisories@github.com

CVSS3 Type

Secondary

CVSS3 Vector

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

CVE-2024-56731 Vulnerability Summary

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.

Assessing the Risk of CVE-2024-56731

Access Complexity Graph

The exploitability of CVE-2024-56731 depends on two key factors: attack complexity (the level of effort required to execute an exploit) and privileges required (the access level an attacker needs).

Exploitability Analysis for CVE-2024-56731

With low attack complexity and no required privileges, CVE-2024-56731 is an easy target for cybercriminals. Organizations should prioritize immediate mitigation measures to prevent unauthorized access and data breaches.

Understanding AC and PR

A lower complexity and fewer privilege requirements make exploitation easier. Security teams should evaluate these aspects to determine the urgency of mitigation strategies, such as patch management and access control policies.

Attack Complexity (AC) measures the difficulty in executing an exploit. A high AC means that specific conditions must be met, making an attack more challenging, while a low AC means the vulnerability can be exploited with minimal effort.

Privileges Required (PR) determine the level of system access necessary for an attack. Vulnerabilities requiring no privileges are more accessible to attackers, whereas high privilege requirements limit exploitation to authorized users with elevated access.

CVSS Score Breakdown Chart

Above is the CVSS Sub-score Breakdown for CVE-2024-56731, illustrating how Base, Impact, and Exploitability factors combine to form the overall severity rating. A higher sub-score typically indicates a more severe or easier-to-exploit vulnerability.

CIA Impact Analysis

Below is the Impact Analysis for CVE-2024-56731, showing how Confidentiality, Integrity, and Availability might be affected if the vulnerability is exploited. Higher values usually signal greater potential damage.

  • Confidentiality: High
    Exploiting CVE-2024-56731 can result in unauthorized access to sensitive data, severely compromising data privacy.
  • Integrity: High
    CVE-2024-56731 could allow unauthorized modifications to data, potentially affecting system reliability and trust.
  • Availability: High
    CVE-2024-56731 can disrupt system operations, potentially causing complete denial of service (DoS).

CVE-2024-56731 References

External References

CWE Common Weakness Enumeration

CWE-552

CAPEC Common Attack Pattern Enumeration and Classification

  • Collect Data from Common Resource Locations CAPEC-150 An adversary exploits well-known locations for resources for the purposes of undermining the security of the target. In many, if not most systems, files and resources are organized in a default tree structure. This can be useful for adversaries because they often know where to look for resources or files that are necessary for attacks. Even when the precise location of a targeted resource may not be known, naming conventions may indicate a small area of the target machine's file tree where the resources are typically located. For example, configuration files are normally stored in the /etc director on Unix systems. Adversaries can take advantage of this to commit other types of attacks.
  • Probe System Files CAPEC-639 An adversary obtains unauthorized information due to improperly protected files. If an application stores sensitive information in a file that is not protected by proper access control, then an adversary can access the file and search for sensitive information.

Vulnerable Configurations

  • cpe:2.3:a:gogs:gogs:-:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:-:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.2.0:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.2.0:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.3.0:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.3.0:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.3.1:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.3.1:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.4.0:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.4.0:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.4.1:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.4.1:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.4.2:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.4.2:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.5.0:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.5.0:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.5.2:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.5.2:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.5.5:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.5.5:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.5.8:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.5.8:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.5.9:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.5.9:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.5.11:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.5.11:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.5.13:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.5.13:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.6.0:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.6.0:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.6.1:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.6.1:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.6.3:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.6.3:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.6.5:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.6.5:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.6.9:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.6.9:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.6.15:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.6.15:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.7.0:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.7.0:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.7.6:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.7.6:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.7.19:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.7.19:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.7.22:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.7.22:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.7.33:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.7.33:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.8.0:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.8.0:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.8.10:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.8.10:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.8.25:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.8.25:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.8.43:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.8.43:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.9.0:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.9.0:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.9.13:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.9.13:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.9.46:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.9.46:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.9.48:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.9.48:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.9.60:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.9.60:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.9.71:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.9.71:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.9.97:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.9.97:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.9.113:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.9.113:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.9.128:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.9.128:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.9.141:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.9.141:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.10:-:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.10:-:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.10.1:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.10.1:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.10.8:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.10.8:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.10.18:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.10.18:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.10:rc:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.10:rc:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.11:-:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.11:-:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.11.4:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.11.4:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.11.19:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.11.19:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.11.29:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.11.29:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.11.33:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.11.33:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.11.34:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.11.34:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.11.43:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.11.43:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.11.53:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.11.53:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.11.66:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.11.66:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.11.79:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.11.79:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.11.82.1218:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.11.82.1218:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.11.86:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.11.86:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.11.91:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.11.91:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.11:rc:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.11:rc:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.12:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.12:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.12.2:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.12.2:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.12.3:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.12.3:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.12.4:-:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.12.4:-:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.12.4:rc1:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.12.4:rc1:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.12.5:-:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.12.5:-:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.12.5:rc1:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.12.5:rc1:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.12.6:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.12.6:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.12.7:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.12.7:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.12.8:-:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.12.8:-:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.12.8:rc1:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.12.8:rc1:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.12.9:-:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.12.9:-:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.12.9:rc1:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.12.9:rc1:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.12.10:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.12.10:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.12.11:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.12.11:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.12.13:*:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.12.13:*:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.13.0:-:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.13.0:-:*:*:*:*:*:*
  • cpe:2.3:a:gogs:gogs:0.13.0:rc1:*:*:*:*:*:*
    cpe:2.3:a:gogs:gogs:0.13.0:rc1:*:*:*:*:*:*

Protect Your Infrastructure against CVE-2024-56731: Combat Critical CVE Threats

Stay updated with real-time CVE vulnerabilities and take action to secure your systems. Enhance your cybersecurity posture with the latest threat intelligence and mitigation techniques. Develop the skills necessary to defend against CVEs and secure critical infrastructures. Join the top cybersecurity professionals safeguarding today's infrastructures.

Other 5 Recently Published CVEs Vulnerabilities

  • CVE-2025-57800 – Audiobookshelf is an open-source self-hosted audiobook server. In versions 2.6.0 through 2.26.3, the application does not properly restrict redirec...
  • CVE-2025-57771 – Roo Code is an AI-powered autonomous coding agent that lives in users' editors. In versions prior to 3.25.5, Roo-Code fails to properly handle proc...
  • CVE-2025-57770 – The open-source identity infrastructure software Zitadel allows administrators to disable the user self-registration. Versions 4.0.0 to 4.0.2, 3.0....
  • CVE-2025-57105 – The DI-7400G+ router has a command injection vulnerability, which allows attackers to execute arbitrary commands on the device. The sub_478D28 func...
  • CVE-2025-55745 – UnoPim is an open-source Product Information Management (PIM) system built on the Laravel framework. Versions 0.3.0 and prior are vulnerable to CSV...