GitHub Enterprise Server
Stored cross-site scripting vulnerability in GitHub Enterprise Server allowed unauthorized SSH key addition to another user account
A stored cross-site scripting vulnerability was identified in GitHub Enterprise Server that allowed an organization member with permission to manage custom-property definitions and edit property values to add an attacker-controlled SSH authentication key to the personal account of another member through HTML stored in a single-select custom-property option. Exploitation required another definition manager in the same organization to attempt to remove the poisoned option while it was in use and save the definition with a valid sudo session. Repository access through the added key depended on the permissions of the victim and independent authorization controls. This vulnerability affected supported GitHub Enterprise Server prior to 3.23 and was fixed in versions 3.19.16, 3.20.12, 3.21.10, and 3.22.5. This vulnerability was reported via the GitHub Bug Bounty program.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 3.19.0, < 3.19.*
- >= 3.20.0, < 3.20.*
- >= 3.21.0, < 3.21.*
- >= 3.22.0, < 3.22.*
Fixed in 3.19.*, 3.19.16, 3.20.*, 3.20.12, 3.21.*, 3.21.10, 3.22.*, 3.22.5
Mitigation
Upgrade Enterprise Server to 3.19.* or 3.19.16 or 3.20.* or 3.20.12 or 3.21.* or 3.21.10 or 3.22.* or 3.22.5 or later.
References
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.