Live threats

All CVEs / Gogs

CVE-2024-39930Gogs

Critical 9.9

Priority
60
CVSS 3.1
9.9
EPSS
7.8%
probability of exploitation in 30 days · percentile 95
Auth required
Yes
Published
Jul 4, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-88
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

What happens

The built-in SSH server of Gogs through 0.13.0 allows argument injection in internal/ssh/ssh.go, leading to remote code execution. Authenticated attackers can exploit this by opening an SSH connection and sending a malicious --split-string env request if the built-in SSH server is activated. Windows installations are unaffected.

Original NVD text.

What to do

  1. Apply the vendor's security update for Gogs.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/gogs/gogs all no fixed version —
Go gogs.io/gogs < 0.13.1 0.13.1 go get gogs.io/gogs@v0.13.1

Per OSV / GitHub Advisories (GO-2024-2969, GHSA-vm62-9jw3-c8w3). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
gogsgogs≤ 0.13.0

Official sources

References

Links published by the sources. Open them with care.