CVE-2015-8106: Critical severity weblate vulnerability
A format string vulnerability was found in CmdKeywords function when processing \keywords command in tex file. When the user runs latex2rtf with malicious crafted tex file, an attacker can execute arbitrary code. The variable keywords' in the function CmdKeywords may hold a malicious input string, which can be used as a format argument of vsnprintf.
Vulnerable code:
1789 char keywords = getBraceParam(); ... 1798 fprintRTF(keywords); ...
858 void fprintRTF(char format, ...){ ... 873 vsnprintf(buffer, 1024, format, apf); ...
Public disclosure (includes reproducer and suggested fix):
http://seclists.org/oss-sec/2015/q4/283
Other sources
Format string vulnerability in the CmdKeywords function in funct1.c in latex2rtf before 2.3.10 allows remote attackers to execute arbitrary code via format string specifiers in the \keywords command in a crafted TeX file.
— MITRE
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2015-8106?
CVE-2015-8106 is considered a high-severity vulnerability due to the potential for arbitrary code execution.
How do I fix CVE-2015-8106?
To fix CVE-2015-8106, upgrade to latex2rtf version 2.3.9 or later where the vulnerability has been addressed.
Which versions of latex2rtf are affected by CVE-2015-8106?
CVE-2015-8106 affects latex2rtf version 2.3.8 and earlier releases.
Can CVE-2015-8106 be exploited remotely?
Yes, CVE-2015-8106 can be exploited remotely if a user processes a maliciously crafted tex file with latex2rtf.
What software is impacted by CVE-2015-8106?
CVE-2015-8106 impacts latex2rtf as well as Fedora versions 22, 23, and 24 that utilize the affected latex2rtf software.