Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/cli/go-gh
  4. ›
  5. CVE-2024-53859

CVE-2024-53859: `auth.TokenForHost` violates GitHub host security boundary when sourcing authentication token within a codespace

November 27, 2024 (updated December 12, 2024)

A security vulnerability has been identified in go-gh that could leak authentication tokens intended for GitHub hosts to non-GitHub hosts when within a codespace.

References

  • docs.github.com/en/apps/using-github-apps/reviewing-and-revoking-authorization-of-github-apps
  • docs.github.com/en/authentication/keeping-your-account-and-data-secure/reviewing-your-security-log
  • docs.github.com/en/enterprise-cloud@latest/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/identifying-audit-log-events-performed-by-an-access-token
  • docs.github.com/en/enterprise-cloud@latest/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens
  • github.com/advisories/GHSA-55v3-xh23-96gh
  • github.com/cli/go-gh
  • github.com/cli/go-gh/blob/71770357e0cb12867d3e3e288854c0aa09d440b7/pkg/auth/auth.go
  • github.com/cli/go-gh/security/advisories/GHSA-55v3-xh23-96gh
  • nvd.nist.gov/vuln/detail/CVE-2024-53859
  • pkg.go.dev/vuln/GO-2024-3295

Code Behaviors & Features

Detect and mitigate CVE-2024-53859 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions

Solution

Unfortunately, there is no solution available yet.

Impact 6.5 MEDIUM

CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor

Source file

go/github.com/cli/go-gh/CVE-2024-53859.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:01 +0000.