NGINX2Root and GitLab's bundled nginx
apt patched your nginx, but GitLab runs its own copy. Learn how to check the bundled version and turn off HTTP/2 until GitLab ships a fixed nginx.
Why apt did not patch GitLab's nginx
CVE-2026-123007, one of the nginx bugs Xint groups under the name NGINX2Root, is fixed in nginx 1.31.9 and 1.30.7, but upgrading nginx with apt does not fix a GitLab server that uses the default install. The GitLab Linux package (often called Omnibus) builds and runs its own copy of nginx under /opt/gitlab/embedded. apt only upgrades the distro's nginx package, so the nginx that actually serves GitLab keeps its old version.
As of 24 November 2026, every maintained GitLab release ships nginx 1.31.7, which is inside the vulnerable range. This guide shows how to find out which nginx serves your GitLab and how to read the bundled version yourself. It then covers turning off HTTP/2 as a stop-gap until GitLab ships a fixed nginx, and what that stop-gap costs.
What NGINX2Root is
nginx.org lists CVE-2026-123007 as "Memory corruption in HTTP/2 flow control", with severity major. The vulnerable range is nginx 1.9.5 to 1.31.8. The changelog describes it as a flow control window overflow in HTTP/2 that "might allow an attacker to cause a segmentation fault in a worker process, or might have potential other impact".
The fixed releases came out on 18 November 2026: 1.31.9 (mainline) and 1.30.7 (stable). The same releases fix several other CVEs. One of them, CVE-2026-123633, is a second HTTP/2 bug (a use-after-free, vulnerable from 1.19.7 to 1.31.8).
A newer pair followed on 23 November 2026: 1.31.10 and 1.30.8. They fix CVE-2026-132779, excessive CPU use with ssl_early_data, which affects 1.21.4 to 1.31.9. So the version to aim for today is 1.31.10 or 1.30.8, not 1.31.9 or 1.30.7.
The bug sits in the HTTP/2 code. The researchers at Xint, who published the NGINX2Root write-up, state that exploiting CVE-2026-123007 requires HTTP/2 to be enabled. This matters for GitLab, because GitLab turns HTTP/2 on by default.
Which nginx serves your GitLab: the three setups
Your exposure depends on which nginx answers on port 443.
- Bundled nginx (the default). GitLab's docs say: "By default, the Linux package installs GitLab with bundled NGINX." The
gitlab/gitlab-eeDocker image contains the same Linux package with all services in one container, so the same applies inside the container. apt never touches this nginx. Only a new GitLab package can change it. - A distro nginx, with
nginx['enable'] = false. GitLab documents this setup for guidance only. Here the nginx in front of GitLab is the one apt installed, so apt does patch it. - GitLab.com. You run no server, so there is no nginx for you to patch.
If you are not sure which case you are in, ask the kernel which process holds port 443:
sudo ss -ltnp 'sport = :443'The output names the process and its PID, for example users:(("nginx",pid=1234,fd=8)). Both nginx builds are called nginx, so the name alone does not tell you which one it is. Resolve the PID to the binary file:
sudo readlink /proc/1234/exeReplace 1234 with the PID from the first command. A path under /opt/gitlab/embedded means the bundled nginx serves GitLab. A path such as /usr/sbin/nginx means the distro nginx does.
A common mistake is to run nginx -v and read the result as GitLab's version. The shell finds the distro binary on your PATH, which means you see the version apt just installed, not the one serving GitLab.
How to read the bundled nginx version
GitLab builds its nginx with the prefix /opt/gitlab/embedded and with the HTTP/2 module. The build sets no separate binary path, so nginx's default layout puts the binary at /opt/gitlab/embedded/sbin/nginx. Confirm the path on your own server rather than trusting it:
sudo find /opt/gitlab/embedded -type f -name nginx -path '*/sbin/*'Then ask that binary for its version:
sudo /opt/gitlab/embedded/sbin/nginx -vIt prints one line with the version number. Compare that number with the ranges above. Anything from 1.9.5 to 1.31.8 is in the CVE-2026-123007 range.
GitLab also documents a second source. After install, the GitLab version and all bundled libraries are listed in /opt/gitlab/version-manifest.txt:
grep -i nginx /opt/gitlab/version-manifest.txtIf the manifest has an nginx entry, this shows it. The binary is the stronger check, because it reports what is actually installed.
On Docker, run the same checks inside the container. Replace gitlab with your container's name:
docker exec gitlab find /opt/gitlab/embedded -type f -name nginx -path '*/sbin/*'
docker exec gitlab /opt/gitlab/embedded/sbin/nginx -vWhich GitLab versions ship a fixed nginx
As of 24 November 2026, none do.
GitLab 19.6 was released on 19 November 2026. Its release notes say it updates the bundled nginx "from 1.31.4 to 1.31.7". That bump fixed five other CVEs, and GitLab says the configuration the Linux package generates is not affected by those five. That statement is about a different set of CVEs. It says nothing about CVE-2026-123007, and both 1.31.4 and 1.31.7 are inside its vulnerable range.
The newest patch release is 19.6.1, 19.5.8 and 19.4.10, dated 20 November 2026. Its security table lists one fix: CVE-2026-132825, a critical vulnerability in Ruby. It does not mention CVE-2026-123007 or HTTP/2. You should still install it for the Ruby fix.
The nginx version pin in the omnibus-gitlab source reads release-1.31.7 on the master branch, on the 19-6, 19-5 and 19-4 stable branches, and on the 19.6.1 tag. GitLab 19.7 is not released yet. On Docker Hub, the latest tag points at the same image as 19.6.1-ee.0, so pulling latest today gives you nginx 1.31.7.
This will change. Check the pin yourself before you plan around it:
curl -s https://gitlab.com/gitlab-org/omnibus-gitlab/-/raw/master/config/software/nginx.rb | grep "Version.new('nginx'"When that line shows release-1.31.10 or later, a release carrying the fix is on its way. Then watch GitLab's patch release posts for the version that includes it. GitLab's maintenance policy says it backports security fixes to the previous two monthly releases as well as the current one, and that it always addresses high and critical security issues with a patch release. That is a policy, not a date for this nginx fix.
When the fixed package exists, the upgrade is the normal one. The GitLab package comes from GitLab's own package repository, not from Ubuntu's archive, so upgrade it the same way you installed it, whether you run the Enterprise or the Community Edition. On Docker, change your pinned image tag to the fixed version, pull it and recreate the container. Then run the version check again. Do not assume the new package changed nginx until the binary tells you so.
Stop-gap: turn off HTTP/2 on GitLab's bundled nginx
Until a fixed nginx ships, you can turn off HTTP/2 on the bundled nginx. GitLab's SSL docs say that when your instance is reachable over HTTPS, HTTP/2 is enabled by default. The current gitlab.rb.template shows the setting as gitlab_rails['nginx']['http2_enabled'] = true, commented out because it is the default.
Xint states that turning off HTTP/2 on the affected ports blocks CVE-2026-123007 and CVE-2026-123633. They also say this covers only two of the five nginx vulnerabilities they list, and that it is not a substitute for a patch. Treat it as a way to shrink the exposure while you wait.
First, check whether your server negotiates HTTP/2 now:
curl -s -o /dev/null --http2 -w '%{http_version}\n' https://gitlab.example.com/Replace the host with your own. 2 means HTTP/2 was negotiated. 1.1 means it was not.
On GitLab 19.2 and later, add this line to /etc/gitlab/gitlab.rb:
gitlab_rails['nginx']['http2_enabled'] = falseOn GitLab 19.1 and earlier, the same setting sits under a top-level key, nginx['http2_enabled'] = false. GitLab 19.1 is outside the maintained releases, so plan that upgrade as well.
Apply the change:
sudo gitlab-ctl reconfigureOn Docker, edit /etc/gitlab/gitlab.rb inside the container (it lives in your config volume) and run docker exec gitlab gitlab-ctl reconfigure.
Run the curl check again. It should now print 1.1. If it still prints 2, the line did not take effect. Check that you used the key for your GitLab version, and that no later line in gitlab.rb sets it back to true.
GitLab's docs say this setting "only works for the main GitLab application and not for the other services, like GitLab Pages and Container Registry". GitLab Pages and the Container Registry are separate services, and Pages has its own HTTP/2 key. Those hosts can still accept HTTP/2 after this change, so run the same curl check against your Pages and registry hostnames. If they still print 2, they still accept HTTP/2.
What turning off HTTP/2 costs: the GitLab agent for Kubernetes
The main cost is the GitLab agent for Kubernetes, whose server side is called KAS (Kubernetes agent server). Native gRPC needs HTTP/2. Since GitLab 19.5, the default agent address is grpcs://gitlab.example.com. GitLab uses that default when external_url is HTTPS with no relative URL root and the bundled nginx terminates TLS with HTTP/2.
In other cases, for example when TLS ends at a load balancer, agents connect over WebSocket at wss://gitlab.example.com/-/kubernetes-agent/. GitLab's docs say WebSocket stays available in both cases. So the cost for a default setup may be a move to WebSocket rather than an outage.
The docs do not say what happens to an agent that was installed with an explicit grpcs:// address after HTTP/2 is turned off. If you run agents, check which address each one was installed with. If it is grpcs://, test one agent against the wss:// address before you change the rest, and before you disable HTTP/2 on a busy instance.
Anything else served through the main GitLab application that needs HTTP/2 loses it too. Services outside that scope, such as Pages and the Container Registry, are not covered by this setting. Xint names native gRPC as the typical case.
If GitLab runs behind a distro nginx
With nginx['enable'] = false, the nginx in front of GitLab is your distro's package, and the usual patch path applies:
nginx -v
sudo apt update && sudo apt install --only-upgrade nginx
sudo nginx -t && sudo systemctl restart nginxThe restart makes sure the running workers use the new binary. On a box where unattended upgrades on Ubuntu already pull security updates, this may already have happened. Check the running version rather than assuming it.
Do not judge a distro package by its version number alone. Xint notes that a reported version may already include a backported fix. Distros often patch an older nginx version in place, so check your distro's security tracker for CVE-2026-123007 to see which package release carries the fix.
If your distro has not shipped a fix yet, the stop-gap is the nginx directive http2 off; in the server block. That directive exists from nginx 1.25.1. The older form is the http2 parameter on a listen line, which nginx now marks as deprecated. Find every place HTTP/2 is turned on:
sudo nginx -T | grep -n http2Remove or switch off each match, then run sudo nginx -t and reload. Check the result with the same curl command as above.
GitLab.com users
GitLab.com customers have no nginx to patch. For the 19.6.1 Ruby fix, GitLab states that GitLab.com and GitLab Dedicated already run a patched version and that their customers do not need to take action. GitLab has published nothing we could find about NGINX2Root on GitLab.com specifically, so that statement covers the Ruby CVE only. Either way, the servers are GitLab's to patch, not yours.
Why this keeps happening: a bundled web server has its own patch cadence
The same gap will open again after GitLab ships this fix. A bundled web server is patched when its vendor ships a new package, not when your distro does. Your nginx security updates and your GitLab security updates arrive on two separate schedules.
This also affects scanning. A tool that only reads the package database sees gitlab-ee as one package, so it cannot report the nginx version inside it. When you check your server for known CVEs, add the bundled binary's -v output to the list by hand. Unattended upgrades do not close the gap either. Even if your config includes GitLab's repository, the upgrade can only move you to the nginx that GitLab pins.
If keeping a large bundled stack patched is more work than you want, the other self-hosted Git server options differ a lot in how many components they ship. A smaller server that sits behind your distro's nginx gets its web server patches from apt.
FAQ
I upgraded nginx with apt. Is my GitLab server patched against NGINX2Root?
Not on a default install. The GitLab Linux package and the gitlab/gitlab-ee Docker image run their own nginx under /opt/gitlab/embedded, and apt never upgrades it. Run sudo /opt/gitlab/embedded/sbin/nginx -v to read the version that actually serves GitLab. Anything from 1.9.5 to 1.31.8 is in the CVE-2026-123007 range.
Which GitLab version fixes CVE-2026-123007?
As of 24 November 2026, none. GitLab 19.6, 19.6.1, 19.5.8 and 19.4.10 all pin nginx 1.31.7, and the 20 November patch release fixed only the Ruby CVE-2026-132825. Check the nginx pin in the omnibus-gitlab source and GitLab's patch release posts for the release that moves to nginx 1.31.10 or later.
How do I turn off HTTP/2 in GitLab's bundled nginx?
On GitLab 19.2 and later, add gitlab_rails['nginx']['http2_enabled'] = false to /etc/gitlab/gitlab.rb and run sudo gitlab-ctl reconfigure. On 19.1 and earlier, use nginx['http2_enabled'] = false. The setting covers the main GitLab application only, so also check your Pages and Container Registry hostnames with curl --http2.
Will turning off HTTP/2 break the GitLab agent for Kubernetes?
Native gRPC needs HTTP/2, so the grpcs:// agent path stops being available on that nginx. GitLab's docs say the WebSocket path at wss://<your-host>/-/kubernetes-agent/ stays available. They do not say what happens to an agent installed with an explicit grpcs:// address, so test one agent on the wss:// address first.