CVE-2019-0221

MEDIUM NUCLEI

Apache Tomcat 7.0.0-7.0.93 and 8.5.0-8.5.39 and 9.0.0.M1-9.0.0.17 - Cross-Site Scripting via SSI printenv Command

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2019-0221. PoCs published by Central InfoSec. A Nuclei detection template is also available.

AI-analyzed exploit summary This exploit demonstrates a Cross-Site Scripting (XSS) vulnerability in Apache Tomcat due to improper escaping in the SSI printenv directive. The PoC requires SSI support to be enabled and a specific file with the printenv directive to be accessible.

Description

The SSI printenv command in Apache Tomcat 9.0.0.M1 to 9.0.0.17, 8.5.0 to 8.5.39 and 7.0.0 to 7.0.93 echoes user provided data without escaping and is, therefore, vulnerable to XSS. SSI is disabled by default. The printenv command is intended for debugging and is unlikely to be present in a production website.

Exploits (1)

exploitdb WORKING POC
by Central InfoSec · textwebappsmultiple
https://www.exploit-db.com/exploits/50119

This exploit demonstrates a Cross-Site Scripting (XSS) vulnerability in Apache Tomcat due to improper escaping in the SSI printenv directive. The PoC requires SSI support to be enabled and a specific file with the printenv directive to be accessible.

Classification
Working Poc 100%
Attack Type
Xss
Complexity
Moderate
Reliability
Reliable
Target: Apache Tomcat 9.0.0.M1 to 9.0.0.17, 8.5.0 to 8.5.39, and 7.0.0 to 7.0.93
No auth needed
Prerequisites: SSI support enabled · Accessible file with printenv SSI directive
MITRE ATT&CK
devstral-2 · analyzed Feb 16, 2026 Full analysis →

Nuclei Templates (1)

Apache Tomcat - Cross-Site Scripting
MEDIUMby pikpikcu
Shodan: title:"Apache Tomcat" || http.title:"apache tomcat" || http.html:"apache tomcat" || cpe:"cpe:2.3:a:apache:tomcat"
FOFA: body="apache tomcat" || title="apache tomcat"

References (29)

Core 29
Core References
Third Party Advisory mailing-list x_refsource_fulldisc
http://seclists.org/fulldisclosure/2019/May/50
Mailing List mailing-list x_refsource_mlist
https://lists.debian.org/debian-lts-announce/2019/05/msg00044.html
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/108545
Mailing List mailing-list x_refsource_mlist
https://lists.debian.org/debian-lts-announce/2019/08/msg00015.html
Vendor Advisory vendor-advisory x_refsource_ubuntu
https://usn.ubuntu.com/4128-1/
Vendor Advisory vendor-advisory x_refsource_ubuntu
https://usn.ubuntu.com/4128-2/
Vendor Advisory vendor-advisory x_refsource_redhat
https://access.redhat.com/errata/RHSA-2019:3929
Vendor Advisory vendor-advisory x_refsource_redhat
https://access.redhat.com/errata/RHSA-2019:3931
Third Party Advisory vendor-advisory x_refsource_debian
https://www.debian.org/security/2019/dsa-4596
Mailing List mailing-list x_refsource_bugtraq
https://seclists.org/bugtraq/2019/Dec/43
Third Party Advisory vendor-advisory x_refsource_gentoo
https://security.gentoo.org/glsa/202003-43
Vendor Advisory x_refsource_confirm
https://security.netapp.com/advisory/ntap-20190606-0001/

Scores

CVSS v3 6.1
EPSS 0.1448
EPSS Percentile 94.6%
Attack Vector NETWORK
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Details

CWE
CWE-79
Status published
Products (3)
apache/tomcat 9.0.0 milestone1 (27 CPE variants)
apache/tomcat 7.0.0 - 7.0.93
org.apache.tomcat.embed/tomcat-embed-core 9.0.0 - 9.0.17Maven
Published May 28, 2019
Tracked Since Feb 18, 2026