CVE-2023-4700
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 authorization issue affecting GitLab EE affecting all versions from 14.7 prior to 16.3.6, 16.4 prior to 16.4.2, and 16.5 prior to 16.5.1, allowed a user to run jobs in protected environments, bypassing any required approvals.
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 confidenceThis is an authorization bypass vulnerability in GitLab Enterprise Edition where users can execute CI/CD jobs in protected environments without the required approval checks. Protected environments in GitLab are designed to have mandatory approval workflows for deployments to sensitive targets, but this flaw allowed authenticated users to circumvent those safeguards.
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>= 14.7.0, < 16.3.6>= 16.4.0, < 16.4.2= 16.5.0CVSS 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
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/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.
-
Verify GitLab edition is Enterprise EditionRun `gitlab-ctl version` or check the UI under Admin Area > Overview > Dashboard - the edition is shown on the license page. Only GitLab Enterprise Edition (EE) is affected, not Community Edition (CE).Affected if The instance is running GitLab Enterprise Edition (EE).
-
Check installed GitLab versionRun `gitlab-rake gitlab:env:info` or check the version displayed at the bottom of any GitLab page. Compare against affected ranges: >= 14.7.0 AND < 16.3.6; OR >= 16.4.0 AND < 16.4.2; OR = 16.5.0.Affected if The installed version falls within any of the affected version ranges.
-
Confirm protected environments are in useNavigate to a project's Settings > Environments or use the API `GET /projects/:id/environments`. Check if any environments have the 'protected' flag enabled.Affected if Protected environments exist in any project on the instance.
-
Verify approval rules exist on protected environmentsNavigate to Settings > Environments for a protected environment. Check if 'Required approval' rules are defined under the approval settings, or query via API: `GET /projects/:id/environments/:environment_id` looking for `required_approval_count` greater than zero.Affected if Protected environments have approval requirements configured.
The environment is affected if it runs GitLab EE within the vulnerable version range AND has protected environments configured with approval rules, allowing users to potentially bypass deployment approvals.
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 · scoped16.3.616.4.2
Upgrade GitLab to version 16.3.6, 16.4.2, 16.5.1 or later to receive the security patch. After upgrading, verify that protected environment approval workflows are functioning correctly.
16.5.1 (or 16.3.6 or 16.4.2 depending on current version branch)
- 1. Identify the current GitLab version by running `sudo gitlab-rake gitlab:env:info` or checking the GitLab admin area.
- 2. Determine the appropriate upgrade path based on current version: if >= 14.7.0 and < 16.3.6, upgrade to 16.3.6; if >= 16.4.0 and < 16.4.2, upgrade to 16.4.2; if = 16.5.0, upgrade to 16.5.1.
- 3. Before upgrading, create a full backup using `sudo gitlab-backup-create` or the omnibus backup command.
- 4. Update the GitLab package repository and install the upgrade using package manager commands (e.g., `sudo apt-get update && sudo apt-get install gitlab-ee` for Debian/Ubuntu, or `sudo yum install gitlab-ee` for RHEL/CentOS).
- 5. After installation, run `sudo gitlab-ctl reconfigure` to apply configuration changes.
- 6. Verify the upgrade was successful by checking the version in the admin area or via `sudo gitlab-rake gitlab:env:info`.
- 7. Confirm the vulnerability is patched by testing that users cannot bypass protected environment job approvals.
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation6.0 h
- Testing4.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,224.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2023-4700 — 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-2023-4700 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