CVE-2022-46258
GitHub Enterprise Server vulnerability analysis and mitigation

Overview

CVE-2022-46258 is an incorrect authorization vulnerability discovered in GitHub Enterprise Server that allowed repository-scoped tokens with read/write access to modify workflows without proper permissions. The vulnerability was discovered by Cycode Labs and disclosed to GitHub through their bug bounty program on March 10, 2022, though it was initially marked as informational before being acknowledged as a security issue (Cycode Blog).

Technical details

The vulnerability relates to how GitHub handles permissions for modifying files in repositories through its API. Specifically, it allowed the creation of new workflows in repositories using workflow tokens without the required 'workflow' scope permissions by exploiting the Contents API. The vulnerability has a CVSS rating of 6.5 and is classified as CWE-863 (Incorrect Authorization) (Cycode Blog).

Impact

The vulnerability could allow any workflow to create additional workflows and effectively escalate its privileges, including gaining access to all encrypted secrets stored in GitHub Actions that are normally only accessible to privileged workflows. This could potentially lead to severe supply-chain attacks through exposure of sensitive information like cloud tokens and artifactory tokens (Cycode Blog).

Mitigation and workarounds

For GitHub Cloud users, no action is required as the vulnerability has been automatically patched. GitHub Enterprise Server users must update to non-vulnerable versions: 3.3.16, 3.4.11, 3.5.8, or 3.6.4. The vulnerability affects GitHub Enterprise Server versions before 3.7 (Cycode Blog).

Community reactions

GitHub initially marked the vulnerability report as informational on March 14, 2022, but later acknowledged it as a valid security issue on January 26, 2023. The company awarded a $4,000 bounty to the researchers who discovered the vulnerability (Cycode Blog).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management