Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2024-56731

10.0 · CRITICAL
Published Jun 24, 2025 gogs CWE-552 EPSS 0.96% (59th pctl)

Overview

CVE-2024-56731 is a critical-severity vulnerability affecting gogs gogs. It was published on June 24, 2025 and has a CVSS 3.1 base score of 10.0 (CRITICAL).

This vulnerability has a CVSS 3.1 base score of 10.0, rated CRITICAL. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

Technical 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.

Remediation

Check the references section for vendor advisories and patches from gogs. Update gogs to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
gogs gogs >= 0, < 0.13.3 Affected

Frequently Asked Questions

What is CVE-2024-56731?

CVE-2024-56731 is a critical-severity vulnerability affecting gogs gogs. It was published on June 24, 2025 and has a CVSS 3.1 base score of 10.0 (CRITICAL).

How severe is CVE-2024-56731?

This vulnerability has a CVSS 3.1 base score of 10.0, rated CRITICAL. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

How do I fix or remediate CVE-2024-56731?

Check the references section for vendor advisories and patches from gogs. Update gogs to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2024-56731?

CyberStrike's AI-powered security agents can automatically detect CVE-2024-56731 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.