GitLabApplication

CVE-2022-3758

MEDIUM · 5.4 CVSS v3.1 Published 2023-03-09
Fix available
A fix is available. Upgrade to 15.7.8 / 15.8.4 or later.
See remediation →
60/100
Remediation priority · Elevated
Remotely reachable Zero-click

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 · unedited
An issue has been discovered in GitLab affecting all versions starting from 15.5 before 15.7.8, all versions starting from 15.8 before 15.8.4, all versions starting from 15.9 before 15.9.2. Due to improper permissions checks an unauthorised user was able to read, add or edit a users private snippet.

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 confidence

GitLab versions 15.5 through 15.9.1 contain improper permission checks in the snippet functionality that allow unauthorized users to read, add, or edit private snippets belonging to other users. This is an authorization bypass vulnerability stemming from missing or insufficient access control validation.

MitigationUpgrade GitLab to version 15.7.8, 15.8.4, or 15.9.2 or later. Alternatively, if immediate upgrade is not possible, review snippet access controls and consider restricting external user access to the instance.

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
GitLabApplication
Affected:>= 15.5.0, < 15.7.8>= 15.8.0, < 15.8.4>= 15.9.0, < 15.9.2

CVSS 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
Low
Integrity
Low
Availability
None

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/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 checks

Work through these to decide whether this CVE applies to you.

  1. Identify the installed GitLab version
    Log into the GitLab admin area and navigate to the Dashboard or use the command 'gitlab-rake gitlab:env:info' on the server to retrieve the exact version number
    Affected if The installed version falls within any of these ranges: 15.5.0 to 15.7.7, 15.8.0 to 15.8.3, or 15.9.0 to 15.9.1
  2. Confirm snippet functionality is in use
    Check if any snippets exist in the GitLab instance by visiting the Snippets page or querying the database for non-zero snippet counts
    Affected if Snippets have been created and stored in the instance, making the vulnerable code path reachable
  3. Verify external or non-owner user accounts exist
    Review the user directory in the Admin Area to determine if there are users other than administrators who could potentially access snippets they do not own
    Affected if Multiple user accounts exist, particularly external or limited users who should not have access to private snippets belonging to other users
  4. Test snippet access controls with a secondary account
    Create a private snippet with one test user, then attempt to access, modify, or delete that snippet using a different non-admin user account that should not have permission
    Affected if The secondary account can read, add, or edit private snippets owned by another user, confirming the authorization bypass is present

A GitLab instance is affected if it runs any version from 15.5.0 through 15.9.1 and has multiple users with private snippets that should be restricted between them.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

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 · scoped
Upgrade available Upgrade to 15.7.8 / 15.8.4 / 15.9.2 or later
Fixed in 15.7.815.8.415.9.2
Interim mitigation

Upgrade GitLab to version 15.7.8, 15.8.4, or 15.9.2 or later. Alternatively, if immediate upgrade is not possible, review snippet access controls and consider restricting external user access to the instance.

Recommended fix Moderate confidence

Upgrade to GitLab 15.7.8, 15.8.4, or 15.9.2 (or later)

  1. Backup your GitLab instance data before proceeding with any upgrade
  2. Review the GitLab upgrade documentation for your specific installation method (Omnibus, source, etc.)
  3. Identify your current GitLab version to confirm it falls within the affected range: 15.5.0 to <15.7.8, 15.8.0 to <15.8.4, or 15.9.0 to <15.9.2
  4. Plan your upgrade path based on your current version - upgrade to the next available stable release within your version branch
  5. For installations using GitLab Omnibus: run 'apt-get update && apt-get install gitlab-ce' (or 'gitlab-ee' for Enterprise Edition)
  6. For source installations: follow the upgrade guide in GitLab documentation for upgrading from source
  7. After upgrade, verify the GitLab version matches the patched release (15.7.8, 15.8.4, or 15.9.2)
  8. Test that private snippet permissions are working correctly - unauthorized users should no longer be able to access private snippets
Caveat Review GitLab release notes for your upgrade path as minor version upgrades may include feature changes; ensure compatibility with your dependencies

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in GitLab Scoped from the published advisory
  • Consultation2.0 h
  • Implementation3.0 h
  • Testing2.0 h
  • Review / QA1.0 h
8.0 hours of engineering $1,420
Get the upgrade done

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 locally
dbcve dependency scanner

Check whether your project pulls in CVE-2022-3758 — 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 sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2022-3758 in production — separate from our analysis above.

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.

What this is

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.

What belongs here
  • 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