A vulnerability scan or a security audit reports nginx/1.18.0 (Ubuntu) and attaches a long list of CVEs. The scanner read the Server header, compared 1.18.0 with the version ranges on nginx.org and found it inside many of them. That comparison is right for nginx built from nginx.org’s source. It says little about the Ubuntu and Debian packages, which keep the number 1.18.0 for the life of the release and patch the code underneath it.
Short answer
1.18.0-6ubuntu14.24. Ubuntu 20.04 without Ubuntu Pro has fixed 5 and Debian 11 has fixed 18, because their free security support has ended. The banner says 1.18.0 on all three, so check the package version, not the header.curl -sI https://example.com | grep -i '^server'
# server: nginx/1.18.0 (Ubuntu)Why does a scanner call nginx 1.18.0 vulnerable?
nginx 1.18.0 was released on 21 April 2020 as the start of the 1.18 stable branch. nginx.org publishes fixes as new releases of its current branches: on 21 November 2026 that is stable 1.30.7 and mainline 1.31.9, and 1.18.0 sits in the “legacy versions” list of the download page. Measured against nginx.org, every 1.18.0 is old.
Ubuntu 20.04, Ubuntu 22.04 and Debian 11 all ship nginx 1.18.0, and their security teams have kept it there. For each vulnerability they take nginx.org’s patch, apply it to the 1.18.0 code (the 22.04 changelog names a debian/patches/CVE-… file for each fix) and publish a package with a longer version string: 1.18.0-6ubuntu14.24 on 22.04, 1.18.0-0ubuntu1.7+esm6 on 20.04 with Ubuntu Pro, 1.18.0-6.1+deb11u8 on Debian 11. The part after 1.18.0 changes with each security update; the part a scanner can see never does. The (Ubuntu) in the banner comes from a branding patch in Ubuntu’s package; Debian’s package has no such patch, so a Debian 11 server answers with plain nginx/1.18.0.
So the scan result is a question, not a verdict. It becomes a finding only when the installed package lacks the fixes, and on two of these three releases that is now likely.
Which CVEs affect nginx 1.18.0, and where are they fixed?
nginx.org’s security advisories page gives a vulnerable range for every issue. 29 of the ranges include 1.18.0; the HTTP/3 issues and the others in code that came after 1.18 do not. One more entry, CVE-2009-4487 (error log data not sanitized, severity none), is listed for all versions with no fixed release; scanners often report it, and no package changes it. Here they are, newest first, with the package that fixed each one as Ubuntu’s CVE pages and the Debian security tracker showed it on 21 November 2026.
| CVE | Issue on nginx.org (severity) | Ubuntu 22.04 | Ubuntu 20.04 | Debian 11 |
|---|---|---|---|---|
| CVE-2026-123634 | Use-after-free during response processing in resolver (medium) | 1.18.0-6ubuntu14.23USN-9159-1 | 1.18.0-0ubuntu1.7+esm5USN-9159-1, Ubuntu Pro | No fix listed |
| CVE-2026-123007 | Memory corruption in HTTP/2 flow control (major) | 1.18.0-6ubuntu14.23USN-9159-1 | 1.18.0-0ubuntu1.7+esm5USN-9159-1, Ubuntu Pro | No fix listed |
| CVE-2026-118899 | Infinite loop while reading client request body over TLS 1.3 (major) | 1.18.0-6ubuntu14.24USN-9182-1 | 1.18.0-0ubuntu1.7+esm6USN-9182-1, Ubuntu Pro | No fix listed |
| CVE-2026-113425 | Use-after-free in mail proxy module (major) | 1.18.0-6ubuntu14.23USN-9159-1 | 1.18.0-0ubuntu1.7+esm5USN-9159-1, Ubuntu Pro | No fix listed |
| CVE-2026-125283 | Buffer overflow when using alias with try_files (minor) | 1.18.0-6ubuntu14.24USN-9182-1 | 1.18.0-0ubuntu1.7+esm6USN-9182-1, Ubuntu Pro | No fix listed |
| CVE-2026-123640 | Insufficient validation in stream ssl_preread module (minor) | 1.18.0-6ubuntu14.24USN-9182-1 | 1.18.0-0ubuntu1.7+esm6USN-9182-1, Ubuntu Pro | No fix listed |
| CVE-2026-15176 | Buffer overflow when using alias with rewrite (medium) | 1.18.0-6ubuntu14.22USN-8955-1 | 1.18.0-0ubuntu1.7+esm4USN-8955-2, Ubuntu Pro | No fix listed |
| CVE-2026-97205 | Use-after-free when using asynchronous file I/O (medium) | 1.18.0-6ubuntu14.22USN-8955-1 | 1.18.0-0ubuntu1.7+esm4USN-8955-2, Ubuntu Pro | No fix listed |
| CVE-2026-42533 | Buffer overflow when using map and regex (major) | 1.18.0-6ubuntu14.21USN-8563-5 | 1.18.0-0ubuntu1.7+esm4USN-8955-2, Ubuntu Pro | No fix listed |
| CVE-2026-60005 | Memory disclosure when using ngx_http_slice_module (medium) | 1.18.0-6ubuntu14.17USN-8563-1 | Vulnerable | No fix listed |
| CVE-2026-56434 | Use-after-free when using ngx_http_ssi_module (medium) | 1.18.0-6ubuntu14.17USN-8563-1 | Vulnerable | No fix listed |
| CVE-2026-42055 | Buffer overflow in the ngx_http_proxy_v2_module and ngx_http_grpc_module (medium) | 1.18.0-6ubuntu14.16USN-8458-1 | Vulnerable | 1.18.0-6.1+deb11u8DLA-4660-1 |
| CVE-2026-48142 | Buffer overread in the ngx_http_charset_module (low) | 1.18.0-6ubuntu14.16USN-8458-1 | Vulnerable | 1.18.0-6.1+deb11u8DLA-4660-1 |
| CVE-2026-9256 | Buffer overflow in the ngx_http_rewrite_module (medium) | 1.18.0-6ubuntu14.12USN-8354-1 | 1.18.0-0ubuntu1.7+esm1USN-8375-1, Ubuntu Pro | 1.18.0-6.1+deb11u7DLA-4634-1 |
| CVE-2026-42945 | Buffer overflow in the ngx_http_rewrite_module (medium) | 1.18.0-6ubuntu14.11USN-8271-1 | 1.18.0-0ubuntu1.7+esm1USN-8375-1, Ubuntu Pro | 1.18.0-6.1+deb11u6DLA-4589-1 |
| CVE-2026-42946 | Buffer overread in the ngx_http_scgi_module and ngx_http_uwsgi_module (medium) | 1.18.0-6ubuntu14.12USN-8354-1 | 1.18.0-0ubuntu1.7+esm1USN-8375-1, Ubuntu Pro | 1.18.0-6.1+deb11u6DLA-4589-1 |
| CVE-2026-42934 | Buffer overread in the ngx_http_charset_module (low) | 1.18.0-6ubuntu14.12USN-8354-1 | 1.18.0-0ubuntu1.7+esm1USN-8375-1, Ubuntu Pro | 1.18.0-6.1+deb11u6DLA-4589-1 |
| CVE-2026-27654 | Buffer overflow in ngx_http_dav_module (medium) | 1.18.0-6ubuntu14.10no 22.04 USN listed | 1.18.0-0ubuntu1.7+esm1USN-8375-1, Ubuntu Pro | 1.18.0-6.1+deb11u6DLA-4589-1 |
| CVE-2026-27784 | Buffer overflow in the ngx_http_mp4_module (medium) | 1.18.0-6ubuntu14.10no 22.04 USN listed | 1.18.0-0ubuntu1.7+esm1USN-8375-1, Ubuntu Pro | 1.18.0-6.1+deb11u6DLA-4589-1 |
| CVE-2026-32647 | Buffer overflow in the ngx_http_mp4_module (medium) | 1.18.0-6ubuntu14.10no 22.04 USN listed | 1.18.0-0ubuntu1.7+esm1USN-8375-1, Ubuntu Pro | 1.18.0-6.1+deb11u6DLA-4589-1 |
| CVE-2026-27651 | NULL pointer dereference while using CRAM-MD5 or APOP (low) | 1.18.0-6ubuntu14.10no 22.04 USN listed | 1.18.0-0ubuntu1.7+esm1USN-8375-1, Ubuntu Pro | 1.18.0-6.1+deb11u6DLA-4589-1 |
| CVE-2026-28753 | Injection in auth_http and XCLIENT (medium) | 1.18.0-6ubuntu14.10no 22.04 USN listed | 1.18.0-0ubuntu1.7+esm1USN-8375-1, Ubuntu Pro | 1.18.0-6.1+deb11u6DLA-4589-1 |
| CVE-2026-1642 | SSL upstream injection (medium) | 1.18.0-6ubuntu14.8USN-8038-1 | 1.18.0-0ubuntu1.7+esm1USN-8375-1, Ubuntu Pro | 1.18.0-6.1+deb11u6DLA-4589-1 |
| CVE-2025-53859 | Buffer overread in the ngx_mail_smtp_module (low) | 1.18.0-6ubuntu14.7USN-7715-1 | 1.18.0-0ubuntu1.7+esm1USN-8375-1, Ubuntu Pro | 1.18.0-6.1+deb11u6DLA-4589-1 |
| CVE-2025-23419 | SSL session reuse vulnerability (medium) | 1.18.0-6ubuntu14.6USN-7285-1, see note | 1.18.0-0ubuntu1.7USN-7285-1, see note | 1.18.0-6.1+deb11u4DLA-4091-1 |
| CVE-2024-7347 | Buffer overread in the ngx_http_mp4_module (low) | 1.18.0-6ubuntu14.5USN-7014-1 | 1.18.0-0ubuntu1.6USN-7014-1 | 1.18.0-6.1+deb11u4DLA-4091-1 |
| CVE-2022-41741 | Memory corruption in the ngx_http_mp4_module (medium) | 1.18.0-6ubuntu14.3USN-5722-1 | 1.18.0-0ubuntu1.4USN-5722-1 | 1.18.0-6.1+deb11u3DSA-5281-1 |
| CVE-2022-41742 | Memory disclosure in the ngx_http_mp4_module (medium) | 1.18.0-6ubuntu14.3USN-5722-1 | 1.18.0-0ubuntu1.4USN-5722-1 | 1.18.0-6.1+deb11u3DSA-5281-1 |
| CVE-2021-23017 | 1-byte memory overwrite in resolver (medium) | 1.18.0-6ubuntu9fixed before 22.04 shipped | 1.18.0-0ubuntu1.2USN-4967-1 | 1.18.0-6.1fixed before Debian 11 shipped |
- Ubuntu Pro marks an Expanded Security Maintenance (ESM) update. It installs only on a machine attached to an Ubuntu Pro subscription; a plain 20.04 server stops at
1.18.0-0ubuntu1.7, from February 2025. - Vulnerable is Ubuntu’s own status for 20.04 on these four CVEs: no fix has been published for it, Ubuntu Pro or not.
- No fix listed: the Debian security tracker shows no Debian 11 fix. Debian 11’s LTS period ended on 31 August 2026, and the last nginx update for it was DLA-4660-1 on 30 June 2026.
- CVE-2025-23419: Ubuntu’s CVE page lists 22.04 and 20.04 as fixed in the versions shown, but USN-7285-1 says the issue only affected Ubuntu 24.10, and the 22.04 changelog does not name it. A
grepfor it finds nothing; that is expected. - No 22.04 USN listed: Ubuntu’s CVE pages link no 22.04 notice for these five, but the 22.04 package changelog names all five under
1.18.0-6ubuntu14.10.
Three things stand out. 23 of the 29 were published in 2026, so a server last updated in May misses more than a dozen fixes even on a supported release. Ubuntu 22.04 is complete: the batch nginx.org released on 18 November 2026 reached it on 19 and 20 November. And many entries only matter when a feature is in use: the mp4 ones where the mp4 directive serves video, the mail ones where nginx runs as a mail proxy, WebDAV, SSI and slice only where you switched them on. Others sit in code most sites run, such as HTTP/2, TLS and the rewrite module. Do not argue the list down one module at a time: one package update closes all of them.
How do I check which nginx package is installed?
nginx -v prints the same upstream number the banner does. The package manager knows the rest:
nginx -v # nginx version: nginx/1.18.0 (Ubuntu): upstream number only
apt policy nginx nginx-common # "Installed:" is the full package versionNewest nginx package per release (21 November 2026)
- Ubuntu 22.04
- 1.18.0-6ubuntu14.24all 29 fixed
- Ubuntu 20.04 with Ubuntu Pro
- 1.18.0-0ubuntu1.7+esm625 of 29 fixed
- Ubuntu 20.04 without Ubuntu Pro
- 1.18.0-0ubuntu1.75 of 29 fixed
- Debian 11
- 1.18.0-6.1+deb11u818 of 29 fixed
A version at or above your release’s line has every fix in the table for that column. To check one CVE, search the package changelog, then compare versions: a changelog can also name a CVE in an entry that disabled the fix again after a regression. On Ubuntu 22.04, CVE-2026-42533 appears in 14.17 and 14.19 and is disabled again in 14.18 and 14.20; Ubuntu counts it fixed from 14.21. By default apt changelog shows the changelog of the version that is installed; the zgrep reads the copy installed with the package, so it also works offline:
apt changelog nginx | grep -i CVE | head -4
# - debian/patches/CVE-2026-123640-1.patch: Stream ssl_preread: forbid
# - debian/patches/CVE-2026-123640-2.patch: Stream ssl_preread: forbid
# - CVE-2026-123640
# - debian/patches/CVE-2026-118899.patch: Explicitly handle NGX_AGAIN when
zgrep -h CVE-2026-123007 /usr/share/doc/nginx*/changelog.Debian.gz | sort -u
# - CVE-2026-123007
# - debian/patches/CVE-2026-123007.patch: Account for queued frames whenThe lines shown come from the changelog of Ubuntu 22.04’s 1.18.0-6ubuntu14.24. If the zgrep finds no file (some minimal images leave out /usr/share/doc), use apt changelog. For a script or a ticket, compare versions with dpkg itself instead of by eye:
v=$(dpkg-query -W -f='${Version}' nginx-common)
dpkg --compare-versions "$v" ge 1.18.0-6ubuntu14.24 && echo "$v: all fixes in" || echo "$v: update needed"That package version, the changelog lines and the USN, DSA or DLA numbers from the table are what an auditor needs to close the finding. The banner cannot show any of it. If you are not sure which release the server runs, checking the Linux version takes one command.
How do I install the fixes?
Ubuntu 22.04. Update as usual, then restart nginx: a reload keeps the old binary running, a restart starts the patched one (when a reload is not enough explains why).
sudo apt update && sudo apt upgrade
sudo nginx -t && sudo systemctl restart nginx
apt policy nginx-common # check the Installed: line againUbuntu 20.04. Canonical’s standard security maintenance for 20.04 ended in May 2025. Fixes since then come through ESM, which needs an Ubuntu Pro subscription; Canonical’s terms make it free for personal use on up to 5 physical machines. Attach the machine with the token from your Ubuntu Pro account, then run the same update. Even then, four CVEs in the table remain open on 20.04.
sudo pro attach <your-token>
sudo pro status # shows which ESM services are enabled
sudo apt update && sudo apt upgrade
sudo systemctl restart nginxDebian 11. The update installs 1.18.0-6.1+deb11u8 and stops there: Debian’s own security support for bullseye is over, and eleven CVEs in the table have no Debian 11 fix in Debian’s tracker. Extended LTS, which Debian’s wiki describes as a commercial offering that is not an official Debian project, covers bullseye until 30 June 2031. That is a third-party repository you add and trust yourself; for a public web server, a supported Debian release is the cleaner fix, covered below.
Does server_tokens off fix it?
No. It hides the symptom the scanner reads and leaves the cause where it was.
server_tokens off;sudo nginx -t && sudo systemctl reload nginx
curl -sI https://example.com | grep -i '^server' # server: nginxPer nginx’s documentation, server_tokens decides whether the version appears on error pages and in the Server header; with off, both still say nginx, without a number. Dropping the header entirely is a commercial subscription feature. The directive changes no code: an unpatched nginx with server_tokens off keeps every hole, and a scanner that judged by the banner simply stops reporting them. Many reports list version disclosure as a finding of its own, and this line fixes that one. Set it after patching, never instead of patching.
Is there a public exploit for nginx 1.18.0?
This article does not cover exploitation. Four of the 29 carry nginx.org’s “major” severity (CVE-2026-123007, CVE-2026-118899, CVE-2026-113425 and CVE-2026-42533), Ubuntu rates four as High priority, and the CVE record for CVE-2026-42945 says crafted requests can make a worker process restart and, where ASLR is disabled or bypassed, execute code. Whether a working exploit for any one of them is public on the day you read the report changes nothing for a server you run: the fix is the same package update. If you are the one writing the report, mark the banner as needing verification and ask for the package version, rather than counting 29 CVEs against a build that may have all of them fixed.
When is moving off 1.18.0 the better fix?
When the release under it no longer gets free security updates. Ubuntu and Debian freeze the nginx version of every release, so a newer release still shows scanners an old number; the difference is that someone still patches it.
| Release | nginx in the package | Security support |
|---|---|---|
| Ubuntu 20.04 | 1.18.0 | Standard support ended May 2025; ESM with Ubuntu Pro until May 2030 |
| Ubuntu 22.04 | 1.18.0 | Standard support until May 2027; ESM until May 2032 |
| Ubuntu 24.04 | 1.24.0 | Standard support until May 2029; ESM until May 2034 |
| Debian 11 | 1.18.0 | Debian LTS ended 31 August 2026 |
| Debian 12 | 1.22.1 | Debian LTS until 30 June 2028 |
| Debian 13 | 1.26.3 | Debian LTS until 30 June 2030 |
Where to start
- If the server runs Ubuntu 22.04update now; plan the move to 24.04 before standard support ends in May 2027.
- If it runs Ubuntu 20.04attach Ubuntu Pro today, then upgrade to 22.04 and on to 24.04: Ubuntu goes one LTS at a time.
- If it runs Debian 11move to Debian 12 or 13; Debian itself publishes no fix for the open entries.
- If you need a current nginx on a supported releaseuse nginx.org's own packages, with the trade-offs below.
The nginx.org repository. nginx.org builds packages of its current stable and mainline versions for Ubuntu 22.04 and newer and for Debian 12 and 13, and its instructions pin them above the distribution’s package. Fixes then arrive with nginx.org’s own releases, and the banner shows a current number. In exchange you follow nginx.org’s releases yourself, and the configuration layout differs from Ubuntu’s and Debian’s (the nginx overview shows both). nginx.org builds nothing for Ubuntu 20.04 or Debian 11, so for those it is no way out: the operating system has to move first.
A newer release. In place, Ubuntu moves one LTS at a time, so 20.04 goes to 22.04 first, and Debian goes from 11 to 12 before 12 to 13. Take a snapshot first. On a server that holds little state, a fresh install and a copy of your sites and certificates is often quicker than two release upgrades in a row.
Sources
All read on 21 November 2026:
- nginx.org: security advisories, 2026 release news, download page, CHANGES-1.18, Linux packages
- Ubuntu: the CVE pages at
ubuntu.com/security/CVE-…and the notices atubuntu.com/security/notices/USN-…named in the table, for example CVE-2026-123007 and USN-9182-1; release cycle, Ubuntu Pro - Debian: security tracker for nginx and its per-CVE pages, the LTS advisory list, LTS and Extended LTS wiki pages
- Ubuntu 22.04 nginx changelog and the
apt-getmanual page (changelog)
Frequently asked
Is nginx 1.18.0 vulnerable?
nginx 1.18.0 built from nginx.org's source is: on 21 November 2026 nginx.org listed 29 vulnerabilities whose version range includes it, and nginx.org releases fixes only as new versions of its current branches. Distribution packages differ. Ubuntu 22.04's 1.18.0-6ubuntu14.24 carries fixes for all 29, while Ubuntu 20.04 without Ubuntu Pro and Debian 11 lack many because their free security support has ended. Check the package version, not the banner.
Does server_tokens off fix the nginx 1.18.0 vulnerabilities?
No. server_tokens off removes the version number from the Server header and from error pages, so a scanner that judges by the banner stops listing the CVEs, but the code is unchanged. It is the right fix for a version disclosure finding. Install the patched package first, then set server_tokens off in the http block and reload nginx.
Which nginx version do Ubuntu and Debian ship?
Ubuntu 20.04, Ubuntu 22.04 and Debian 11 all ship nginx 1.18.0 and add security fixes to it, so the number never changes. Ubuntu 24.04 ships 1.24.0, Debian 12 ships 1.22.1 and Debian 13 ships 1.26.3, each patched the same way. nginx.org's own packages for Ubuntu 22.04 and newer and Debian 12 and 13 follow its current stable or mainline version instead.
How do I prove to an auditor that nginx is patched?
Send the full package version from apt policy nginx or dpkg-query, the changelog lines that name each CVE (apt changelog nginx or zgrep on /usr/share/doc/nginx*/changelog.Debian.gz; a line can also record a fix withdrawn after a regression, so the version decides), and the Ubuntu USN or Debian DSA or DLA number that shipped the fix. Ubuntu's CVE pages and the Debian security tracker show the fixed version for each release. The Server header cannot show any of this.
Is there a public exploit for nginx 1.18.0?
Some of the 29 CVEs have published technical write-ups, and the CVE record for CVE-2026-42945 says crafted requests can restart a worker process and, where ASLR is disabled or bypassed, execute code. For a server you run, it does not matter whether a proof of concept is public: install the fixed package, or move to a release that still receives security updates.