SecurityContext

CVE-2024-8312: GitLab - Stored XSS

  • Cve: CVE-2024-8312
  • Name: GitLab - Stored XSS
  • Description: An issue has been discovered in GitLab CE/EE affecting all versions from 15.10 before 17.3.6, 17.4 before 17.4.3, and 17.5 before 17.5.1. An attacker could inject HTML into the Global Search field on a diff view leading to XSS.
  • Impact: Attackers can execute arbitrary scripts in victim browsers, leading to session hijacking, defacement, or data theft.
  • Remediation: Update to version 17.3.6, 17.4.3, or 17.5.1 or later.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: user_interaction
  • Requirements: Attacker needs to inject malicious HTML
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.4
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.00489
  • Epss percentile: 0.4294
  • Assignee: [email protected]
  • Published at: 2024-10-24T10:15:03Z
  • Age in days: 761
  • Modified at: 2026-06-17T08:22:20Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 2
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-8312
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

Public exploits

UrlSourceAdded date
https://gitlab.com/gitlab-org/gitlab/-/issues/481819nvd2024-10-24

References

UrlSourceTags
https://gitlab.com/gitlab-org/gitlab/-/issues/481819nvdExploit, Issue Tracking
https://hackerone.com/reports/2659386nvdPermissions Required

Products

ProductAffectedPlatform boundSourcesUrl
gitlab:gitlab= 17.5.0; >= 17.4.0, < 17.4.3; >= 15.10.0, < 17.3.6nonvd/v1/products/gitlab/gitlab

Index

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

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2024-10-24
  • Remote: yes
  • Authentication required: yes
  • Exposed hosts: 66493
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports