CyberSecBulletin
CVE-2022-23739NVD status: Modified

GitHub Enterprise Server: Incorrect Authorization

CVE-2022-23739 is a critical-severity incorrect authorization vulnerability in GitHub 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.3.16, 3.4.11, 3.5.8 as the first without the flaw, so updating GitHub Enterprise Server to one of those releases or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 1.28% chance of exploitation within 30 days, higher than 70% of scored CVEs.

Patch this week

Critical severity: a successful attack would have severe impact.

What to do

  1. Update GitHub Enterprise Server to 3.3.16 or 3.4.11 or 3.5.8 or 3.6.4, whichever matches your release line, or a later version.
  2. Update Enterprise Server to 3.3.16 or 3.4.11 or 3.5.8 or 3.6.4, whichever matches your release line, or a later version.
  3. Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.

Affected products and versions

VendorProductAffected versionsFixed in
GitHubGitHub Enterprise Server3.3 up to, but not including, 3.3.16; 3.4 up to, but not including, 3.4.11; 3.5 up to, but not including, 3.5.8; 3.6 up to, but not including, 3.6.4; 3.7 up to, but not including, 3.7.13.3.16, 3.4.11, 3.5.8, 3.6.4, 3.7.1
GitHubEnterprise Serverbefore 3.3.16; 3.4.0 up to, but not including, 3.4.11; 3.5.0 up to, but not including, 3.5.8; 3.6.0 up to, but not including, 3.6.4; 3.7.03.3.16, 3.4.11, 3.5.8, 3.6.4

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 systemScoreSeverityScored by
CVSS 3.19.8CriticalNVD
CVSS 3.19.8CriticalCISA (ADP)

Official description

An incorrect authorization vulnerability was identified in GitHub Enterprise Server, allowing for escalation of privileges in GraphQL API requests from GitHub Apps. This vulnerability allowed an app installed on an organization to gain access to and modify most organization-level resources that are not tied to a repository regardless of granted permissions, such as users and organization-wide projects. Resources associated with repositories were not impacted, such as repository file content, repository-specific projects, issues, or pull requests. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.7.1 and was fixed in versions 3.3.16, 3.4.11, 3.5.8, 3.6.4, 3.7.1. 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: Incorrect Authorization

The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.

How developers prevent this class of flaw

  • Divide the product into anonymous, normal, privileged, and administrative areas. Reduce the attack surface by carefully mapping roles with data and functionality. Use role-based access control (RBAC) to enforce the roles at the appropriate boundaries. Note that this approach may not protect against horizontal authorization, i.e., it will not protect a user from attacking others with the same role.
  • Ensure that access control checks are performed related to the business logic. These checks may be different than the access control checks that are applied to more generic resources such as files, connections, processes, memory, and database records. For example, a database may restrict access for medical records to a specific database user, but each record might only be intended to be accessible to the patient and the patient's doctor.
  • Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. For example, consider using authorization frameworks such as the JAAS Authorization Framework and the OWASP ESAPI Access Control feature.

More Incorrect Authorization vulnerabilities (CWE-863)

Timeline

  1. CVE record published.
  2. CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: partial).
  3. Record last changed materially (score, affected products, status or references).

References

Other vulnerabilities in GitHub Enterprise Server

All GitHub Enterprise Server vulnerabilities

Recent Incorrect Authorization vulnerabilities

Spotted an error? Tell us.