Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

redhat логотип

CVE-2026-97229

Опубликовано: 13 окт. 2026
Источник: redhat
CVSS3: 9.8
EPSS Средний

Описание

GitLab has remediated an issue in GitLab CE/EE affecting all versions from 19.2 before 19.2.8, 19.3 before 19.3.5, and 19.4 before 19.4.2 that, under certain conditions, could have allowed an unauthenticated user to execute arbitrary code on the GitLab server via a specially crafted regular expression in a CI/CD configuration, due to insufficient regular expression validation.

A flaw was found in Ruby. When compiling a specially crafted regular expression with the methods Regexp.new, Regexp.union, Regexp.compile, or via a string interpolation such as /#{input}/, an integer overflow in the size of the compiled pattern can occur. This integer overflow causes memory corruption, potentially resulting in arbitrary code execution.

Отчет

Red Hat has rated the impact of these flaws as Moderate for the Ruby packages shipped in Red Hat Enterprise Linux. The Ruby packages provide a language interpreter and standard library and do not accept external input on their own; these flaws are reachable only when an application compiles a regular expression constructed from attacker-controlled input. Upstream Ruby has published a security advisory for these issues and scopes the flaws narrowly, stating that they "are reached only when an application compiles a regular expression from a string that an attacker controls, for example by passing it to Regexp.new, Regexp.union or Regexp.compile", and that "applications that only use regular expressions written by their own developers are not affected". Upstream further notes that Ruby "has generally considered it unsafe to compile and use a regular expression created from untrusted input". The CVE identifiers for these flaws were assigned by GitLab, where the issues were originally reported and where remote code execution was demonstrated against GitLab's own application. Ruby did not request separate identifiers and has asked downstream distributors to track these issues under GitLab's CVE IDs.

Меры по смягчению последствий

To mitigate this vulnerability, do not compile regular expressions from untrusted sources. Standard safeguards such as Regexp.timeout or limiting the length of the input pattern do not protect against this issue.

Затронутые пакеты

ПлатформаПакетСостояниеРекомендацияРелиз
Red Hat Enterprise Linux 10rubyAffected
Red Hat Enterprise Linux 10ruby4.0Affected
Red Hat Enterprise Linux 6rubyAffected
Red Hat Enterprise Linux 7rubyAffected
Red Hat Enterprise Linux 8ruby:2.5/rubyAffected
Red Hat Enterprise Linux 8ruby:3.3/rubyAffected
Red Hat Enterprise Linux 9rubyAffected
Red Hat Enterprise Linux 9ruby:3.3/rubyAffected
Red Hat Enterprise Linux 9ruby:4.0/rubyAffected
Red Hat Hardened Imageshi/rubyNot affected

Показывать по

Дополнительная информация

Статус:

Critical
Дефект:
CWE-190
https://bugzilla.redhat.com/show_bug.cgi?id=2550153ruby: integer overflow issue in CI/CD regular expression compiler

EPSS

Процентиль: 99%
0.6522
Средний

9.8 Critical

CVSS3

Связанные уязвимости

CVSS3: 10
ubuntu
26 дней назад

GitLab has remediated an issue in GitLab CE/EE affecting all versions from 19.2 before 19.2.8, 19.3 before 19.3.5, and 19.4 before 19.4.2 that, under certain conditions, could have allowed an unauthenticated user to execute arbitrary code on the GitLab server via a specially crafted regular expression in a CI/CD configuration, due to insufficient regular expression validation.

CVSS3: 10
nvd
26 дней назад

GitLab has remediated an issue in GitLab CE/EE affecting all versions from 19.2 before 19.2.8, 19.3 before 19.3.5, and 19.4 before 19.4.2 that, under certain conditions, could have allowed an unauthenticated user to execute arbitrary code on the GitLab server via a specially crafted regular expression in a CI/CD configuration, due to insufficient regular expression validation.

CVSS3: 10
msrc
13 дней назад

Integer Overflow or Wraparound in GitLab

CVSS3: 10
debian
26 дней назад

GitLab has remediated an issue in GitLab CE/EE affecting all versions ...

CVSS3: 10
github
26 дней назад

GitLab has remediated an issue in GitLab CE/EE affecting all versions from 19.2 before 19.2.8, 19.3 before 19.3.5, and 19.4 before 19.4.2 that, under certain conditions, could have allowed an unauthenticated user to execute arbitrary code on the GitLab server via a specially crafted regular expression in a CI/CD configuration, due to insufficient regular expression validation.

EPSS

Процентиль: 99%
0.6522
Средний

9.8 Critical

CVSS3