1. CVE archive
  2. 2024
  3. CVE-2024-2829

CVE-2024-2829

7.5 High severity CVSS v3.1 · source NVD CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H 7.5 – High

Description

An issue has been discovered in GitLab CE/EE affecting all versions starting from 12.5 before 16.9.6, all versions starting from 16.10 before 16.10.4, all versions starting from 16.11 before 16.11.1. A crafted wildcard filter in FileFinder may lead to a denial of service.

Affected products

VendorProductVersionPlatform
gitlab gitlab >= 12.5.0 < 16.9.6 –
gitlab gitlab >= 12.5.0 < 16.9.6 –
gitlab gitlab >= 16.10.0 < 16.10.4 –
gitlab gitlab >= 16.10.0 < 16.10.4 –
gitlab gitlab 16.11.0 –
gitlab gitlab 16.11.0 –
All 1,558 Gitlab vulnerabilities

Vulnerability type

CWE-1333 Inefficient Regular Expression Complexity

The product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.

Impact on systems

ScopeImpact
Availability DoS: Resource Consumption (CPU)
Attackers can create crafted inputs that intentionally cause the regular expression to use excessive backtracking in a way that causes the CPU consumption to spike.

How to prevent it

Architecture and Design Use regular expressions that do not support backtracking, e.g. by removing nested quantifiers.
System Configuration Set backtracking limits in the configuration of the regular expression implementation, such as PHP's pcre.backtrack_limit. Also consider limits on execution time for the process.
Implementation Do not use regular expressions with untrusted input. If regular expressions must be used, avoid using backtracking in the expression.
Implementation Limit the length of the input that the regular expression will process.

All 541 CWE-1333 CVEs, with trend and prevention

Source: MITRE CWE catalog · cwe.mitre.org