CVE-2022-1162 in Gitlab
A hardcoded password was set for accounts registered using an OmniAuth provider (e.g. OAuth, LDAP, SAML) in GitLab CE/EE versions 14.7 prior to 14.7.7, 14.8 prior to 14.8.5, and 14.9 prior to 14.9.2 allowing attackers to potentially take over accounts
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication 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 | ≥ 14.7.0, < 14.7.7 ≥ 14.8.0, < 14.8.5 ≥ 14.9.0, < 14.9.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 | Reported · reference |
Official description
A hardcoded password was set for accounts registered using an OmniAuth provider (e.g. OAuth, LDAP, SAML) in GitLab CE/EE versions 14.7 prior to 14.7.7, 14.8 prior to 14.8.5, and 14.9 prior to 14.9.2 allowing attackers to potentially take over accounts
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2022-1162 |
|---|---|
| BreachSpider ID | BS-2022-GLOBAL-305323-C |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2022-04-04 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-798: Use of Hard-Coded Credentials
Software contains embedded passwords or keys that cannot be changed by the administrator.
Related attack patterns (CAPEC)
CAPEC-70 Try Common or Default Usernames and Passwords via CWE-798
CAPEC-191 Read Sensitive Constants Within an Executable via CWE-798
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A hardcoded password vulnerability in GitLab CE/EE versions prior to 14.7.7, 14.8.5, and 14.9.2 allows attackers to potentially take over user accounts registered via OmniAuth providers.
Attackers can exploit the hardcoded password to authenticate as any user who registered using an OmniAuth provider, such as OAuth, LDAP, or SAML, without needing the user's actual credentials.
Questions
What is CVE-2022-1162?
A hardcoded password vulnerability in GitLab CE/EE versions prior to 14.7.7, 14.8.5, and 14.9.2 allows attackers to potentially take over user accounts registered via OmniAuth providers.
What is the CVSS score for CVE-2022-1162?
CVE-2022-1162 has CVSS 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 46.0%.
Is CVE-2022-1162 actively exploited?
Public exploit available for CVE-2022-1162. Exploitation risk elevated.
How do I remediate CVE-2022-1162?
Priority: IMMEDIATE. PSIRT: [email protected]
What systems are affected by CVE-2022-1162?
CVE-2022-1162 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.