Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2020-37012

CVE-2020-37012: Tea LaTeX 1.0 RCE Vulnerability

CVE-2020-37012 is a remote code execution flaw in Tea LaTeX 1.0 that lets unauthenticated attackers execute arbitrary shell commands via the /api.php endpoint. This article covers technical details, attack vectors, and mitigation.

Published: January 29, 2026

CVE-2020-37012 Overview

Tea LaTeX 1.0 contains a critical 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. This vulnerability stems from improper input validation (CWE-78: OS Command Injection), enabling complete system compromise without any authentication requirements.

Critical Impact

Unauthenticated attackers can achieve full remote code execution on systems running Tea LaTeX 1.0 by injecting shell commands through the LaTeX processing API, potentially leading to complete server compromise.

Affected Products

  • Tea LaTeX 1.0
  • Systems exposing the /api.php endpoint
  • Web applications utilizing the tex2png API action

Discovery Timeline

  • 2026-01-29 - CVE CVE-2020-37012 published to NVD
  • 2026-01-29 - Last updated in NVD database

Technical Details for CVE-2020-37012

Vulnerability Analysis

This vulnerability is classified as OS Command Injection (CWE-78), a severe flaw where user-supplied input is incorporated into operating system commands without proper sanitization. The Tea LaTeX application processes LaTeX documents and converts them to images via the tex2png API action accessible through /api.php. The application fails to adequately validate and sanitize LaTeX content before passing it to the underlying system shell for processing.

LaTeX, as a document preparation system, supports various commands that can interact with the underlying operating system. When the application processes user-supplied LaTeX content without proper restrictions, attackers can leverage LaTeX's \write18 directive or similar mechanisms to execute arbitrary shell commands. Since the endpoint requires no authentication, any network-accessible attacker can exploit this vulnerability to gain code execution privileges on the server.

Root Cause

The root cause is insufficient input validation and sanitization in the LaTeX processing pipeline. The application directly processes user-supplied LaTeX content without restricting dangerous LaTeX primitives that enable shell command execution. The tex2png API action passes untrusted input to the LaTeX compiler, which may be configured to allow shell escapes, permitting arbitrary command execution through LaTeX directives.

Attack Vector

The attack is network-based and requires no authentication or user interaction. An attacker sends a crafted HTTP request to the /api.php endpoint with the tex2png action, embedding malicious LaTeX code containing shell commands. When the server processes this LaTeX content, the embedded commands are executed with the privileges of the web server process.

The exploitation process involves:

  1. Identifying an exposed Tea LaTeX instance with an accessible /api.php endpoint
  2. Crafting a LaTeX document containing shell escape commands (e.g., using \write18 or \immediate\write18)
  3. Sending the malicious payload to the tex2png API action
  4. The LaTeX compiler processes the document and executes the embedded shell commands

Technical details and proof-of-concept information are available in the Exploit-DB entry #48805 and the VulnCheck Advisory.

Detection Methods for CVE-2020-37012

Indicators of Compromise

  • Unusual HTTP POST requests to /api.php containing LaTeX syntax with shell escape commands
  • Presence of \write18, \immediate\write18, or similar LaTeX primitives in request payloads
  • Unexpected child processes spawned by the LaTeX compiler (e.g., pdflatex, latex, tex)
  • Web server logs showing repeated requests to /api.php?action=tex2png with suspicious payloads

Detection Strategies

  • Deploy web application firewall (WAF) rules to inspect and block requests containing LaTeX shell escape directives (\write18, \immediate\write18, \input{|...})
  • Monitor process trees for unexpected command execution originating from LaTeX-related processes
  • Implement intrusion detection signatures for HTTP traffic targeting /api.php with command injection patterns
  • Review web server access logs for anomalous patterns targeting the Tea LaTeX API endpoint

Monitoring Recommendations

  • Enable verbose logging on the web application to capture full request bodies for forensic analysis
  • Configure endpoint detection and response (EDR) solutions to alert on shell commands spawned by LaTeX compiler processes
  • Set up alerts for outbound network connections initiated by the web server process that may indicate reverse shell activity
  • Monitor file system activity in web-accessible directories for unauthorized file creation or modification

How to Mitigate CVE-2020-37012

Immediate Actions Required

  • Remove or disable access to the /api.php endpoint if the LaTeX conversion functionality is not required
  • Implement network-level access controls to restrict access to the Tea LaTeX application from trusted sources only
  • If the application must remain accessible, place it behind a reverse proxy with strict request filtering
  • Audit systems for signs of prior exploitation and investigate any suspicious activity

Patch Information

Refer to the GitHub Repository for updated versions or patches addressing this vulnerability. The VulnCheck Advisory provides additional remediation guidance.

Workarounds

  • Configure the LaTeX compiler to run in restricted mode by disabling shell escapes (e.g., use --no-shell-escape flag for pdflatex)
  • Implement a strict allowlist of permitted LaTeX commands and filter out dangerous primitives before processing
  • Run the LaTeX processing service in a sandboxed environment with minimal privileges and no network access
  • Deploy input validation to reject LaTeX content containing shell escape sequences before processing
bash
# Disable shell escapes in LaTeX compiler configuration
# Add to texmf.cnf or as command-line argument
shell_escape = f
# Or run pdflatex with restricted mode
pdflatex --no-shell-escape document.tex

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechTealatex

  • SeverityCRITICAL

  • CVSS Score9.3

  • Known ExploitedNo
  • CVSS 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-78
  • Technical References
  • GitHub Repository for LaTeX Exploit

  • Exploit-DB #48805

  • VulnCheck Advisory on RCE
  • Latest CVEs
  • CVE-2025-49454: TinySalt Path Traversal Vulnerability

  • CVE-2025-48261: MultiVendorX Information Disclosure Flaw

  • CVE-2025-32119: CardGate WooCommerce SQL Injection Flaw

  • CVE-2025-26879: s2Member Plugin Reflected XSS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English