CVE-2022-1162
Published: 04 April 2022
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.
Deeper analysis
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.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2022-24504
Vulnerability details
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
No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.
Affected Assets
Mitigating Controls
Likely Mitigating Controls AI
Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Enables users to notice when hard-coded credentials have been exploited for unauthorized access.
Security training explicitly warns against hard-coded credentials, lowering their use in systems.
Policy and procedures prohibit hard-coded credentials in favor of managed authentication.
External identity providers eliminate the need for hard-coded credentials in applications.
Changing default authenticators prior to first use and protecting content prevents use of hard-coded credentials.
Central credential stores and rotation policies remove the need for hard-coded credentials in configuration files or code.
Intelligence programs surface reports of campaigns that abuse hard-coded credentials in products, prompting removal or replacement and thereby reducing successful exploitation.
Planned investment enables secure credential storage and management systems instead of hard-coded credentials.