Enterprise Server: Use of Externally-Controlled Input to Select Classes or Code
CVE-2024-0200 is a critical-severity use of externally-controlled input to select classes or code vulnerability in Enterprise Server from GitHub, with a CVSS 3.1 base score of 9.8 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. The record lists versions 3.8.13, 3.9.8, 3.10.5 as the first without the flaw, so updating Enterprise Server to one of those releases or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 71.7% chance of exploitation within 30 days, which is in the top 0.57% of all scored CVEs.
Exploitation in the next 30 days is more likely than not, according to EPSS.
What to do
- Update Enterprise Server to 3.8.13 or 3.9.8 or 3.10.5 or 3.11.3, whichever matches your release line, or a later version.
- Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| GitHub | Enterprise Server | 3.8.0 up to, but not including, 3.8.13; 3.9.0 up to, but not including, 3.9.8; 3.10.0 up to, but not including, 3.10.5; 3.11.0 up to, but not including, 3.11.3; 3.8.0 | 3.8.13, 3.9.8, 3.10.5, 3.11.3 |
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- NoneNo account or login is needed.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- HighData or code can be modified at will.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 7.2 | High | CNA (github.com) |
| CVSS 3.1 | 9.8 | Critical | NVD |
Official description
An unsafe reflection vulnerability was identified in GitHub Enterprise Server that could lead to reflection injection. This vulnerability could lead to the execution of user-controlled methods and remote code execution. To exploit this bug, an actor would need to be logged into an account on the GHES instance with the organization owner role. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.12 and was fixed in versions 3.8.13, 3.9.8, 3.10.5, and 3.11.3. This vulnerability was reported via the GitHub Bug Bounty program.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Use of Externally-Controlled Input to Select Classes or Code
The product uses external input with reflection to select which classes or code to use, but it does not sufficiently prevent the input from selecting improper classes or code.
How developers prevent this class of flaw
- Refactor your code to avoid using reflection.
- Do not use user-controlled inputs to select and load classes or code.
- Apply strict input validation by using allowlists or indirect selection to ensure that the user is only selecting allowable classes or code.
More Use of Externally-Controlled Input to Select Classes or Code vulnerabilities (CWE-470)
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: total).
- Record last changed materially (score, affected products, status or references).
References
Patches and release notes
- docs.github.com/en/[email protected]/admin/release-notes#3.10.5Release Notes
- docs.github.com/en/[email protected]/admin/release-notes#3.11.3Release Notes
- docs.github.com/en/[email protected]/admin/release-notes#3.8.13Release Notes
- docs.github.com/en/[email protected]/admin/release-notes#3.9.8Release Notes
Other vulnerabilities in Enterprise Server
- 7.7 High severity
- 8.8 High severity
- 9.8 Critical severity
- 8.8 High severity
- 7.5 High severity
- 7.4 High severity
Recent Use of Externally-Controlled Input to Select Classes or Code vulnerabilities
- 8.8 High severity
- 8.8 High severity
- 8.8 High severity
- 7.3 High severity
- 9.8 Critical severity
- 7.8 High severity
Spotted an error? Tell us.