Skip to content
OpenAdvisories
Critical · 10.0 CVE-2024-56731 EUVD-2024-54695GHSA-wj44-9vcg-wjq7GO-2025-3776

Gogs deletion of internal files allows remote command execution

Published Jun 24, 2025 · Updated Jun 25, 2025 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
gogs gogs < 0.13.3 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Tumbleweed govulncheck-vulndb 0.0.20250730T213748-1.1 openSUSE-SU-2025:15405-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go gogs.io/gogs < 0.13.3 0.13.3 GHSA-wj44-9vcg-wjq7

Advisories 2

References