CVE-2024-34161 NGINX HTTP/3 QUIC vulnerability

Medium 5.3 Published Updated

Attackers can leak previously freed memory from NGINX workers via crafted QUIC packets when HTTP/3 is enabled with large MTUs.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-34161?

CVE-2024-34161 is a medium-severity use after free vulnerability in Fedoraproject Fedora, published on 29 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

When NGINX Plus or NGINX OSS are configured to use the HTTP/3 QUIC module and the network infrastructure supports a Maximum Transmission Unit (MTU) of 4096 or greater without fragmentation, undisclosed QUIC packets can cause NGINX worker processes to leak previously freed memory.

Weakness: CWE-416

Which versions are affected by CVE-2024-34161?

2 open source packages ship an affected version, including nginx and nginx-gateway. It affects 3 products.

PackageAffectedFixed in
nginx BitnamiFrom 1.25.01.26.1
nginx-gateway BitnamiFrom 1.25.01.26.1

Products include F5 Nginx Open Source, F5 Nginx Plus, Fedoraproject Fedora.

How do I fix CVE-2024-34161?

Upgrade nginx to 1.26.1 or later.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2024-34161 being exploited?

There is no known exploitation of CVE-2024-34161 in the wild and no public exploit code.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as BIT-nginx-2024-34161, BIT-nginx-gateway-2024-34161, DEBIAN-CVE-2024-34161.

Is CVE-2024-34161 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free