MEDIUM

CVE-2023-6159

Gitlab GitLab 2024-01-26 CVSS v3.1
CVSS
6.5

Description

An issue has been discovered in GitLab CE/EE affecting all versions from 12.7 prior to 16.6.6, 16.7 prior to 16.7.4, and 16.8 prior to 16.8.1 It was possible for an attacker to trigger a Regular Expression Denial of Service via a `Cargo.toml` containing maliciously crafted input.

Summary dbcve.org

A Regular Expression Denial of Service (ReDoS) vulnerability exists in GitLab CE/EE's parsing of Cargo.toml files (Rust package manifests). When GitLab processes a maliciously crafted Cargo.toml file containing a specially crafted regular expression, it can cause excessive CPU consumption leading to service degradation or unavailability. The attack requires no authentication or special privileges.

Mitigation

Upgrade GitLab to version 16.6.6, 16.7.4, 16.8.1 or later. As a workaround, consider restricting or validating uploaded Cargo.toml files through GitLab's upload controls or implementing rate limiting on repository parsing operations.

Weakness (CWE)

CWE-1333

EPSS Score

1%
Probability of exploitation in next 30 days
61.1th percentile

References

View on dbcve.org
Base CVE data derived from NVD (public domain). Enrichment by dbcve.org (CC-BY-4.0). Fetched via API.
Back to CVE