CVE-2022-39304

Medium

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.

SeverityMedium
CVSS5.0
Exploit probability—
ProductGhinstallation
PublishedDec 20, 2022
First seenDec 20, 2022
Weakness typeCWE-209CWE-209

How to fix

Update
  • ghinstallation_project ghinstallation2.0.0 or later
  • github.com/bradleyfalzon/ghinstallation2.0.0, 1.1.2-0.20210308182858-d24f14f8be70 or later

Affected products

ProductAffected versionsFixed in
ghinstallation_project ghinstallationv < 2.0.02.0.0
github.com/bradleyfalzon/ghinstallationGov < 2.0.0, v < 1.1.2-0.20210308182858-d24f14f8be702.0.0, 1.1.2-0.20210308182858-d24f14f8be70

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.