GHSA-hw4x-mcx5-9q36: Withdrawn Advisory Teleport Proxy And Teleport Agents: Vulnerability

CRITICAL
Published
Advisory Summary

GHSA-hw4x-mcx5-9q36 is a CRITICAL teleport proxy and teleport agents: vulnerability (General Security Weakness) affecting Withdrawn Advisory libraries in the Go ecosystem. The issue involves teleport proxy and teleport agents: ssrf to arbitrary hosts is possible from low privileged users. Remediation is available by upgrading affected packages to version 14.2.4, 13.4.13, 12.4.31.

GHSA-hw4x-mcx5-9q36 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-hw4x-mcx5-9q36
Severity CRITICAL
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Withdrawn Advisory
Package Ecosystem Go
Published Date
Last Updated

How to Fix GHSA-hw4x-mcx5-9q36

To remediate this vulnerability, upgrade all affected Withdrawn Advisory 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/gravitational/teleport fixed: 14.2.4
Upgrade github.com/gravitational/teleport to 14.2.4
github.com/gravitational/teleport fixed: 13.4.13
Upgrade github.com/gravitational/teleport to 13.4.13
github.com/gravitational/teleport fixed: 12.4.31
Upgrade github.com/gravitational/teleport to 12.4.31
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/gravitational/teleport

How to Check if You Are Affected

To determine whether your application is affected by GHSA-hw4x-mcx5-9q36, inspect your project dependencies for Withdrawn Advisory:

inspect dependencies for github.com/gravitational/teleport

Analyze the terminal output to locate any version of Withdrawn Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 14.2.4), 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 General Security Weakness. In Withdrawn Advisory, 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

## Withdrawn Advisory This advisory has been withdrawn because the vulnerability affects a binary, not a library in a [supported ecosystem](https://github.com/github/advisory-database#supported-ecosystems). Therefore, users of the library should not receive alerts. This link is maintained to preserve external references. ## Original Description ### Impact An authenticated attacker with valid credentials (user or host) can make non-blind Server-Side Request Forgery (SSRF) through the proxy and/or agents to arbitrary hosts. During investigation of this functionality, it was discovered that there are several permutations where this SSRF is possible. This release addresses all but one: a root proxy administrator with access to the root proxy credentials can make requests through leaf proxies in Trusted Clusters. This behavior will be restricted in future releases. For customers using Teleport in a Trusted Cluster configuration, we encourage leaf clusters to have network restrictions in place to mitigate SSRF. For example, we recommend restricting outbound network connections to only the Auth Service, your SSO provider, and any agents, databases or applications needed to be accessed from the proxy. If running in a cloud environment pay careful attention to what cloud resources are accessible from the proxy. ### Patches Fixed in versions 14.2.4, 13.4.13 and 12.4.31. ### Workarounds Strict network controls from the Teleport Proxy and Teleport Agents reduce the potential exposure from this issue. ### References * Fixed in PR: https://github.com/gravitational/teleport/pull/36127 * https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html#network-layer * https://www.cyber.gov.au/resources-business-and-government/maintaining-devices-and-systems/system-hardening-and-administration/network-hardening/implementing-network-segmentation-and-segregation

GHSA-hw4x-mcx5-9q36 Affected Withdrawn Advisory Versions

3 component(s)
Fixed Versions:
14.2.413.4.1312.4.31
Product / Package Ecosystem Affected Versions Fixed Version
github.com/gravitational/teleport
Go
≥ 14.0.0
< 14.2.4
14.2.4
github.com/gravitational/teleport
Go
≥ 13.0.0
< 13.4.13
13.4.13
github.com/gravitational/teleport
Go
< 12.4.31
12.4.31

References

Frequently Asked Questions

What is GHSA-hw4x-mcx5-9q36?
GHSA-hw4x-mcx5-9q36 is a security vulnerability in Withdrawn Advisory involving Teleport Proxy and Teleport Agents: SSRF to arbitrary hosts is possible from low privileged users under General Security Weakness.
Which Withdrawn Advisory versions are affected?
Affected versions include releases prior to 14.2.4, 13.4.13, 12.4.31 across affected packages: github.com/gravitational/teleport.
What version fixes GHSA-hw4x-mcx5-9q36?
Upgrading to 14.2.4, 13.4.13, 12.4.31 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/gravitational/teleport affected?
Yes, github.com/gravitational/teleport is affected in releases prior to 14.2.4, 13.4.13, 12.4.31. Upgrade your dependency to 14.2.4, 13.4.13, 12.4.31 or later.
What CWE is associated with GHSA-hw4x-mcx5-9q36?
GHSA-hw4x-mcx5-9q36 is classified under General Security Weakness.
How can I check Go dependencies for GHSA-hw4x-mcx5-9q36?
Run the dependency tree command: 'inspect dependencies for github.com/gravitational/teleport'. 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-hw4x-mcx5-9q36",
  "modified" : "2024-09-06T21:40:28Z",
  "published" : "2024-01-03T21:28:37Z",
  "withdrawn" : "2024-01-23T12:50:39Z",
  "aliases" : [ ],
  "summary" : "Withdrawn Advisory: Teleport Proxy and Teleport Agents: SSRF to arbitrary hosts is possible from low privileged users",
  "details" : "## Withdrawn Advisory\nThis advisory has been withdrawn because the vulnerability affects a binary, not a library in a [supported ecosystem](https://github.com/github/advisory-database#supported-ecosystems). Therefore, users of the library should not receive alerts. This link is maintained to preserve external references.\n\n## Original Description\n\n### Impact\nAn authenticated attacker with valid credentials (user or host) can make non-blind Server-Side Request Forgery (SSRF) through the proxy and/or agents to arbitrary hosts.\n\nDuring investigation of this functionality, it was discovered that there are several permutations where this SSRF is possible. This release addresses all but one: a root proxy administrator with access to the root proxy credentials can make requests through leaf proxies in Trusted Clusters. This behavior will be restricted in future releases. For customers using Teleport in a Trusted Cluster configuration, we encourage leaf clusters to have network restrictions in place to mitigate SSRF. For example, we recommend restricting outbound network connections to only the Auth Service, your SSO provider, and any agents, databases or applications needed to be accessed from the proxy. If running in a cloud environment pay careful attention to what cloud resources are accessible from the proxy.\n\n### Patches\nFixed in versions 14.2.4, 13.4.13 and 12.4.31.\n\n### Workarounds\nStrict network controls from the Teleport Proxy and Teleport Agents reduce the potential exposure from this issue.\n\n### References\n* Fixed in PR: https://github.com/gravitational/teleport/pull/36127\n* https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html#network-layer\n* https://www.cyber.gov.au/resources-business-and-government/maintaining-devices-and-systems/system-hardening-and-administration/network-hardening/implementing-network-segmentation-and-segregation\n",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/gravitational/teleport"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "14.0.0"
      }, {
        "fixed" : "14.2.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/gravitational/teleport"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "13.0.0"
      }, {
        "fixed" : "13.4.13"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/gravitational/teleport"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "12.4.31"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/gravitational/teleport/security/advisories/GHSA-hw4x-mcx5-9q36"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/gravitational/teleport/pull/36127"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/gravitational/teleport/commit/bb2d67d357e868254a21ed7cb132030d7bf9fcbc"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/gravitational/teleport"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-01-03T21:28:37Z",
    "nvd_published_at" : null
  }
}