[已确认被利用] CVE-2026-97229: GitLab Community Edition and Enterprise Edition Integer Overflow or Wraparound Vulnerability
VulnPulse 解读
GitLab CVE-2026-97229 is under attack; its sibling CVE-2026-110264 reaches back to 7.0
A flaw in how GitLab CE/EE compiles regular expressions from CI/CD settings can let an attacker with no account run code on the server. CISA put it in the KEV list on 2026-10-29 as exploited and gave US federal agencies until 11-01 to act.
受影响对象
Self-managed GitLab CE/EE. CVE-2026-97229 itself covers the 19.2, 19.3 and 19.4 lines below 19.2.8, 19.3.5 and 19.4.2. The closely related CVE-2026-110264 (CVSS 10.0), however, covers nearly every release since 7.0, so 19.1, 18.11 and older are exposed too. GitLab has already fixed GitLab.com and GitLab Dedicated. GitLab on a Ruby you installed yourself, and other Ruby apps that build regexes from outside input, also need a Ruby update. Per the Ruby team, GitLab fixed the copy of Ruby it ships in its own packages.
简单来说
Picture a clerk who sizes a box from a number on an order form, but miscounts when the number is huge and then stuffs in more than the box holds. The overflow spills onto the next shelf and overwrites it, and an instruction that should never run ends up running.
原理
GitLab compiles user-written regular expressions, such as those in CI/CD settings, with Onigmo, the regex engine inside Ruby. Per the Ruby team, compiling a crafted pattern can make the size calculation for the compiled pattern wrap around (integer overflow, CWE-190) and corrupt memory. GitLab found this can be turned into code execution without logging in and scored it CVSS 10.0. Between September and October GitLab issued four CVEs for this family of bugs: CVE-2026-89078, 93577, 97229 and 110264. Only 97229 is in KEV; 110264 comes from a different Ruby bug, where internal IDs overflow in patterns with many repeats. Ruby notes that Regexp.timeout and pattern length limits do not stop these bugs.
攻击过程
- The attacker gets a crafted regular expression into GitLab through CI/CD configuration, without logging in
- While GitLab compiles it, a size calculation wraps around and memory gets corrupted
- The corrupted memory is used to run the attacker's code on the GitLab server
应对措施
- Self-managed admins: move to the newest patch from 2026-10-29: 19.5.3, 19.4.5, 19.3.7 or 19.2.10 (19.1.10, 19.0.11 or 18.11.14 on those lines). They are newer than the 10-21 releases that fixed CVE-2026-110264 (19.5.1, or 19.4.3 on 19.4 and 18.11.13 on 18.11), so that fix is in them too
- Admins on 19.1, 18.11 or older: even if CVE-2026-97229 does not apply, CVE-2026-110264 does. No fix exists for lines older than 18.11, so upgrade to a supported release at 18.11.14 or later
- Admins: check for signs of attack as well as patching. In its 19.4.2 and 19.5.1 notices GitLab published detection rules for self-managed instances, such as crashes of the Onigmo native worker
- GitLab.com and GitLab Dedicated users: GitLab has applied the fix; nothing to do on your side
- Admins running GitLab on their own Ruby, and developers of Ruby apps that turn outside input into regexes: upgrade Ruby to 4.0.9, 3.4.12, 3.3.13 or later. Until then, do not compile regexes from untrusted input
- US federal agencies: act by 2026-11-01 under CISA BOD 26-04
尚不清楚的内容
- Who is exploiting it and how widely. Neither CISA nor GitLab has said, and CISA lists ransomware use as unknown
- Which settings or setups the advisory's 'under certain conditions' refers to
- Whether CVE-2026-110264, or the related CVE-2026-89078 and 93577, are being exploited. As of 2026-10-30 none of them is in KEV
出处
- CISA KEV: CVE-2026-97229
- NVD: CVE-2026-97229
- NVD: CVE-2026-110264
- GitLab: Critical Patch Release 19.4.2, 19.3.5, 19.2.8 (2026-10-12)
- GitLab: Critical Patch Release 19.5.1 ほか (2026-10-21)
- GitLab: Patch Release 19.5.3 ほか (2026-10-29)
- Ruby: Regexp compilation fixes related to GitLab's CVEs (2026-10-23)
本解读由 VulnPulse 根据原文和公开信息以自己的语言撰写。准确信息请以出处为准。 更新:
原始公告 (原文)
GitLab Community Edition and Enterprise Edition GitLab Community Edition and Enterprise Edition contain a integer overflow or wraparound vulnerability that could allow 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.
2026/10/30 04:45,CISA Known Exploited Vulnerabilities 发布了“[已确认被利用] CVE-2026-97229: GitLab Community Edition and Enterprise Edition Integer Overflow or Wraparound Vulnerability”(类型:漏洞公告)。已列入 CISA KEV(已确认被利用)。供应商 / NVD 的评级为 CVSS 10.0 (Critical)。相关技术:GitLab。CVE:CVE-2026-97229。