CVE-2016-4340 in Gitlab
The impersonate feature in Gitlab 8.7.0, 8.6.0 through 8.6.7, 8.5.0 through 8.5.11, 8.4.0 through 8.4.9, 8.3.0 through 8.3.8, and 8.2.0 through 8.2.4 allows remote authenticated users to "log in" as any other user via unspecified vectors.
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Gitlab | Gitlab | 8.2.0 8.2.1 8.2.2 8.2.3 8.2.4 8.3.0+39 more8.3.1 8.3.2 8.3.3 8.3.4 8.3.5 8.3.6 8.3.7 8.3.8 8.4.0 8.4.1 8.4.2 8.4.3 8.4.4 8.4.5 8.4.6 8.4.7 8.4.8 8.4.9 8.5.0 8.5.1 8.5.2 8.5.3 8.5.4 8.5.5 8.5.6 8.5.7 8.5.8 8.5.9 8.5.10 8.5.11 8.6.0 8.6.1 8.6.2 8.6.3 8.6.4 8.6.5 8.6.6 8.6.7 8.7.0 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Reported · reference |
Official description
The impersonate feature in Gitlab 8.7.0, 8.6.0 through 8.6.7, 8.5.0 through 8.5.11, 8.4.0 through 8.4.9, 8.3.0 through 8.3.8, and 8.2.0 through 8.2.4 allows remote authenticated users to "log in" as any other user via unspecified vectors.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2016-4340 |
|---|---|
| BreachSpider ID | BS-2017-GLOBAL-169600-H |
| CVSS vector | CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Published | 2017-01-23 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-264: Permissions, Privileges, and Access Controls
Broad class covering failures in permission enforcement. Deprecated in favor of CWE-284, CWE-862, CWE-863.
Analysis AI-written, not human-reviewed
A vulnerability in GitLab's impersonate feature allows authenticated users to log in as any other user, potentially leading to unauthorized access and privilege escalation.
The attack involves an authenticated user exploiting the impersonate feature to gain unauthorized access to another user's account. The exact vectors are unspecified, but the vulnerability is present in multiple versions of GitLab.
Questions
What is CVE-2016-4340?
A vulnerability in GitLab's impersonate feature allows authenticated users to log in as any other user, potentially leading to unauthorized access and privilege escalation.
What is the CVSS score for CVE-2016-4340?
CVE-2016-4340 has CVSS 8.8 (High). Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. EPSS: 10.1%.
Is CVE-2016-4340 actively exploited?
Public exploit available for CVE-2016-4340. Exploitation risk elevated.
How do I remediate CVE-2016-4340?
Priority: IMMEDIATE. Advisory: https://gitlab.com/gitlab-org/gitlab-ce/issues/15548 PSIRT: [email protected]
What systems are affected by CVE-2016-4340?
CVE-2016-4340 affects Gitlab Gitlab.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Gitlab","product":"Gitlab","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.