p PatchFirst

CVE-2024-56731

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

CVSS 10.0 · Critical · EPSS 1.3%

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

  • gogsNo fix published

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Fixes in distributions

Affected products and versions

  • gogs

    Versions
    • < 0.13.3: Affected

    No fix published

Original sources

Check your server →