Cyber Resilience

CVE-2022-1162

Exposed Creds in Gitlab 14.7.0 – 14.7.7

Public PoCHigh EPSSExposed Creds
Published
04 April 2022
Modified
21 November 2024
Patch / advisory
CVSS Score v3.1 9.1
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
EPSS Score 0.76 99.5th percentile
Risk Priority 92 floored blend · peak EPSS

Summary

CVE-2022-1162 is a critical-severity Use of Hard-coded Credentials (CWE-798) vulnerability in Gitlab Gitlab. Its CVSS base score is 9.1 (Critical).

Operationally, ranked in the top 0.5% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

The strongest mitigations our analysis identified map to AC-3 (Access Enforcement) and IA-5 (Authenticator Management) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

A hardcoded password vulnerability affects GitLab Community Edition and Enterprise Edition in versions 14.7 prior to 14.7.7, 14.8 prior to 14.8.5, and 14.9 prior to 14.9.2. The flaw stems from CWE-798 and applies specifically to user accounts created through OmniAuth providers such as OAuth, LDAP, or SAML, where a static credential is assigned instead of a properly generated one.

Unauthenticated remote attackers can exploit the issue over the network to authenticate as affected accounts and potentially take them over, resulting in high confidentiality and integrity impact with no user interaction required. The CVSS 9.1 score reflects the ease of exploitation and the direct account-compromise outcome.

Public references, including GitLab’s CVE record and security issue tracker, direct administrators to upgrade to the fixed releases. Exploit code has been published on PacketStorm, confirming that working attack methods are available.

The EPSS score has reached a peak of 0.8972 with a current value of 0.8761, indicating sustained and substantial exploitation interest after disclosure.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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

CWE(s)

Related Threats

Likely ATT&CK TechniquesAI

Techniques this vulnerability likely enables, inferred from its description, weakness type, and attributed-actor tradecraft. Confidence is per-technique.

T1078 Valid Accounts Stealthconfidence: HIGH
Hardcoded password in OmniAuth-created accounts directly enables use of valid credentials for unauthorized access.
T1078.001 Default Accounts Stealthconfidence: MEDIUM
Default/static credential assigned to provider-created accounts matches the default-account abuse pattern.
T1190 Exploit Public-Facing Application Initial Accessconfidence: HIGH
Unauthenticated network exploitation of the public-facing GitLab application leads to account takeover.
inferred from description + CWE · MITRE ATT&CK Enterprise v19.0

CVEs Like This One

CVE-2024-4207Same product: Gitlab Gitlab
CVE-2026-5309Same product: Gitlab Gitlab
CVE-2023-5963Same product: Gitlab Gitlab
CVE-2024-2454Same product: Gitlab Gitlab
CVE-2025-11042Same product: Gitlab Gitlab
CVE-2023-6195Same product: Gitlab Gitlab
CVE-2025-11989Same product: Gitlab Gitlab
CVE-2026-1747Same product: Gitlab Gitlab
CVE-2024-7296Same product: Gitlab Gitlab
CVE-2023-0155Same product: Gitlab Gitlab

Affected Assets

gitlab
gitlab
14.7.0 — 14.7.7 · 14.7.0 — 14.7.7 · 14.8.0 — 14.8.5

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)
  • IA-5 Authenticator Management
  • AC-3 Access Enforcement
  • SI-2 Flaw Remediation
Detect
Catch it (NIST detect / respond)

Harden
Shrink the surface (DISA STIG)

Validate
Prove the fix (OWASP ASVS)

Mitigating Controls (NIST 800-53 r5) AI

prevent

Directly requires secure generation and management of authenticators so that hardcoded passwords are never assigned to OmniAuth-created accounts.

prevent

Enforces that access decisions are based on valid, non-static credentials, blocking authentication with the hardcoded password assigned to affected accounts.

prevent

Mandates timely application of patches that eliminate the hardcoded-password flaw in the listed GitLab versions.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.AA-01 partial match
prevents

PR.AA-01's credential/key-management processes can reduce the incentive to embed secrets but do not address or detect hard-coded values in source code, so the weakness remains fully possible.

PR.AA-02 none match
prevents

PR.AA-02 addresses human identity proofing and per-person credential issuance at enrollment; it has no bearing on whether developers embed static credentials in software.

PR.DS-01 none match
prevents

PR.DS-01 addresses encryption and integrity of stored data but never touches credential or key management practices, so it neither prevents hard-coded credentials nor removes any of their risk.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

prevents

Education on secure configuration practices discourages technical staff from embedding or relying on hard-coded credentials in systems and applications.

mitigates

Secure key-generation, distribution and storage procedures reduce the likelihood that hard-coded or default cryptographic keys will be introduced or left unprotected.

prevents

Explicit prohibition of hard-coded passwords and unauthenticated external services stops credentials from being embedded directly in source code.

prevents

Contractual requirements for secure coding practices and evidence of testing make it less likely that hard-coded credentials will be introduced or remain undetected in delivered code.

none

Requiring independent oversight and timely disabling of non-human identities makes it harder for hard-coded or long-lived credentials to remain exploitable.

none

Mandating immediate replacement of vendor-supplied default credentials eliminates the use of hard-coded or factory passwords that attackers can trivially obtain from documentation or firmware.

References