Description
The ngx_http_parse_chunked function in http/ngx_http_parse.c in nginx 1.3.9 through 1.4.0 allows remote attackers to cause a denial of service (crash) and execute arbitrary code via a chunked Transfer-Encoding request with a large chunk size, which triggers an integer signedness error and a stack-based buffer overflow.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
Nginx HTTP Server 1.3.9-1.4.0 Chunked Encoding Stack Buffer Overflow
exploit/linux/http/nginx_chunked_size
Exploit-DB 4
- Nginx 1.4.0 (Generic Linux x64) - Remote Overflow EDB-32277 · remote · Mar 15, 2014
- Nginx 1.3.9/1.4.0 (x86) - Brute Force EDB-26737 · remote · Jul 11, 2013
- Nginx 1.3.9 < 1.4.0 - Chuncked Encoding Stack Buffer Overflow (Metasploit) EDB-25775 · remote · May 28, 2013 · verified
- Nginx 1.3.9 < 1.4.0 - Denial of Service (PoC) EDB-25499 · dos · May 17, 2013
GitHub 8 repositories
-
kitctf/nginxpwn ★ 55 · Mar 23, 2016
Exploitation Training -- CVE-2013-2028: Nginx Stack Based Buffer Overflow
-
danghvu/nginx-1.4.0 ★ 30 · May 21, 2013
For the analysis of CVE-2013-2028
-
m4drat/CVE-2013-2028-Exploit ★ 19 · Jun 27, 2020
CVE-2013-2028 python exploit
-
tachibana51/CVE-2013-2028-x64-bypass-ssp-and-pie-PoC ★ 2 · Aug 3, 2019
this is not stable
-
jptr218/nginxhack ★ 1 · Jul 8, 2021
A CVE-2013-2028 implementation
-
vanivamshi/CVE-2013-2028-Exploit ★ 0 · Sep 12, 2026
-
xiw1ll/CVE-2013-2028_Checker ★ 0 · Jul 23, 2024
Tool for checking Nginx CVE-2013-2028
-
Sunqiz/CVE-2013-2028-reproduction ★ 0 · Aug 15, 2022
CVE-2013-2028复现
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- [nginx-announce] 20130507 nginx security advisory (CVE-2013-2028) mailing-list
- 93037 vdb-entry
- FEDORA-2013-7560 vendor-advisory
- http://www.vnsecurity.net/2013/05/analysis-of-nginx-cve-2013-2028/
- 55181 third-party-advisory
- 59699 vdb-entry
- GLSA-201310-04 vendor-advisory
- https://github.com/rapid7/metasploit-framework/pull/1834
- http://nginx.org/download/patch.2013.chunked.txt
- http://packetstormsecurity.com/files/121675/Nginx-1.3.9-1.4.0-Denial-Of-Service.html