Arbitrary Argument Injection Affecting github.com/gogs/gogs/internal/ssh package, versions *


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.05% (17th percentile)

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-GITHUBCOMGOGSGOGSINTERNALSSH-7424596
  • published 5 Jul 2024
  • disclosed 4 Jul 2024
  • credit Unknown

How to fix?

There is no fixed version for github.com/gogs/gogs/internal/ssh.

Overview

github.com/gogs/gogs/internal/ssh is a painless self-hosted Git service

Affected versions of this package are vulnerable to Arbitrary Argument Injection via the --split-string env argument, which is handled by internal/ssh/ssh.go when the built-in SSH server is enabled. A user with a valid SSH private key can cause arbitrary code to be executed on the server.

Note: Only applications that use the env binary are vulnerable, which is not included in the Windows distribution or the default BusyBox distribution.

CVSS Scores

version 4.0
version 3.1
Expand this section

Snyk

Recommended
6.5 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    None
  • Privileges Required (PR)
    Low
  • User Interaction (UI)
    None
  • Confidentiality (VC)
    None
  • Integrity (VI)
    None
  • Availability (VA)
    None
  • Confidentiality (SC)
    High
  • Integrity (SI)
    High
  • Availability (SA)
    High