CVE-2020-37012 Tea LaTex 1.0 - Remote Code Execution

Critical 9.3 Published Updated

Unauthenticated attackers can execute arbitrary shell commands via malicious LaTeX payloads in the tex2png API endpoint.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2020-37012?

CVE-2020-37012 is a critical command injection vulnerability in ammarfaizi2 Tea LaTex, published on 29 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Tea LaTex 1.0 contains a remote code execution vulnerability that allows unauthenticated attackers to execute arbitrary shell commands through the /api.php endpoint. Attackers can craft a malicious LaTeX payload with shell commands that are executed when processed by the application's tex2png API action.

Weakness: CWE-78

Which versions are affected by CVE-2020-37012?

How do I fix CVE-2020-37012?

No fix has been published for CVE-2020-37012 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2020-37012 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-37012 exists.

Sources

Also known as GHSA-258j-7hr2-w66m.

Is CVE-2020-37012 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free