Audit Nginx configuration for vulnerabilities in CVE-2026-123007, CVE-2026-123633, CVE-2026-123634, CVE-2026-121810, CVE-2026-113425
Audit the Nginx configuration for the following security vulnerabilities:
CVE-2026-123007: A vulnerability in HTTP/2 processing that can cause heap memory corruption (out-of-bounds memory write). It can be exploited by an attacker to corrupt NGINX worker memory and potentially execute malicious code.
CVE-2026-123633: A use-after-free vulnerability in HTTP/2 when a connection is being closed (connection draining) while a connection to an upstream is still in progress. It can cause a worker crash or potentially code execution.
CVE-2026-121810: A use-after-free vulnerability in HTTP/3/QUIC when a connection closing process (connection draining) occurs simultaneously with stream creation and upstream communication.
CVE-2026-123634: A use-after-free vulnerability in the NGINX DNS resolver mechanism when processing DNS responses. Certain conditions, such as using the resolver with a dynamic proxy_pass or a mirror configuration, can trigger the vulnerability.
CVE-2026-113425: A use-after-free vulnerability in the Mail Proxy Module when a client disconnects during the authentication process via auth_http. It can cause a crash or potential code execution.
Save the script on the NGINX server, then:
chmod +x nginx_cve_audit.sh
sudo ./nginx_cve_audit.sh
If NGINX uses a custom binary location:
sudo NGINX_BIN=/usr/sbin/nginx ./nginx_cve_audit.sh
Save the audit results to a file:
sudo ./nginx_cve_audit.sh 2>&1 | tee nginx_cve_audit_$(date +%F).log
[RISK] = A feature is detected as active and the version has not been updated; indicates high risk.
[WARN] = There is a configuration that needs manual review.
[OK] = No exposure pattern was found, or the version has already been updated.