Hacker News new | ask | show | jobs
by molf 43 days ago
This seems super light on details and I had to dig to find more information. We don't use Gitlab, but we do use Ruby, so I was worried we might be impacted.

This is the best overview I found: https://lilting.ch/en/articles/gitlab-cve-2026-110264-org-mo...

The bottom line: this is an issue in Ruby's regex engine, which was fixed in April and backported recently. [1]

Everyone running applications where attacker-controlled input might find its way (unescaped) into Ruby regexes is vulnerable to remote code execution.

[1]: https://github.com/ruby/ruby/pull/16801

1 comments

So the problem is in Ruby itself? Not in onigmo, or in oniguruma? If simply updating Ruby fixes the problem... is GitLab vendoring a Ruby runtime or something? Or has Ruby not published this fix yet?

… Or is the GitLab/onigmo bug about failing to escape regex input?

Depends how you install GitLab. If you just run one of their containers in Kubernetes or whatever then yeah they are packaging Ruby.
Yes. Omnibus ships its own Ruby under /opt/gitlab/embedded, which is why the changelog has "Add Ruby regexp repeat ID overflow patch for 3.3, 3.4 and 4.0" in every recent branch. So patching your distro Ruby does nothing for GitLab, and GitLab's patch does nothing for your other Ruby apps. To confirm what you're actually running after the upgrade, check /opt/gitlab/embedded/bin/ruby -v on each node. Also look at the two detections GitLab published (Onigmo native worker crash, Org mode render error burst) and run them back over your logs from before you patched.