CVE-2023-3401 json
Improper Control of Generation of Code ('Code Injection') in GitLab
published 3y ago modified 2mo ago also BIT-gitlab-2023-3401 , EUVD-2023-44068
- cvss
- 4.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 48%
- public exploits
- 0
- none known
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.
Patch / fix
- bitnami gitlab 16.0.8, 16.1.3, 16.2.2
- GitLab GitLab 16.0.8, 16.1.3, 16.2.2
Is CVE-2023-3401 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 2y ago
Exploit prediction
0.58% chance of exploitation in the next 30 days, higher than 48% of all scored CVEs (FIRST EPSS, 2026-11-14).
Exploits and checks
- hackerone.com https://hackerone.com/reports/2031845 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 4.8 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N |
| NVD | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
| OSV | 3.1 | 4.8 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | gitlab | <16.0.8 >=16.1.0, <16.1.3 >=16.2.0, <16.2.2 |
16.0.8 16.1.3 16.2.2 |
Affected products
- GitLab GitLab
Classification
- Weakness
-
- CWE-94 Improper Control of Generation of Code
- Technology feeds
References
-
hackerone.com
/reports/2031845
technical-description, exploit, permissions-required, broken-link, web
-
gitlab.com
/gitlab-org/gitlab/-/issues/416252
issue-tracking, broken-link, web
-
nvd.nist.gov
/vuln/detail/CVE-2023-3401
web
Sources
- CVE List CVE-2023-3401
- NVD CVE-2023-3401
- OSV BIT-gitlab-2023-3401
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Enhance with deb and rpm package type records.