NGINX2Root and Odoo: check and patch your Odoo server
Odotify team · Published · 7 min read

Most self-hosted Odoo servers put Nginx in front of Odoo to handle HTTPS, websockets and large uploads. On 18 November 2026 five serious Nginx vulnerabilities were published under the name NGINX2Root, and the worst one only needs HTTP/2, which is on in most HTTPS setups. This guide is for anyone who runs Odoo on their own server, VPS or cloud instance: how to tell in five minutes whether your Odoo server is exposed, how to patch it on Ubuntu and Debian, and what to rotate if you are not sure nobody got in. It uses the nginx.org advisories, the Ubuntu and Debian security trackers, and researcher write-ups read on 2 December 2026.
What is NGINX2Root?
NGINX2Root is the name the Xint research team gave to five Nginx memory-safety bugs that can allow remote code execution without logging in. Nginx fixed them in versions 1.30.7 (stable) and 1.31.9 (mainline), released on 18 November 2026. The same releases fix five lower-risk issues.
| CVE | What it is | Your Odoo server is in scope if | Vulnerable versions |
|---|---|---|---|
| CVE-2026-123007 | Memory corruption in HTTP/2 flow control | HTTP/2 is on (listen 443 ssl http2; or http2 on;) | 1.9.5 to 1.31.8 |
| CVE-2026-123633 | Use-after-free in HTTP/2 | HTTP/2 is on and worker_connections run out | 1.19.7 to 1.31.8 |
| CVE-2026-121810 | Use-after-free in HTTP/3 | HTTP/3 (quic) is on | 1.25.0 to 1.31.8 |
| CVE-2026-123634 | Use-after-free in the resolver | the resolver directive is used with subrequests | 0.6.18 to 1.31.8 |
| CVE-2026-113425 | Use-after-free in the mail proxy | Nginx runs as a mail proxy | 0.5.33 to 1.31.8 |
Version ranges from nginx.org's security advisories page. A typical Odoo reverse proxy has HTTP/2 on, no HTTP/3, no resolver and no mail proxy, so the first two bugs are the ones that matter. CVE-2026-123007 has been in Nginx since HTTP/2 support arrived in 2015; Invicti reports a CVSS v4.0 score of 9.2 and a public working exploit, with no exploitation in the wild confirmed as of 19 November 2026.
Does NGINX2Root give attackers root on my Odoo server?
Not by itself. The Nginx bugs give code execution as the Nginx worker process, usually the www-data user. The researchers reached root by chaining them with a separate Linux kernel bug, and in their demonstration broke out of a Docker container to the host. On an Odoo server, that matters because the host holds everything: the PostgreSQL database, the filestore, odoo.conf with the database password and master password, and the TLS private keys Nginx reads.
Even without root, the worker can read the TLS keys and see every request passing through, including Odoo session cookies and passwords typed into the login page. Treat it as serious.
How do I check whether my Odoo server is vulnerable?
Check the Nginx package version, whether HTTP/2 is on, and whether the running binary is the new one. Over SSH:
# 1. Installed package (compare with the fixed versions below)
dpkg -l nginx nginx-common nginx-core 2>/dev/null | grep ^ii
nginx -v
# 2. Is HTTP/2 or HTTP/3 switched on anywhere?
sudo nginx -T 2>/dev/null | grep -nE "listen .*http2|http2 on|quic|http3|resolver|mail"
# 3. When did the running Nginx start? Older than the update = still the old binary
ps -o pid,lstart,cmd -C nginx
Then check from outside whether the server still offers HTTP/2:
openssl s_client -connect odoo.example.com:443 -servername odoo.example.com -alpn h2 </dev/null 2>&1 | grep "ALPN protocol"
ALPN protocol: h2 means HTTP/2 is on and reachable.
Do not judge by nginx -v alone. Ubuntu and Debian put the fix into the version they ship, so a patched Ubuntu 24.04 server still says 1.24.0. Compare the full package version:
| System | Fixed package version (or later) |
|---|---|
| Ubuntu 26.04 LTS | 1.28.3-2ubuntu1.13 |
| Ubuntu 24.04 LTS | 1.24.0-2ubuntu7.20 |
| Ubuntu 22.04 LTS | 1.18.0-6ubuntu14.23 |
| Ubuntu 20.04 LTS | 1.18.0-0ubuntu1.7+esm5 (Ubuntu Pro) |
| Debian 13 (trixie) | 1.26.3-3+deb13u11 (DSA-6642-1) |
| Debian 12 (bookworm) | 1.22.1-9+deb12u11 (DLA-4918-1) |
| nginx.org packages | 1.30.7 or 1.31.9 |
From the Ubuntu and Debian security trackers for CVE-2026-123007, read on 2 December 2026. Check the tracker again for CVEs you care about besides this one.
Steps to patch Nginx on an Odoo server
- Take a fresh Odoo backup (database and filestore) so you can roll back the whole server if anything goes wrong. See Odoo backup and restore.
- Update the package list and install only the Nginx update:
sudo apt update && sudo apt install --only-upgrade nginx nginx-common nginx-core. - Check the configuration:
sudo nginx -t. - Restart Nginx:
sudo systemctl restart nginx. A reload only rereads the configuration; the old, vulnerable binary keeps running. - Confirm with
ps -o pid,lstart,cmd -C nginxthat every Nginx process started after the update, and thatdpkg -lshows the fixed version. - Open Odoo in a browser, sign in, and check that the Discuss chat updates live, which proves the
/websocketroute still works.
A restart drops open connections for a second. Odoo users may see a short "connection lost" notice that clears by itself.
If Odoo runs in Docker behind an Nginx container
Restarting a container keeps the old image. Pull the rebuilt image and recreate the container:
docker compose pull nginx
docker compose up -d --force-recreate nginx
docker compose exec nginx nginx -v
If you pin an exact tag, move to a tag that contains 1.30.7 or later. Our Odoo Docker guide uses Caddy instead of Nginx, which is not affected by these bugs.
Can I turn off HTTP/2 for Odoo until I patch?
Yes, and Odoo keeps working. Odoo's own HTTP server does not use HTTP/2; Nginx talks HTTP/1.1 to Odoo either way. Browsers fall back to HTTP/1.1 and the Odoo websocket upgrade works over HTTP/1.1, so live chat and notifications continue. Pages with many assets load a little slower.
On Nginx older than 1.25.1 (Ubuntu 24.04 and 22.04, Debian 12), remove http2 from each listen line:
# before
listen 443 ssl http2;
# after
listen 443 ssl;
On 1.25.1 and newer, add http2 off; to every server block that listens on 443. Then sudo nginx -t && sudo systemctl restart nginx and run the openssl check again: no h2 means it is off. This blocks the two HTTP/2 bugs only; patching is still the fix. Our Odoo Nginx reverse proxy guide shows the full server block.
A CDN or proxy in front, such as Cloudflare, only helps if it talks HTTP/1.1 to your server and your firewall refuses everyone else. An attacker who finds your server's IP skips the CDN.
What should I rotate if my Odoo server might have been attacked?
If you see Nginx workers crashing or processes you do not recognize, assume the server is compromised. Look for crashes and strange processes first:
sudo grep -E "worker process .* exited on signal" /var/log/nginx/error.log*
ps -u www-data -o pid,ppid,lstart,cmd | grep -v nginx
The attack uses HTTP/2 control frames, so it does not show up as a request in the access log. If anything looks wrong, rebuild on a clean server, restore Odoo from a backup taken before the first sign, and rotate:
- the PostgreSQL password of the Odoo database user (
db_passwordinodoo.conf); - the Odoo master password (
admin_passwd), which protects the database manager; - every Odoo user password and API key, starting with administrators;
- outgoing mail server, payment provider and other integration credentials stored in Odoo;
- the TLS certificate and key (issue new ones, revoke the old).
Our Odoo security checklist covers the rest of a server hardening pass.
What about Odoo Online, Odoo.sh and managed hosting?
On a hosted service, the provider patches Nginx, not you. Odoo Online and Odoo.sh run on Odoo's infrastructure, and Odoo's Enterprise agreement says that on its Cloud Platform Odoo applies security remedies "as soon as the remedy is available, without requiring any manual action of the Customer". With any other host, ask whether they run Nginx and when the fix was installed.
Odotify is our product, so here is exactly what it does and does not do: Odotify installs Ubuntu's or Debian's own Nginx package on the servers it manages, with HTTP/2 on, and turns on unattended-upgrades for daily security updates during server setup. The distribution's fixed package therefore arrives without any action from you. Run the ps check above to confirm the running Nginx started after the update, and restart Nginx from the server if it did not.
FAQ
Is Odoo affected by NGINX2Root?
Odoo itself is not, because the bugs are in Nginx. But most self-hosted Odoo servers use Nginx as the HTTPS reverse proxy with HTTP/2 on, so the server running Odoo usually is affected until Nginx is patched and restarted.
Which Nginx version fixes NGINX2Root?
Nginx 1.30.7 (stable) and 1.31.9 (mainline), released 18 November 2026. Distribution packages carry the fix under their own version numbers, for example 1.24.0-2ubuntu7.20 on Ubuntu 24.04 and 1.22.1-9+deb12u11 on Debian 12.
Is reloading Nginx enough after the update?
No. nginx -s reload and systemctl reload nginx reload the configuration but keep the old binary in memory. Restart Nginx, then check the process start time.
Will Odoo work without HTTP/2?
Yes. Odoo serves HTTP/1.1 behind the proxy anyway, and its websocket works over HTTP/1.1. Turning HTTP/2 off at Nginx only makes pages with many files load slightly slower.
Does Docker protect my Odoo server from NGINX2Root?
No. The researchers escaped a Docker container by chaining an Nginx bug with a Linux kernel bug. Update the Nginx image, recreate the container, and install your distribution's kernel update when it ships.
Sources
- nginx security advisories, read 2 December 2026
- nginx CHANGES, 1.31.9 (18 November 2026) and 1.31.10 (23 November 2026)
- Ubuntu: CVE-2026-123007, read 2 December 2026
- Debian security tracker: CVE-2026-123007, read 2 December 2026
- Invicti: NGINX2Root, critical NGINX RCE vulnerabilities explained, 19 November 2026
- xCloud: NGINX2Root, how to check and fix the 5 nginx vulnerabilities
- Odoo Enterprise Subscription Agreement, section 4.2
Odotify team
Odotify hosts Odoo on servers its customers own. This article was researched against live search results and the Odotify codebase.


