Improper Control of Generation of Code ('Code Injection') in GitLab
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- None · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA. Impact type from CWE-94.
Summary
An issue has been discovered in GitLab affecting all versions before 16.0.8, all versions starting from 16.1 before 16.1.3, all versions starting from 16.2 before 16.2.2. The main branch of a repository with a specially designed name allows an attacker to create repositories with malicious code.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| GitLab | GitLab | before 16.0.8; 16.1.0 to before 16.1.3; 16.2.0 to before 16.2.2 | 16.0.8, 16.1.3, 16.2.2 | Patch available | CNA |
- GitLab VendorGitLab Affected before 16.0.8; 16.1.0 to before 16.1.3; 16.2.0 to before 16.2.2 Fixed in 16.0.8, 16.1.3, 16.2.2 Patch available CNA
Remediation
- Fix · CNA GitLab (GitLab) Fixed in 16.0.8, 16.1.3, 16.2.2
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
GitLab 16.0.8, 16.1.3, 16.2.2
5 records Highest priority Priority HIGH 1 HIGH, 3 MEDIUM, 1 LOW
Other records, highest priority first
- TI-2023-03709 Inefficient Regular Expression Complexity in GitLabPriority HIGH 72
- TI-2023-03266 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in GitLabPriority MEDIUM 60
- TI-2023-01899 Missing Authorization in GitLabPriority MEDIUM 53
Timeline
- 2026-10-02 Threatist record created from CVE-2023-3401
- 2026-10-03 Alias added: GHSA-722v-49rj-hh57
References
Exploit 1
Other 1
More Gitlab vulnerabilities
- TI-2026-71508 Integer overflow in GitLab allows code execution on the server KEVCVSS 3.1CRITICAL 10.0
- TI-2026-58817 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in GitLab KEVCVSS 3.1CRITICAL 10.0
- TI-2023-06425 Weak Password Recovery Mechanism for Forgotten Password in GitLab KEVCVSS 3.1CRITICAL 10.0
- TI-2021-05191 Code injection in GitLab KEVCVSS 3.1CRITICAL 10.0
- TI-2021-05161 Server-side request forgery in GitLab KEVCVSS 3.1CRITICAL 9.8
- TI-2022-02763 Injection in GitLab CVSS 3.1CRITICAL 9.9
Sources
- CVE-2023-3401 · CVE Program
- CVE-2023-3401 · NVD
- FIRST EPSS
- GHSA-722v-49rj-hh57 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences