Cloudanix VulnDB

CVE-2024-8179

None

CVSS

—

EPSS

0.3%

Published

Dec 12, 2024

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A flaw in GitLab could let attackers run harmful code in users' browsers unless extra web protections are turned on, potentially leading to stolen accounts or data.

Exploitation
Remote Authenticated
Attacker needs
Low Privilege
Complexity
Moderate
Impact
Data Exposure
Component
Application
Class
XSS
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Improper output encoding allows injection of malicious scripts that execute in user browsers when Content Security Policy is disabled.

Why it matters to the business

Attackers could hijack user sessions, steal data, or perform actions on behalf of victims, increasing risk of account takeover and compliance issues; low exploit probability but affects many self-hosted instances.

How an attack unfolds

An attacker submits crafted input containing script tags or event handlers to a GitLab feature; due to missing encoding the payload renders and executes in victim browsers lacking CSP protection.

How to fix it

Upgrade GitLab CE/EE to 17.4.6, 17.5.4, or 17.6.2 or later; enable Content Security Policy as a defense-in-depth measure.

How to confirm the fix worked

Confirm upgrade via version endpoint or package manager; verify CSP headers are present in responses; test input fields for encoding of special characters.

Typical attack path

  1. Identify a GitLab input field that reflects user data without encoding
  2. Craft and submit a payload with executable script content
  3. Trick an authenticated user into viewing the affected page
  4. Script executes in browser, performing actions such as session theft or privilege escalation

How to detect it

Inspect web server and application logs for unexpected script tags or event handlers in requests and responses; look for user-generated content that was not sanitized.

What your security team should do

  • Apply the listed GitLab version upgrades immediately
  • Enable CSP across all instances if not already active
  • Review audit logs for unusual user actions or script-related entries
  • Monitor EPSS trend for any increase in exploitation likelihood

The record

An issue has been discovered in GitLab CE/EE affecting all versions from 17.3 before 17.4.6, 17.5 before 17.5.4, and 17.6 before 17.6.2. Improper output encoding could lead to XSS if CSP is not enabled.

Affected packages

Ecosystem Package Introduced Fixed
Bitnami gitlab 17.3.0 17.4.6
Bitnami gitlab 17.6.0 17.6.2
Chainguard gitlab-base-fips-17.6 0 17.6.5-r0
Chainguard gitlab-cng-fips-17.6 0 17.6.5-r0
Chainguard gitlab-container-registry-fips-17.6 0 17.6.5-r0
Chainguard gitlab-elasticsearch-indexer-fips-17.6 0 17.6.5-r0
Chainguard gitlab-logger-fips-17.6 0 17.6.5-r0
Chainguard gitlab-shell-fips-17.6 0 17.6.5-r0
Chainguard gitlab-toolbox-fips-17.6 0 17.6.5-r0
Ubuntu:16.04:LTS gitlab 0 No fix
Ubuntu:Pro:16.04:LTS gitlab 0 No fix

Related vulnerabilities