Authenticated code execution via crafted GitHub import responses
Published Oct 17, 2022 · Updated May 14, 2025
OS command injection in GitLab 11.3.4 through 15.1.4, 15.2 through 15.2.2, and 15.3.0 allows remote authenticated users to execute code. The GitHub import API trusts attacker-controlled Octokit Sawyer objects whose crafted conversion methods corrupt Redis command framing and inject Redis commands. API access and an attacker-controlled GitHub response server are required, and injected jobs can invoke arbitrary Bash commands in the GitLab server context.
Summary
What happened
OS command injection in GitLab 11.3.4 through 15.1.4, 15.2 through 15.2.2, and 15.3.0 allows remote authenticated users to execute code. The GitHub import API trusts attacker-controlled Octokit Sawyer objects whose crafted conversion methods corrupt Redis command framing and inject Redis commands. API access and an attacker-controlled GitHub response server are required, and injected jobs can invoke arbitrary Bash commands in the GitLab server context.
The record
- CVE
- CVE-2022-2884
- Published
- Oct 17, 2022
- Updated
- May 14, 2025
- Vendor
- GitLab
- Product
- GitLab
- Classifications
- CWE-78, T1059.004, T1190
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Oct 17, 2022CVE publishedPublication date reported by the CVE source.
- May 14, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=>=11.3.4, <15.1.5
- Affected versionversion=>=15.2, <15.2.3
- Affected versionversion=>=15.3, <15.3.1
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- RCE via GitHub import reproductionfunctional · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo