Gogs patches zero-day flaw that could enable remote code execution

· Original article ↗

Summary

Gogs released version 0.14.3 to fix a zero-day argument-injection flaw affecting releases through 0.14.2 and 0.15.0+dev. Authenticated users could compromise servers; Rapid7 recommends upgrading or restricting registration and repository creation.

Key points

  • The argument-injection flaw has no assigned CVE ID and affects Gogs releases up to 0.14.2 and 0.15.0+dev.
  • Exploitation requires a user account; default open registration can let an attacker create one.
  • An attacker who can enable rebase merging in a repository could exploit the flaw without another user's interaction.
  • The reported impacts include server compromise, access to private repositories, credential theft, lateral movement, and source-code modification.
  • Gogs maintainers released version 0.14.3 on June 7 to fix the flaw.
  • Rapid7 recommends upgrading; interim mitigations include disabling registration and limiting repository creation.

Article Details

Vulnerability Types
  • Argument injection
  • Remote code execution
Severity
Critical
Affected Versions
  • Gogs <= 0.14.2
  • Gogs 0.15.0+dev
Exploitation Status
unknown
Exploit Availability
unknown
Patch Status
available
Workarounds
  • Set DISABLE_REGISTRATION = true in app.ini to restrict user registration.
  • Set MAX_CREATION_LIMIT = 0 in app.ini, or restrict repository creation per user, to prevent users from creating repositories.

MITRE ATT&CK

CVE

People

Products