CVE-2016-10243
Critical · 9.8CVSS
9.8
EPSS
7.1%
Published
May 2, 2017
CISA due date
—
Cloudanix analysis
A problem in document handling software lets attackers run their own commands on the computer simply by submitting a specially made file.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Remote Code Execution
- Component
- Application
- Class
- Improper Input Validation
- Remediation
- Config Change
- Effort
- Low
- Patch risk
- Low
What it actually does
The flaw permits arbitrary command execution when mpost is invoked via shell_escape_commands in texmf.cnf, due to insufficient input validation on included content.
Why it matters to the business
Attackers can gain full control over affected systems processing untrusted documents, leading to data theft, system compromise, or service disruption; the vulnerability has been public for years with public exploits available, though prevalence remains low outside document-processing environments.
How an attack unfolds
An attacker crafts a malicious TeX document that triggers inclusion of mpost through the shell_escape mechanism, causing the system to execute attacker-supplied commands during processing.
How to fix it
Upgrade cluster-autoscaler-fips-1.26 (Chainguard) to version 1.26.6-r2 or later; disable shell_escape_commands for mpost if immediate upgrade is not possible.
How to confirm the fix worked
Confirm the installed package version meets or exceeds the fixed release; test document processing with known-safe inputs to verify shell escapes are restricted.
Typical attack path
- Identify a service that processes user-supplied TeX or related documents
- Craft input that references or invokes mpost via shell_escape_commands
- Deliver the malicious document to the target system
- Trigger processing to execute arbitrary commands
- Establish persistence or exfiltrate data from the compromised host
How to detect it
Search application and system logs for unexpected invocations of mpost or shell commands during document processing; review process creation events tied to TeX-related binaries.
What your security team should do
- Prioritize upgrade to the fixed package version across all deployments
- Review and restrict shell_escape_commands in texmf.cnf configurations
- Monitor for any document-processing workloads that accept untrusted input
- Apply compensating controls such as sandboxing or input sanitization until patched
The record
TeX Live allows remote attackers to execute arbitrary commands by leveraging inclusion of mpost in shell_escape_commands in the texmf.cnf config file.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:10 | texlive-bin | 0 | No fix |
| Debian:11 | texlive-base | 0 | 2016.20161130-1 |
| Debian:11 | texlive-bin | 0 | 2019.20190605.51237-2 |
| Debian:12 | texlive-base | 0 | 2016.20161130-1 |
| Debian:12 | texlive-bin | 0 | 2019.20190605.51237-2 |
| Debian:13 | texlive-base | 0 | 2016.20161130-1 |
| Debian:13 | texlive-bin | 0 | 2019.20190605.51237-2 |
| Debian:14 | texlive-base | 0 | 2016.20161130-1 |
| Debian:14 | texlive-bin | 0 | 2019.20190605.51237-2 |
| Debian:7 | texlive-base | 0 | 2012.20120611-5+deb7u1 |
| Debian:8 | texlive-base | 0 | 2014.20141024-2+deb8u1 |
| Mageia:5 | texlive | 0 | 20130530-21.1.mga5 |
| SUSE:Linux Enterprise Software Development Kit 12 SP5 | texlive-kastrup | 0 | 2013.84.svn15878-21.3.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP5 | texlive-koma-script | 0 | 2013.84.3.11bsvn29774-21.3.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP5 | texlive-kpathsea | 0 | 2013.84.svn30218-21.3.1 |
| Ubuntu:14.04:LTS | texlive-base | 0 | 2013.20140215-1ubuntu0.1 |
| Ubuntu:16.04:LTS | texlive-base | 0 | 2015.20160320-1ubuntu0.1 |
| openSUSE:Tumbleweed | texlive | 0 | 2021.20210325.svn34398-76.3 |
| openSUSE:Tumbleweed | texlive-specs-a | 0 | 2021.186.3.0_beta3svn33894-47.2 |
| openSUSE:Tumbleweed | texlive-specs-b | 0 | 2021.186.svn19440-46.2 |
| openSUSE:Tumbleweed | texlive-specs-c | 0 | 2021.186.svn15878-46.2 |
| openSUSE:Tumbleweed | texlive-specs-d | 0 | 2021.186.2.1bsvn15878-45.2 |
| openSUSE:Tumbleweed | texlive-specs-e | 0 | 2021.186.1.5svn55387-46.2 |
| openSUSE:Tumbleweed | texlive-specs-f | 0 | 2021.186.1.5.7svn58590-46.2 |
| openSUSE:Tumbleweed | texlive-specs-g | 0 | 2021.186.1.0svn54080-45.2 |
| openSUSE:Tumbleweed | texlive-specs-h | 0 | 2021.186.1.0svn18115-46.3 |
| openSUSE:Tumbleweed | texlive-specs-i | 0 | 2021.186.2.0bsvn56782-45.2 |
| openSUSE:Tumbleweed | texlive-specs-j | 0 | 2021.186.1.6.0svn54732-45.2 |
| openSUSE:Tumbleweed | texlive-specs-k | 0 | 2021.186.1.0fsvn22255-46.3 |
| openSUSE:Tumbleweed | texlive-specs-l | 0 | 2021.186.1.2.2svn57773-45.2 |
| openSUSE:Tumbleweed | texlive-specs-m | 0 | 2021.186.0.0.5.6svn53248-48.2 |
| openSUSE:Tumbleweed | texlive-specs-n | 0 | 2021.187.svn55643-47.2 |
| openSUSE:Tumbleweed | texlive-specs-o | 0 | 2021.186.1.5svn15878-45.2 |
| openSUSE:Tumbleweed | texlive-specs-p | 0 | 2021.186.1.01svn41996-46.2 |
| openSUSE:Tumbleweed | texlive-specs-q | 0 | 2021.186.0.0.1svn45601-47.3 |
| openSUSE:Tumbleweed | texlive-specs-r | 0 | 2021.186.0.0.3.1svn55214-44.2 |
| openSUSE:Tumbleweed | texlive-specs-s | 0 | 2021.186.0.0.3bsvn15878-45.2 |
| openSUSE:Tumbleweed | texlive-specs-t | 0 | 2021.186.0.0.1svn15878-46.3 |
| openSUSE:Tumbleweed | texlive-specs-u | 0 | 2021.186.1.2asvn15878-46.2 |
| openSUSE:Tumbleweed | texlive-specs-v | 0 | 2021.186.0.0.1svn34495-50.3 |
| openSUSE:Tumbleweed | texlive-specs-w | 0 | 2021.186.1.2svn54512-46.2 |
| openSUSE:Tumbleweed | texlive-specs-x | 0 | 2021.186.1.3svn40772-45.2 |
| openSUSE:Tumbleweed | texlive-specs-y | 0 | 2021.186.1.1svn48423-46.2 |
| openSUSE:Tumbleweed | texlive-specs-z | 0 | 2021.186.17.7svn55862-45.3 |
Related vulnerabilities
- CVE-2009-1284 Buffer overflow in BibTeX 0.99 allows context-dependent attackers to cause a denial of… Also affects texlive-bin
- CVE-2024-25262 texlive-bin commit c515e was discovered to contain heap buffer overflow via the function… Also affects texlive-bin
- CVE-2015-5700 mktexlsr revision 22855 through revision 36625 as packaged in texlive allows local users… Also affects texlive-bin
- CVE-2026-113786 pypdf is a free and open-source pure-python PDF library. CWE-20
- CVE-2026-112081 A vulnerability was determined in hankcs HanLP up to 2.1.0-beta.64. CWE-20
- CVE-2026-111869 A vulnerability was identified in makeplane plane up to 1.4.2. CWE-20
- CVE-2026-100347 kin-openapi is a Go project for handling OpenAPI files. CWE-20
- CVE-2026-99999 In the Linux kernel, the following vulnerability has been resolved: ipv4: validate… CWE-20