CVE-2024-7347: Buffer overread in the ngx_http_mp4_module
The ngx_http_mp4_module in NGINX could over-read worker memory when handling a specially crafted mp4 file. An attacker able to trigger processing of such a file could cause the worker to terminate.
- Triaged in 2 days
- Fixed in 9 days
- Paid in 9 days
- Disclosed after 13 days
Summary by the program
NGINX Open Source and NGINX Plus have a vulnerability in the ngx_http_mp4_module, which might allow an attacker to over-read NGINX worker memory resulting in its termination, using a specially crafted mp4 file. The issue only affects NGINX if it is built with the ngx_http_mp4_module and the mp4 directive is used in the configuration file. Additionally, the attack is possible only if an attacker can trigger the processing of a specially crafted mp4 file with the ngx_http_mp4_module.
Impact The bug allows an attacker to cause a memory over-read in an NGINX worker resulting in its termination,
The report
NGINX Open Source and NGINX Plus have a vulnerability in the ngx_http_mp4_module, which might allow an attacker to over-read NGINX worker memory resulting in its termination, using a specially crafted mp4 file. The issue only affects NGINX if it is built with the ngx_http_mp4_module and the mp4 directive is used in the configuration file. Additionally, the attack is possible only if an attacker can trigger the processing of a specially crafted mp4 file with the ngx_http_mp4_module.
Impact
The bug allows an attacker to cause a memory over-read in an NGINX worker resulting in its termination,
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a missing or incorrect bounds check when parsing mp4 file structures in the mp4 module, allowing reads beyond the allocated buffer.
Impact
An attacker could cause a memory over-read in an NGINX worker, resulting in its termination; the text does not claim anything beyond a denial of service.
What the attacker needed
NGINX built with ngx_http_mp4_module; mp4 directive enabled in configuration; attacker can trigger mp4 processing
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
NGINX is a web server that can also serve video files. A part of it that handles mp4 video could read past the end of a memory buffer when given a malformed file, which crashes that worker process. The attacker needs the server to be set up to process mp4 files this way.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.