SecurityContext

CVE-2022-4138: GitLab - Cross Site Request Forgery

  • Cve: CVE-2022-4138
  • Name: GitLab - Cross Site Request Forgery
  • Description: A Cross Site Request Forgery issue has been discovered in GitLab CE/EE affecting all versions before 15.6.7, all versions starting from 15.7 before 15.7.6, and all versions starting from 15.8 before 15.8.1. An attacker could take over a project if an Owner or Maintainer uploads a file to a malicious project.
  • Impact: Attackers can hijack projects by exploiting CSRF, leading to project takeover and potential further malicious actions.
  • Remediation: Update to version 15.6.7, 15.7.6, or 15.8.1 or later.
  • Vulnerability type: cross_site_request_forgery
  • Requirement type: user_interaction
  • Requirements: Attacker needs victim to perform file upload action
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.1
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
  • Epss score: 0.00445
  • Epss percentile: 0.39497
  • Assignee: [email protected]
  • Published at: 2023-02-13T23:15:11Z
  • Age in days: 1380
  • Modified at: 2026-06-17T05:20:03Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-4138
  • Nvd status: modified
  • Checked, none or zero: vulnerability impact, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-352Cross-Site Request Forgery

References

UrlSourceTags
https://gitlab.com/gitlab-org/cves/-/blob/master/2022/CVE-2022-4138.jsonnvdVendor Advisory
https://hackerone.com/reports/1778009nvdPermissions Required

Products

ProductAffectedPlatform boundSourcesUrl
gitlab:gitlab>= 15.8, < 15.8.1; >= 15.7, < 15.7.6; < 15.6.7nonvd/v1/products/gitlab/gitlab

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Exposed hosts: 66493
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports