CVE-2022-4037 in Gitlab
An issue has been discovered in GitLab CE/EE affecting all versions before 15.5.7, all versions starting from 15.6 before 15.6.4, all versions starting from 15.7 before 15.7.2. A race condition can lead to verified email forgery and takeover of third-party accounts when using GitLab as an OAuth provider.
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, high complexity, low privileges required, no user interaction needed, can impact systems beyond the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Gitlab | Gitlab | < 15.5.7 ≥ 15.6.0, < 15.6.4 ≥ 15.7.0, < 15.7.2 |
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
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
An issue has been discovered in GitLab CE/EE affecting all versions before 15.5.7, all versions starting from 15.6 before 15.6.4, all versions starting from 15.7 before 15.7.2. A race condition can lead to verified email forgery and takeover of third-party accounts when using GitLab as an OAuth provider.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2022-4037 |
|---|---|
| BreachSpider ID | BS-2023-GLOBAL-339352-H |
| CVSS vector | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H |
| Published | 2023-01-12 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-362: Race Condition
Software behavior depends on event timing that is not enforced, allowing attackers to exploit the timing window.
Related attack patterns (CAPEC)
CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions via CWE-362
CAPEC-26 Leveraging Race Conditions via CWE-362
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A race condition vulnerability in GitLab CE/EE allows for verified email forgery and takeover of third-party accounts when GitLab is used as an OAuth provider.
An attacker can exploit a race condition to forge verified emails and take over third-party accounts by manipulating the OAuth authentication process in GitLab.
Questions
What is CVE-2022-4037?
A race condition vulnerability in GitLab CE/EE allows for verified email forgery and takeover of third-party accounts when GitLab is used as an OAuth provider.
What is the CVSS score for CVE-2022-4037?
CVE-2022-4037 has CVSS 8.5 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H. EPSS: 0.7%.
Is CVE-2022-4037 actively exploited?
No confirmed active exploitation of CVE-2022-4037 as of 2026-09-25.
How do I remediate CVE-2022-4037?
Priority: IMMEDIATE. PSIRT: [email protected]
What systems are affected by CVE-2022-4037?
CVE-2022-4037 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.