# CVE-2021-22862: Improper access control in GitHub Enterprise Server leading to the disclosure of Actions secrets to forks

- Severity: Medium 6.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.85%, higher than 59% of CVEs (2026-12-01)
- Published: 2021-03-03T03:25:22.000Z
- Modified: 2026-06-17T03:37:54.070Z
- Weaknesses: CWE-285
- Assigned by: GitHub_P

## Description

An improper access control vulnerability was identified in GitHub Enterprise Server that allowed an authenticated user with the ability to fork a repository to disclose Actions secrets for the parent repository of the fork. This vulnerability existed due to a flaw that allowed the base reference of a pull request to be updated to point to an arbitrary SHA or another pull request outside of the fork repository. By establishing this incorrect reference in a PR, the restrictions that limit the Actions secrets sent a workflow from forks could be bypassed. This vulnerability affected GitHub Enterprise Server version 3.0.0, 3.0.0.rc2, and 3.0.0.rc1. This vulnerability was reported via the GitHub Bug Bounty program.

(As written by CVE List.)

## Affected

- GitHub GitHub Enterprise Server: from 3.0 before 3.0.1
- github github: 3.0.0

## Every score

- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:P/I:N/A:N`

## References

- <https://docs.github.com/en/enterprise-server%403.0/admin/release-notes#3.0.1>

## Sources

- CVE List: [CVE-2021-22862](https://www.cve.org/CVERecord?id=CVE-2021-22862), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-22862](https://nvd.nist.gov/vuln/detail/CVE-2021-22862), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-22862 · Whole record: https://cve.day/CVE-2021-22862.json · Rebuilt by cve.day 2026-11-25T22:58:00.120Z
