Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
cve-2004-2167 — Reproduction and patching guide for CVE-2004-2167, a buffer overflow in LaTeX2RTF, with a C exploit and patch for educational vulnerability analysis. | Kitploit
Tools/GitHubGitHub/uzzzval/cve-2004-2167
Vulnerability AnalysisCode AnalysisExploitationLearning & EducationBinary Exploitation
GitHubuzzzval/cve-2004-2167

cve-2004-2167

Reproduction and patching guide for CVE-2004-2167, a buffer overflow in LaTeX2RTF, with a C exploit and patch for educational vulnerability analysis.

View Repository
37 years agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

cve-2004-2167

Code to be tested:

Download CentOS 6.4 Opertaing System

Download the Latex2RTf to the Downloads folder from the below link:

root@kitploit:~
https://sourceforge.net/projects/latex2rtf/files/latex2rtf-win/1.9.15/

cd /home/username/Downloads/

tar -xvf latex2rtf-1.9.15.tar.gz

cd latex2rtf-1.9.15

sudo make

sudo make install

gcc -o exploit exploit.c

./exploit > shell_code.tex

./latex2rtf shell_code.tex

Steps for patching: Download the patch from:

https://github.com/uzzzval/cve-2004-2167/blob/master/definitions_patch.c

cp definitions_patch.c /home/username/Downloads/latex2rtf-1.9.15/ mv definitions_patch.c definitions.c sudo Make sudo make install ./latex2rtf shell_code.tex

Download Tool