Description
A server-side request forgery (SSRF) vulnerability was identified in the GitHub Enterprise Server notebook viewer that allowed an attacker to access internal services by exploiting URL parser confusion between the validation layer and the HTTP request library. The hostname validation used a different URL parser than the request library, enabling a crafted URL to pass validation while directing the request to an unintended host. Exploitation required network access to the GitHub Enterprise Server instance. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.21 and was fixed in versions 3.16.18, 3.17.15, 3.18.9, 3.19.6, and 3.20.2. This vulnerability was reported via the GitHub Bug Bounty program.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
GitHub Enterprise Server
Default version status: affected
3.16.0 to ≤ 3.16.17affected3.17.0 to ≤ 3.17.14affected3.18.0 to ≤ 3.18.8affected3.19.0 to ≤ 3.19.5affected3.20.0 to ≤ 3.20.1affected3.21.0unaffected
References
- https://docs.github.com/en/enterprise-server@3.16/admin/release-notes#3.16.18 ↗
- https://docs.github.com/en/enterprise-server@3.17/admin/release-notes#3.17.15 ↗
- https://docs.github.com/en/enterprise-server@3.18/admin/release-notes#3.18.9 ↗
- https://docs.github.com/en/enterprise-server@3.19/admin/release-notes#3.19.6 ↗
- https://docs.github.com/en/enterprise-server@3.20/admin/release-notes#3.20.2 ↗