Critical Vulnerability in nginx: Arbitrary Code Execution Risk

nginx Updated 26 May 2026

Summary

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

ALSA-2026:19374: Critical: nginx security update. Affects nginx versions < 2:1.20.1-28.el9_8.2.alma.1. Fixed in 2:1.20.1-28.el9_8.2.alma.1. 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 Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

nginx is a high-performance web and proxy server that supports HTTP and other protocols, designed for high concurrency and low memory usage. It is widely used for serving static content and as a reverse proxy for dynamic content. The recent vulnerability identified as CVE-2026-42945 poses a significant risk, allowing arbitrary code execution, which could lead to severe security breaches.

Vulnerability Detail

The vulnerability arises from a flaw in nginx that allows an attacker to execute arbitrary code on the server. This can occur due to improper handling of requests, potentially leading to unauthorized access to sensitive data or complete server compromise. The impact of this vulnerability is critical, as it can affect the integrity and confidentiality of the server's data.

How To Fix

Minimum fixed version

2:1.20.1-28.el9_8.2.alma.1

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 measure, you can restrict access to the nginx server by implementing firewall rules or disabling certain modules until the update is applied. However, this is not a long-term solution and should only be used until the patch is installed.

Conclusion

The nginx vulnerability identified as CVE-2026-42945 presents a critical risk of arbitrary code execution. It is essential for users to update to the patched version to safeguard their systems. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for nginx →

Share this vulnerability

FAQ

CVE-2026-42945 is a critical vulnerability in nginx that allows for arbitrary code execution, posing a significant security risk.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

If exploited, this vulnerability can lead to unauthorized access, data breaches, and potentially complete control over the affected server.

Yes, the patched version of nginx is 2:1.20.1-28.el9_8.2.alma.1. It is crucial to update to this version to mitigate the risk.

If immediate updating is not possible, consider implementing temporary security measures such as restricting access or disabling vulnerable modules until the update can be applied.

Related vulnerabilities

Recent vulnerabilities recorded for nginx.

How To Fix

Minimum fixed version

2:1.20.1-28.el9_8.2.alma.1

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