SecurityContext

CVE-2022-39304: ghinstallation - Information Disclosure

  • Cve: CVE-2022-39304
  • Name: ghinstallation - Information Disclosure
  • Description: ghinstallation provides transport, which implements http.RoundTripper to provide authentication as an installation for GitHub Apps. In ghinstallation version 1, when the request to refresh an installation token failed, the HTTP request and response would be returned for debugging. The request contained the bearer JWT for the App, and was returned back to clients. This token is short lived (10 minute maximum). This issue has been patched and is available in version 2.0.0.
  • Impact: Sensitive information such as the bearer JWT could be exposed, risking token theft and unauthorized access.
  • Remediation: Upgrade to version 2.0.0 or later.
  • Vulnerability impact: information_disclosure
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 4.7
  • Cvss vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
  • Epss score: 0.00393
  • Epss percentile: 0.34221
  • Assignee: [email protected]
  • Published at: 2022-12-20T20:15:10Z
  • Age in days: 1435
  • Modified at: 2026-06-17T04:58:06Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 4
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-39304
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: vulnerability type, requirements, hackerone

Cwe

IdName
CWE-209Generation of Error Message Containing Sensitive Information

Public exploits

UrlSourceAdded date
https://github.com/bradleyfalzon/ghinstallation/blob/24e56b3fb7669f209134a01eff731d7e2ef72a5c/transport.go#L172-L174nvd2022-12-20

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/bradleyfalzon/ghinstallation/commit/d24f14f8be70d94129d76026e8b0f4f9170c8c3ePatch, Third Party Advisory
https://github.com/bradleyfalzon/ghinstallation/security/advisories/GHSA-h4q8-96p6-jcgrPatch, Third Party Advisory
https://github.com/bradleyfalzon/ghinstallation/blob/24e56b3fb7669f209134a01eff731d7e2ef72a5c/transport.go#L172-L174Exploit, Third Party Advisory
https://docs.github.com/en/developers/apps/building-github-apps/authenticating-with-github-apps#authenticating-as-an-installationTechnical Description, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
ghinstallation_project:ghinstallation< 2.0.0nonvd/v1/products/ghinstallation_project/ghinstallation

Projects

RepositoryLink kindsIndexedUrl
bradleyfalzon/ghinstallationcommit, package, security_advisoryyes/v1/repositories/bradleyfalzon/ghinstallation

Index

  • Repositories: 3
  • Repositories high signal: 2
  • Packages: 1

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2022-12-20
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts