CVE-2020-37012CWE-78

Tea LaTex 1.0 - Remote Code Execution

Critical · published January 29, 2026

CVSS v4.0
9.3
EPSS
1%
Percentile
58.1
In the wild
Unconfirmed
What it is

🚨 A crafty LaTeX payload is all it takes to execute arbitrary shell commands on your server! This vulnerability in Tea LaTex 1.0 is absolutely devastating. 🔥 Imagine a restaurant where the chef blindly follows any order without checking the recipe. If a customer sneaks in a dish request that includes harmful ingredients, the chef will unwittingly serve it up! That’s what happens here: the /api.php endpoint blindly runs commands it receives, with no questions asked. An attacker could leverage this vulnerability to execute any command they want on your server - gain access to sensitive data, modify files, or even take complete control of the system. It's a nightmare scenario, where unauthorized individuals can wreak havoc without any authentication required.

Put simply

Imagine a restaurant where the chef blindly follows any order without checking the recipe. If a customer sneaks in a dish request that includes harmful ingredients, the chef will unwittingly serve it up! That’s what happens here: the /api.php endpoint blindly runs commands it receives, with no questions asked. This remote code execution vulnerability allows unauthenticated attackers to send specially crafted LaTeX payloads to the /api.php endpoint, which gets processed by the tex2png API action, leading to arbitrary command execution.

What to do

An attacker could leverage this vulnerability to execute any command they want on your server - gain access to sensitive data, modify files, or even take complete control of the system. It's a nightmare scenario, where unauthorized individuals can wreak havoc without any authentication required. To protect your application, immediately patch Tea LaTex to version 1.0.1 or later. Ensure that proper input validation and authentication mechanisms are implemented for endpoint access. Additionally, consider restricting API access based on your application's needs. You've got this! By following these steps, you'll lock down your application and keep those pesky attackers at bay. 🛡️

The record
Technical detail
CVSS v4.0
9.3 · CRITICAL
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
EPSS
0.00859 · 58.1th percentile
Weakness
CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Published
2026-01-29T14:28Z
EPSS history
Timeline
  • 29 JAN 14:28Z
    Tea LaTex 1.0 - Remote Code Execution
    cvelistv5