Critical Arbitrary Code Execution Vulnerability in nginx Package

nginx Updated 20 May 2026

Summary

18/05/2026
N/A
Yes i
Unrated
Not published

ALSA-2026:18063: Critical: nginx security update. Affects nginx versions < 2:1.26.3-2.el10_1.2. Fixed in 2:1.26.3-2.el10_1.2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

nginx is a high-performance web and proxy server that supports HTTP and other protocols, designed for high concurrency, performance, and low memory usage. It is widely used for serving static content, load balancing, and as a reverse proxy. However, a critical vulnerability has been identified that could allow attackers to execute arbitrary code, compromising the integrity and security of systems running affected versions.

Vulnerability Detail

The vulnerability, identified as CVE-2026-42945, allows for arbitrary code execution due to improper handling of certain requests. This could lead to unauthorized access, data breaches, and potential control over the affected server. The vulnerability originates from flaws in the nginx codebase that fail to adequately validate input, making it susceptible to crafted requests that exploit these weaknesses.

How To Fix

Minimum fixed version

2:1.26.3-2.el10_1.2

This is the first release that contains the fix.

sudo dnf update nginx

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can restrict access to the nginx server by implementing firewall rules or limiting the IP addresses that can connect to the server. However, this is not a permanent solution and updating to the patched version is strongly recommended.

Conclusion

The nginx package has a critical vulnerability (CVE-2026-42945) that allows for arbitrary code execution. It is essential to update to the patched version 2:1.26.3-2.el10_1.2 to mitigate the risks associated with this vulnerability. Implementing temporary workarounds can help, but they are not substitutes for applying the necessary updates.

See every vulnerability recorded for nginx →

Share this vulnerability

FAQ

CVE-2026-42945 is a critical vulnerability in the nginx package that allows for arbitrary code execution, potentially compromising server security.

You can check if your nginx installation is affected by using tools like Vulert, which monitors open-source vulnerabilities in your software.

If immediate updates are not possible, consider implementing firewall rules to restrict access as a temporary measure until you can apply the patch.

Versions prior to 2:1.26.3-2.el10_1.2 are affected by this vulnerability. It is crucial to update to the fixed version.

More information can be found on the CVE page for CVE-2026-42945 and the official nginx documentation.

Related vulnerabilities

Recent vulnerabilities recorded for nginx.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

2:1.26.3-2.el10_1.2

This is the first release that contains the fix.

sudo dnf update nginx

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback