CVE-2024-34713: Github.com/cea hpc/sshproxy Sshproxy Vulnerable To SSH Option Vulnerability

LOW
Advisory Identifier: GHSA-jmqp-37m5-49wh
CVSS 3.5
CWE-77
Published
Advisory Summary

CVE-2024-34713 is a LOW (CVSS 3.5) sshproxy vulnerable to ssh option vulnerability (CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')) affecting Github.com/cea hpc/sshproxy libraries in the Go ecosystem. The issue involves sshproxy vulnerable to ssh option injection. Remediation is available by upgrading affected packages to version 1.6.3.

CVE-2024-34713 at a Glance

CVE Identifier CVE-2024-34713
GHSA Identifier GHSA-jmqp-37m5-49wh
Severity LOW
CVSS v3.1 Base Score 3.5
CWE Classification CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
Affected Product Github.com/cea hpc/sshproxy
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 3.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2024-34713

To remediate this vulnerability, upgrade all affected Github.com/cea hpc/sshproxy dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/cea-hpc/sshproxy fixed: 1.6.3
Upgrade github.com/cea-hpc/sshproxy to 1.6.3
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/cea-hpc/sshproxy

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-34713, inspect your project dependencies for Github.com/cea hpc/sshproxy:

inspect dependencies for github.com/cea-hpc/sshproxy

Analyze the terminal output to locate any version of Github.com/cea hpc/sshproxy in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.6.3), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection'), where the product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component. In Github.com/cea hpc/sshproxy, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact Any user authorized to connect to a ssh server using `sshproxy` can inject options to the `ssh` command executed by `sshproxy`. All versions of `sshproxy` are impacted. ### Patches The problem is patched starting on version 1.6.3 ### Workarounds The only workaround is to use the `force_command` option in `sshproxy.yaml`, but it's rarely relevant. ### References

CVE-2024-34713 Affected Github.com/cea hpc/sshproxy Versions

1 component(s)
Fixed Versions:
1.6.3
Product / Package Ecosystem Affected Versions Fixed Version
github.com/cea-hpc/sshproxy
Go
< 1.6.3
1.6.3

References

Frequently Asked Questions

What is CVE-2024-34713?
CVE-2024-34713 is a security vulnerability in Github.com/cea hpc/sshproxy involving sshproxy vulnerable to SSH option injection under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection').
Which Github.com/cea hpc/sshproxy versions are affected?
Affected versions include releases prior to 1.6.3 across affected packages: github.com/cea-hpc/sshproxy.
What version fixes CVE-2024-34713?
Upgrading to 1.6.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/cea-hpc/sshproxy affected?
Yes, github.com/cea-hpc/sshproxy is affected in releases prior to 1.6.3. Upgrade your dependency to 1.6.3 or later.
What is the CVSS score of CVE-2024-34713?
CVE-2024-34713 has a CVSS v3.1 base score of 3.5 (LOW) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2024-34713?
CVE-2024-34713 is classified under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection') (The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.).
How can I check Go dependencies for CVE-2024-34713?
Run the dependency tree command: 'inspect dependencies for github.com/cea-hpc/sshproxy'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-jmqp-37m5-49wh",
  "modified" : "2024-05-14T20:16:33Z",
  "published" : "2024-05-14T20:16:33Z",
  "aliases" : [ "CVE-2024-34713" ],
  "summary" : "sshproxy vulnerable to SSH option injection",
  "details" : "### Impact\nAny user authorized to connect to a ssh server using `sshproxy` can inject options to the `ssh` command executed by `sshproxy`.\nAll versions of `sshproxy` are impacted.\n\n### Patches\nThe problem is patched starting on version 1.6.3\n\n### Workarounds\nThe only workaround is to use the `force_command` option in `sshproxy.yaml`, but it's rarely relevant.\n\n### References\n\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/cea-hpc/sshproxy"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.6.3"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.6.2"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/cea-hpc/sshproxy/security/advisories/GHSA-jmqp-37m5-49wh"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-34713"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cea-hpc/sshproxy/commit/3b8bccc874dc4ca2c80c956cad65722abb46f0b9"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cea-hpc/sshproxy/commit/f7eabd05d5f0f951e160293692327cad9a7d9580"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/cea-hpc/sshproxy"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-77" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-14T20:16:33Z",
    "nvd_published_at" : "2024-05-14T16:17:27Z"
  }
}