TL;DR
- We’re releasing a one-line installer for NGINX Open Source. It adds the nginx.org package repository to your Linux distribution and installs NGINX from it:
curl --proto '=https' --tlsv1.2 -fsSL https://raw.githubusercontent.com/nginx/nginx-demos/main/nginx/get-nginx-org/nginx.sh | sh
Packages from nginx.org get each security fix the day its CVE is announced. Distributions backport the same fixes to the NGINX release they ship, on their own schedules, often within days, sometimes months later. nginx.org mainline packages also get new NGINX features first, and modules such as njs, otel, and acme that many distributions don’t package.
The script works on RHEL and its derivatives (CentOS Stream, Rocky Linux, AlmaLinux, and Oracle Linux), Debian, Ubuntu, SLES, openSUSE Leap, Alpine, and Amazon Linux, on x86_64 and aarch64. If you already run your distribution’s NGINX, it tells you what the switch changes and how to keep your sites loading.
The script is still in development and not officially supported. Try it on a test machine, and tell us how it went on the NGINX Community Forum.
The tech industry is experiencing an AI-driven surge in CVEs
AI has made finding vulnerabilities routine. Bad actors with access to frontier models use them to find and exploit flaws in widely used software, security researchers use the same models to find the gaps first, and software owners now run security models such as Anthropic’s Claude Mythos against their own code. F5 is one of them: we run AI scanning harnesses across more than 148 million lines of our own code. In its May 2026 update on Project Glasswing, Anthropic put it this way: “Progress on software security used to be limited by how quickly we could find new vulnerabilities. Now it’s limited by how quickly we can verify, disclose, and patch the large numbers of vulnerabilities found by AI.”
By the time a project CVE is made public, the upstream project has usually already addressed it thanks to responsible disclosure mechanisms. However, getting that fix onto your servers can prove to be too slow depending on how the project ships. A project that publishes only source code leaves you waiting for your distribution or another packager to build it, or you resort to building it yourself. With binaries but no package repository, you download, check, and install the new build by hand on every machine. With a package repository, your package manager picks up the fix with your next update. Until the fixed release is running, you’re exposed, and the CVE announcement has exponentially increased your risk by letting everyone know about the vulnerability. As F5 Chief Product Officer Kunal Anand wrote when he explained why F5 is speeding up its own release cadence: “Attackers can move from a discovered weakness to a working exploit faster than most organizations can patch.”
NGINX has seen the same surge in AI-driven CVEs
NGINX is not an exception to this rise in security findings that is being experienced across the industry. The nginx.org security advisories list 37 CVEs fixed in 2026, up from two in 2025. Frontier models are here to stay, and whilst this surge will likely quieten down over time as most obscure security exploits are found and addressed, there is no actual timeline. We are in uncharted territory, and so are the other open source projects and the distributions that package them.
The F5 Security Incident Response Team (F5 SIRT) follows a strict rule for NGINX: the fixed release is always available at the same time as the CVE announcement. NGINX has its own package repositories: the NGINX team builds packages for each supported Linux distribution and publishes them in the nginx.org package repositories, for both the mainline and stable branches. If your servers install NGINX from those (our) repositories, the fixed build is there on the day the CVE is announced, hours before the announcement is made public.
Distribution packages with security backports take time
If you install the NGINX package your distribution ships, you get fixes on your distribution’s schedule. Most distributions put functional stability first, so each of their releases stays on one NGINX release branch (the stable release branch, usually), and they backport security fixes to it. That’s careful work: each fix has to be adapted to older code and tested with the rest of the release, and distribution security teams are handling this surge in CVEs across the thousands of packages they maintain. How long it takes varies between distributions and CVEs. We checked when the fixes for the 20 NGINX CVEs announced between July 15 and November 23, 2026, reached 19 distribution releases, using each distribution’s own security advisories, as of November 30, 2026:
- Major CVEs usually reach distributions within days: of the fixes we could date, almost half shipped within three days and two thirds within a week. CVE-2026-123007, a major memory corruption bug in HTTP/2, was fixed on nginx.org on November 18. Four of the 19 distribution releases we checked shipped the fix the same day, 16 within three days, and all 19 by November 24.
- Sometimes, a major CVE can still take up to two months. CVE-2026-42533, a major buffer overflow, was fixed on nginx.org on July 15, and distributions shipped their fixes between 5 and 64 days later. Backporting a fix to an older release can break something else: in one distribution, the first backport broke third-party modules and was reverted, and the eventual fix landed on September 14.
- Some CVE backports are still pending: a fix can still be in testing, or a distribution can defer a less severe one to a later update, amongst other reasons. Your distribution’s security tracker shows where each CVE stands for your release.

Figure 1: The days between the nginx.org fix and each distribution’s fix, as of November 30, 2026
On nginx.org, all 37 NGINX CVEs from 2026 were fixed the day they were announced. Until the CVEs are backported into your distribution’s NGINX build and you install them, your servers are exposed to a publicly known vulnerability.
Newer NGINX features and modules lag behind too
Security fixes aren’t the only thing you might be waiting for. New NGINX features land in the mainline branch first. Once a year, usually in April, the mainline branch becomes the next stable branch, and from then on that branch gets bug fixes and security fixes but no new features. Distributions package one NGINX release, usually from a stable branch, and keep it for the life of their release. Here’s what each one ships as of November 30, 2026:
| Distribution | NGINX version | NGINX branch | Released |
|---|---|---|---|
| Alpine 3.24 | 1.30.8 | stable | April 2026 |
| Amazon Linux 2023 | 1.30.7 | stable | April 2026 |
| Alpine 3.23 | 1.28.3 | stable | April 2025 |
| Alpine 3.22 | 1.28.3 | stable | April 2025 |
| Ubuntu 26.04 | 1.28.3 | stable | April 2025 |
| SLES 16, openSUSE Leap 16 | 1.27.2 | mainline | October 2024 |
| Debian 13 | 1.26.3 | stable | April 2024 |
| RHEL 10 | 1.26.3 | stable | April 2024 |
| RHEL 9 (nginx:1.26 stream) | 1.26.3 | stable | April 2024 |
| Ubuntu 24.04 | 1.24.0 | stable | April 2023 |
| RHEL 8 (nginx:1.24 stream) | 1.24.0 | stable | April 2023 |
| Debian 12 | 1.22.1 | stable | May 2022 |
| SLES 15 SP7 | 1.21.5 | mainline | December 2021 |
| Ubuntu 22.04 | 1.18.0 | stable | April 2020 |
Staying on one release line keeps a distribution’s NGINX stable. The trade-off is that none of these distributions ships the features added to NGINX since that release line: this includes the HTTP/3 support, Control API, predicate locations, the tunnel module, and MaxMind DB support in the geoip modules, amongst many others.
Modules vary too. The nginx.org repositories ship njs, OpenTelemetry (otel), and ACME (acme) as dynamic modules for every supported distribution, built for the exact NGINX version beside them. Each distribution chooses which modules to package: Debian, and Ubuntu from 24.04, package njs but not otel or acme. RHEL and its derivatives package none of the three, and EPEL 9 doesn’t add them. None of the distributions we checked package the otel module.
The default configuration differs too. Each distribution writes its own nginx.conf, and they put your sites in different places: Debian and Ubuntu use /etc/nginx/sites-enabled/, Alpine uses /etc/nginx/http.d/, SUSE uses /etc/nginx/vhosts.d/, and RHEL uses /etc/nginx/conf.d/. The nginx.org packages ship the same short nginx.conf on every distribution. It loads sites from /etc/nginx/conf.d/ and leaves everything else to NGINX’s own defaults, the ones the NGINX documentation describes. One layout on every server means one set of instructions, whichever distribution each server runs.
If your distribution’s schedule works for you, its NGINX package is a good choice. If you want fixes and features the day NGINX releases them, add the nginx.org repository to your distribution and install the builds the NGINX team at F5 provides. Your distribution still supplies every other package. The manual steps aren’t hard, but there are several, and they differ from one distribution to the next. We know no one likes having to follow manual steps, even less so in this day and age where we are growing exponentially used to AI automating most workflows we deal with on a daily basis.
Introducing the NGINX one-line installer
So today we’re releasing a script that does all of that in one line:
curl --proto '=https' --tlsv1.2 -fsSL https://raw.githubusercontent.com/nginx/nginx-demos/main/nginx/get-nginx-org/nginx.sh | sh
That installs the mainline branch, the default. For the stable branch, add --stable:
curl --proto '=https' --tlsv1.2 -fsSL https://raw.githubusercontent.com/nginx/nginx-demos/main/nginx/get-nginx-org/nginx.sh | sh -s -- --stable
The same command works on every supported distribution, from Debian and Ubuntu to RHEL, SLES, Alpine, and Amazon Linux. The script detects your distribution, version, and architecture, adds the nginx.org repository, and installs NGINX. After that, a normal system update installs new NGINX releases, including the security fixes that ship with each CVE announcement.
Keep --proto '=https' when you copy these commands. It makes curl refuse plain HTTP, even when a redirect points to it.
The script lives in the nginx/nginx-demos repository on GitHub. It will move to get.nginx.org once that site is live.
Note: The installer is still in development and isn’t officially supported yet. We’re releasing it early to get feedback from real systems while we take it across the finish line. Try it on a test machine before you rely on it in production.
Supported systems
As of November 30, 2026, the installer supports these distributions on x86_64 and aarch64:
| Distribution | Versions |
|---|---|
| RHEL and derivatives (CentOS Stream, Rocky Linux, AlmaLinux, Oracle Linux) | 8, 9, 10 |
| Debian | 12, 13 |
| Ubuntu | 22.04, 24.04, 26.04 |
| SLES | 15 SP7 or later (x86_64 only), 16 |
| openSUSE Leap | 16 |
| Alpine | 3.22, 3.23, 3.24 |
| Amazon Linux | 2023 |
It works with apt, dnf, microdnf, zypper, and apk, so minimal container images such as Red Hat Universal Base Image (UBI) minimal work too. Run it as root, or as a regular user who can use sudo or doas. Pipe it into sh, not sudo sh: the script uses sudo itself for the steps that need root.
To install dynamic modules in the same run, repeat --module for each one:
curl --proto '=https' --tlsv1.2 -fsSL https://raw.githubusercontent.com/nginx/nginx-demos/main/nginx/get-nginx-org/nginx.sh | sh -s -- --module njs --module otel
The available modules are acme, geoip, image-filter, njs, otel, perl, and xslt. Each is built for the NGINX version it installs with, on every supported distribution, so --module acme works the same on Rocky Linux as on Debian.
See the plan first
Piping a download into a shell runs code you haven’t read, and this code gets root. So before it changes anything, the installer prints its plan: the repository, the signing keys and their fingerprints, the packages, and every file it writes. Then it waits 10 seconds before it starts. Press Ctrl+C to cancel.
To see the plan and the exact commands without changing anything, use --dry-run:
curl --proto '=https' --tlsv1.2 -fsSL https://raw.githubusercontent.com/nginx/nginx-demos/main/nginx/get-nginx-org/nginx.sh | sh -s -- --dry-run
A dry run doesn’t call sudo, so it never asks for your password.
Better still, download the script, read it, and run the copy you read:
curl --proto '=https' --tlsv1.2 -fsSL https://raw.githubusercontent.com/nginx/nginx-demos/main/nginx/get-nginx-org/nginx.sh -o install-nginx.sh
less install-nginx.sh
sh install-nginx.sh
What the script checks
- The fingerprints of the nginx.org signing keys are pinned in the script. If the downloaded key file holds any other key, or a key the script can’t check, it stops before it adds the repository. Your system gets clean copies of the accepted keys, never the downloaded file. On Alpine it checks the RSA key against a pinned SHA-256 hash, so you don’t have to compare the modulus by eye.
- On apt and dnf systems, the nginx.org repository can only supply packages whose names start with
nginx, so it can’t replace unrelated system packages in a later upgrade. - Every package manager checks nginx.org’s signature on the repository metadata. dnf and zypper also check the signature on each package, and apt checks each package against the hashes in that signed metadata.
- After the install, the script confirms that the NGINX it installed came from nginx.org, at a version the nginx.org repository offers. Then it runs
nginx -tto test your configuration. - All the work happens in a function called on the script’s last line. If the download stops partway through, the shell never reaches it, and nothing runs.
In a Dockerfile or CI job
Don’t pipe from the network on every build. Save a copy you’ve reviewed, pin its SHA-256, and run it with --yes to skip the pause:
echo "HASH install-nginx.sh" | sha256sum -c - && sh install-nginx.sh --yes
Replace HASH with the first word printed by sha256sum install-nginx.sh.
Before you run it
- Back up
/etc/nginxfirst. The script replaces your distribution’s NGINX package, and the nginx.orgnginx.confdoesn’t load sites from the distribution’s own directory. The script knows where each distribution keeps them. Before it starts, it tells you ifsites-enabled,vhosts.d, orhttp.dhas sites in it. Once it’s done, it checks that they still load, and if they don’t, it gives you the exactincludeline to add tonginx.conf. On RHEL, your sites inconf.dcarry over as they are. The script also warns you about distribution module packages that go with the old NGINX, such as Ubuntu’slibnginx-mod-*. On Alpine, it creates the directory the nginx.org build needs, which the switch would otherwise leave out. - On RHEL 10 and 9 and their derivatives, and on Amazon Linux 2023, you have to remove the distribution’s NGINX before the nginx.org one can go in. If it’s still installed, the script stops before it changes anything and prints the
dnf removecommand to run. - The nginx.org repository and its signing keys stay after the install, so later updates come from nginx.org. Run the script with
--helpto see how to remove them. - Check that your automatic updates cover NGINX. On Debian and Ubuntu, unattended-upgrades only installs updates from the distribution’s own repositories by default, so the script adds nginx.org to that list. The nginx.org repositories don’t publish security advisory metadata, though, so updates that install security fixes only skip NGINX. On RHEL-family systems,
dnf upgrade --securityskips it, and so does dnf-automatic withupgrade_type = security; setupgrade_type = defaultto keep NGINX updated. On SLES,zypper patchskips it, so runzypper updateinstead. The script tells you which of these applies to your system.
Using NGINX in Kubernetes?
If you run NGINX Ingress Controller or NGINX Gateway Fabric, you don’t need the installer – those projects ship their own container images with NGINX built in. When a new NGINX patch lands, the project publishes updated images with a new patch tag. To pick up the fix, update the image tag in your Helm values or manifest and redeploy.
Try it and tell us how it went
We want this to be the easiest way to get a patched NGINX on any supported system, and to get there we need to hear how it behaves on real machines. Run it with --dry-run first, then on a test system, and tell us on the NGINX Community Forum what worked and what broke, especially on setups we haven’t thought of. Questions are welcome there too. If you package NGINX for a distribution, we’d also like to hear what would make our fixes easier to backport.
If you’d rather set up the repository by hand, the steps are on the nginx.org Linux packages page. If you want more information on our security patches, the nginx.org security advisories list every CVE and the releases that fix it.


