Read the docs
TI-2021-05724 Aliases CVE-2021-22863GHSA-8p87-5p57-jm4v

Improper authorization in GitHub Enterprise Server

Priority LOW 37CWE-285Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
Security bypass
Confidentiality · integrity · availability
High · High · None
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA. Impact type from CWE-285.

Summary

An improper access control vulnerability was identified in the GitHub Enterprise Server GraphQL API that allowed authenticated users of the instance to modify the maintainer collaboration permission of a pull request without proper authorization. By exploiting this vulnerability, an attacker would be able to gain access to head branches of pull requests opened on repositories of which they are a maintainer. Forking is disabled by default for organization owned private repositories and would prevent this vulnerability. Additionally, branch protections such as required pull request reviews or status checks would prevent unauthorized commits from being merged without further review or validation. This vulnerability affected all versions of GitHub Enterprise Server since 2.12.22 and was fixed in versions 2.20.24, 2.21.15, 2.22.7 and 3.0.1. This vulnerability was reported via the GitHub Bug Bounty program.

Why it matters now

EPSS 0.01003 63rd percentileScored 2026-11-07
Fix Fixed GitHub Enterprise Server (GitHub): 2.20.24, 2.21.15, 2.22.7 +1

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
GitHubGitHub Enterprise Server2.20 to before 2.20.24; 2.21 to before 2.21.15; 2.22 to before 2.22.7; 3.0 to before 3.0.12.20.24, 2.21.15, 2.22.7, 3.0.1Patch availableCNA
  • GitHub Enterprise Server VendorGitHub Affected 2.20 to before 2.20.24; 2.21 to before 2.21.15; 2.22 to before 2.22.7; 3.0 to before 3.0.1 Fixed in 2.20.24, 2.21.15, 2.22.7, 3.0.1 Patch available CNA

CPE configurations NVD · 2

CPEVersionsRoleVendor
cpe:2.3:a:github:github:*:*:*:*:enterprise:*:*:*2.12.22 to before 2.20.24; 2.21.0 to before 2.21.15; 2.22.0 to before 2.22.7VulnerableGitHub
cpe:2.3:a:github:github:*:*:*:*:*:*:*:*3.0.0 to before 3.0.1VulnerableGitHub
  • cpe:2.3:a:github:github:*:*:*:*:enterprise:*:*:* Versions 2.12.22 to before 2.20.24; 2.21.0 to before 2.21.15; 2.22.0 to before 2.22.7 Vulnerable ·GitHub
  • cpe:2.3:a:github:github:*:*:*:*:*:*:*:* Versions 3.0.0 to before 3.0.1 Vulnerable ·GitHub

Remediation

  • Fix · CNA GitHub Enterprise Server (GitHub) Fixed in 2.20.24, 2.21.15, 2.22.7, 3.0.1

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    GitHub Enterprise Server 2.20.24, 2.21.15 and 2 more versions

    2 records Highest priority Priority LOW 2 LOW

    Other records, highest priority first

    • TI-2021-05722 Improper access control in GitHub Enterprise Server leading to unauthorized write access to forkable repositoriesPriority LOW 31

Timeline

  1. 2026-10-02 Threatist record created from CVE-2021-22863
  2. 2026-10-03 Alias added: GHSA-8p87-5p57-jm4v

References

  • TI-2017-13538 The Management Console in GitHub Enterprise 2.8.x before 2.8.7 has a deserialization… CVSS 3.0CRITICAL 9.8
  • TI-2020-08450 Improper access control in GitHub Enterprise Server leading to privilege escalation of organization member CVSS 3.1CRITICAL 9.8
  • TI-2020-08453 Unsafe configuration options in GitHub Pages leading to remote code execution on GitHub Enterprise Server CVSS 3.1HIGH 8.8
  • TI-2020-08452 Unsafe configuration options in GitHub Pages leading to remote code execution on GitHub Enterprise Server CVSS 3.1HIGH 8.8
  • TI-2012-01828 GitHub Enterprise before 20120304 does not properly restrict the use of a hash to provide… CVSS 3.1HIGH 7.5
  • TI-2021-05722 Improper access control in GitHub Enterprise Server leading to unauthorized write access to forkable repositories CVSS 3.1MEDIUM 6.5
See all 8 →

Sources