HTTP Request Smuggling Vulnerability in NGINX: CVE-2019-20372

nginx Updated 02 Oct 2025

Summary

09/01/2020
N/A
Yes i
Medium
5.3

ALPINE-CVE-2019-20372: NGINX before 1.17.7, with certain error_page configurations, allows HTTP request smuggling, as demonstrated by the ability of an attacker to read unauthorized web pages in environments where NGINX is being fronted by a l... Affects nginx versions < 1.16.1-r2. Fixed in 1.16.1-r2. 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

NGINX is a high-performance web server and reverse proxy server known for its stability, rich feature set, and low resource consumption. It is widely used for serving static content, load balancing, and as a reverse proxy for various applications. However, certain configurations of the error_page directive in NGINX versions prior to 1.17.7 can lead to HTTP request smuggling vulnerabilities, allowing attackers to exploit the server's handling of requests.

Vulnerability Detail

The vulnerability, identified as CVE-2019-20372, arises from improper handling of HTTP requests when specific error_page configurations are used. This flaw can enable an attacker to perform HTTP request smuggling, potentially allowing unauthorized access to sensitive web pages when NGINX is deployed behind a load balancer. The ramifications include data leakage and unauthorized access to resources, which can compromise the integrity and confidentiality of the web application.

How To Fix

Minimum fixed version

1.16.1-r2

This is the first release that contains the fix.

sudo apk add --upgrade nginx

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

Workaround

As a temporary workaround, consider disabling the specific error_page configurations that may lead to this vulnerability until the package can be updated. Review the NGINX configuration files and comment out or modify any error_page directives that could be exploited.

Conclusion

CVE-2019-20372 is a significant vulnerability affecting NGINX that can lead to HTTP request smuggling. It is crucial for users to update their NGINX installations to the patched versions to mitigate the risks associated with this vulnerability. Regular monitoring using tools like Vulert can help maintain the security of your applications.

See every vulnerability recorded for nginx →

Share this vulnerability

FAQ

CVE-2019-20372 is a vulnerability in NGINX that allows HTTP request smuggling due to improper handling of certain error_page configurations.

If you are using NGINX versions prior to 1.17.7, especially with specific error_page configurations, your installation may be vulnerable.

The vulnerability can lead to unauthorized access to sensitive web pages and data leakage, compromising the security of the web application.

You can update NGINX using the package manager for your operating system. For Alpine Linux, use 'apk add nginx=1.16.1-r6' for versions 3.11 and above.

Yes, Vulert can monitor and alert you in real-time for open-source vulnerabilities in your software using just a manifest file like package-lock.json.

Related vulnerabilities

Recent vulnerabilities recorded for nginx.

How To Fix

Minimum fixed version

1.16.1-r2

This is the first release that contains the fix.

sudo apk add --upgrade 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