CVE-2021-4191
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedAn issue has been discovered in GitLab CE/EE affecting versions 13.0 to 14.6.5, 14.7 to 14.7.4, and 14.8 to 14.8.2. Private GitLab instances with restricted sign-ups may be vulnerable to user enumeration to unauthenticated users through the GraphQL API.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceThe GitLab GraphQL API in versions 13.0 through 14.8.2 allows unauthenticated user enumeration on private instances with restricted sign-ups. Attackers can query the GraphQL endpoint to discover valid usernames, potentially facilitating brute-force attacks or reconnaissance.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data>= 13.0.0, < 14.6.5>= 14.7.0, < 14.7.4>= 14.8, < 14.8.2CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- Low
- Integrity
- None
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Check your GitLab versionRun 'gitlab-rake gitlab:env:info' or check the GitLab admin area under /admin/application_settings or look at /opt/gitlab/embedded/service/gitlab-rails/VERSION fileAffected if The installed version falls within these ranges: >= 13.0.0 and < 14.6.5; >= 14.7.0 and < 14.7.4; >= 14.8.0 and < 14.8.2
-
Verify GraphQL endpoint accessibilityAttempt to access the GraphQL endpoint at /api/graphql without providing authentication credentials. Check your load balancer, firewall, or GitLab configuration for any rules allowing unauthenticated access to the /api/graphql path.Affected if The GraphQL API endpoint responds to unauthenticated requests (returns data instead of a 401/302 redirect to login)
-
Confirm sign-up restrictions are in placeCheck GitLab admin settings under /admin/application_settings/general or inspect the 'gitlab.rb' configuration file for 'gitlab_rails['gitlab_signup_enabled']' settingAffected if User sign-ups are disabled or restricted (gitlab_signup_enabled is set to false), which is the condition described in the CVE that makes enumeration useful for attackers
You are affected if your GitLab version is in the vulnerable range AND the GraphQL endpoint is accessible to unauthenticated users, especially on instances with restricted sign-ups.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped14.6.514.7.414.8.2
Upgrade GitLab to version 14.9.0, 14.8.5, 14.7.5, or 14.6.6 or later. Alternatively, restrict unauthenticated access to the GraphQL API endpoint at the load balancer or firewall level.
GitLab 14.8.2 or later (alternatively 14.7.4 or 14.6.5)
- Back up your GitLab instance database and configuration before upgrading
- Ensure you have adequate downtime window for the upgrade process
- For Omnibus installations: Run 'gitlab-ctl stop' to stop GitLab services
- Upgrade GitLab to version 14.8.2 or later (14.7.4 or 14.6.5 are also fixed but earlier in their respective branches)
- For Omnibus: Run 'gitlab-ctl start' or 'gitlab-ctl restart' after upgrade completes
- Verify the GraphQL API no longer allows unauthenticated user enumeration
- Confirm users cannot query user information without authentication
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation3.0 h
- Testing2.0 h
- Review / QA1.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,272.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2021-4191 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2021-4191 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data