Command Injection Affecting gogs.io/gogs/internal/db Open this link in a new tab package, versions <0.12.9


0.0
high
  • Exploit Maturity

    Proof of concept

  • Attack Complexity

    Low

  • Confidentiality

    High

  • Integrity

    High

  • Availability

    High

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • snyk-id

    SNYK-GOLANG-GOGSIOGOGSINTERNALDB-2863517

  • published

    9 Jun 2022

  • disclosed

    8 Jun 2022

  • credit

    1135

How to fix?

Upgrade gogs.io/gogs/internal/db to version 0.12.9 or higher.

Overview

Affected versions of this package are vulnerable to Command Injection in the file editor, by uploading a specially crafted config file into the repository .git directory. Exploiting this vulnerability is possible when the attacker deletes the original ./git/config file and replace it with the crafted one.