{"id":"CVE-2021-22862","aliases":["CVE-2021-22862"],"related":[],"kind":"vulnerability","state":"published","title":"Improper access control in GitHub Enterprise Server leading to the disclosure of Actions secrets to forks","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Se identificó una vulnerabilidad de control de acceso inadecuada en GitHub Enterprise Server que permitía a un usuario autenticado con la capacidad de bifurcar un repositorio revelar los secretos de las acciones para el repositorio padre de la bifurcación. Esta vulnerabilidad existía debido a un fallo que permitía actualizar la referencia base de un pull request para que apuntara a un SHA arbitrario o a otro pull request fuera del repositorio fork. Al establecer esta referencia incorrecta en un PR, las restricciones que limitan las Acciones secretas enviadas a un flujo de trabajo desde los forks podían ser eludidas. Esta vulnerabilidad afectaba a las versiones 3.0.0, 3.0.0.rc2 y 3.0.0.rc1 de GitHub Enterprise Server. Esta vulnerabilidad fue reportada a través del programa GitHub Bug Bounty","source":"nvd"}],"published":"2021-03-03T03:25:22.000Z","modified":"2026-06-17T03:37:54.070Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:P/I:N/A:N","score":4,"rating":"MEDIUM"}],"cwes":["CWE-285"],"affected":[{"ranges":[{"type":"custom","introduced":"3.0","fixed":"3.0.1","status":"affected"}],"vendor":"GitHub","product":"GitHub Enterprise Server","source":"cvelist"},{"ranges":[{"status":"affected","version":"3.0.0"},{"status":"affected","version":"3.0.0"},{"status":"affected","version":"3.0.0"}],"vendor":"github","product":"github","cpe":"cpe:2.3:a:github:github:3.0.0:-:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://docs.github.com/en/enterprise-server%403.0/admin/release-notes#3.0.1","tags":["x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]}],"credits":["Teddy Katz"],"assigner":"GitHub_P","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-22862","url":"https://www.cve.org/CVERecord?id=CVE-2021-22862","licence":"CVE Terms of Use","modified":"2024-08-03T18:51:07.479Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-22862","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-22862","licence":"Public domain","modified":"2026-06-17T03:37:54.070Z"}],"updatedAt":"2026-11-25T22:58:00.120Z","epss":{"score":0.00849,"percentile":0.59254,"date":"2026-12-01T12:00:22.000Z"}}