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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Apache | Apache Tomcat | Apache Tomcat 9.0.0.M1 to 9.0.0.17, 8.5.0 to 8.5.39, 7.0.0 to 7.0.93 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | tomcat9 | 9.0.16-4 | — |
| Debian 13 | tomcat9 | 9.0.16-4 | — |
| Debian 12 | tomcat9 | 9.0.16-4 | — |
| Debian 9 | tomcat8 | 8.5.50-0+deb9u1 | DSA-4596-1 |
| Debian 8 | tomcat7 | 7.0.56-3+really7.0.94-1 | DLA-1810-1 |
| Debian 8 | tomcat8 | 8.0.14-1+deb8u15 | DLA-1883-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | tomcat8 | 8.5.39-1ubuntu1~18.04.3 | USN-4128-1 |
| Ubuntu 18.04 LTS | tomcat9 | 9.0.16-3ubuntu0.18.04.1 | USN-4128-2 |
| Ubuntu 16.04 LTS | tomcat8 | 8.0.32-1ubuntu1.10 | USN-4128-1 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | tomcat7 | 7.0.78-1ubuntu0.1~esm1 | USN-6908-1 |
| Ubuntu Pro 16.04 LTS | tomcat7 | 7.0.68-1ubuntu0.4+esm2 | USN-6908-1 |
| Ubuntu Pro 14.04 LTS | tomcat7 | 7.0.52-1ubuntu0.16+esm1 | USN-6908-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat JBoss Web Server 5 | jws5-ecj | 4.12.0-1.redhat_1.1.el6jws | RHSA-2019:3929 |
| Red Hat JBoss Web Server 5 | jws5-javapackages-tools +1 | 3.4.1-5.15.11.el6jws | RHSA-2019:3929 |
| Red Hat JBoss Web Server 5 | jws5-jboss-logging | 3.3.2-1.Final_redhat_00001.1.el6jws | RHSA-2019:3929 |
| Red Hat JBoss Web Server 5 | jws5-mod_cluster +1 | 1.4.1-1.Final_redhat_00001.2.el6jws | RHSA-2019:3929 |
| Red Hat JBoss Web Server 5 | jws5-tomcat +9 | 9.0.21-10.redhat_4.1.el6jws | RHSA-2019:3929 |
| Red Hat JBoss Web Server 5 | jws5-tomcat-native | 1.2.21-34.redhat_34.el6jws | RHSA-2019:3929 |
| Red Hat JBoss Web Server 5 | jws5-tomcat-vault +1 | 1.1.8-1.Final_redhat_1.1.el6jws | RHSA-2019:3929 |
| Red Hat JBoss Web Server 3 | tomcat-native | 1.2.23-21.redhat_21.ep7.el6 | RHSA-2020:0861 |
| Red Hat JBoss Web Server 3 | tomcat7 +11 | 7.0.70-38.ep7.el6 | RHSA-2020:0861 |
| Red Hat JBoss Web Server 3 | tomcat8 +11 | 8.0.36-42.ep7.el6 | RHSA-2020:0861 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP1 | tomcat | 9.0.21-4.5.5 | SUSE-SU-2019:1895-1 |
| SLES 15 | tomcat | 9.0.20-3.24.2 | SUSE-SU-2019:1693-1 |
| SLES 12 SP4 | tomcat | 9.0.21-3.13.2 | SUSE-SU-2019:1866-1 |
| SLES 12 SP3 | tomcat | 8.0.53-29.27.1 | SUSE-SU-2020:1498-1 |
| SLES 12 SP2 | tomcat | 8.0.53-29.27.1 | SUSE-SU-2020:1498-1 |
Show 12 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP1 | tomcat | 8.0.53-10.43.1 | SUSE-SU-2020:1497-1 |
| SLES 11 SP4 | tomcat6 | 6.0.53-0.57.16.1 | SUSE-SU-2020:14375-1 |
| SLES for SAP 12 SP4 | tomcat | 9.0.21-3.13.2 | SUSE-SU-2019:1866-1 |
| SLES for SAP 12 SP3 | tomcat | 8.0.53-29.27.1 | SUSE-SU-2020:1498-1 |
| SLES for SAP 12 SP2 | tomcat | 8.0.53-29.27.1 | SUSE-SU-2020:1498-1 |
| SLES for SAP 12 SP1 | tomcat | 8.0.53-10.43.1 | SUSE-SU-2020:1497-1 |
| SUSE OpenStack Cloud Crowbar 8 | tomcat | 8.0.53-29.27.1 | SUSE-SU-2020:1498-1 |
| SUSE OpenStack Cloud 8 | tomcat | 8.0.53-29.27.1 | SUSE-SU-2020:1498-1 |
| SUSE OpenStack Cloud 7 | tomcat | 8.0.53-29.27.1 | SUSE-SU-2020:1498-1 |
| SUSE Linux Enterprise Point of Sale 11 SP3 | tomcat6 | 6.0.53-0.57.16.1 | SUSE-SU-2020:14375-1 |
| SUSE HPE Helion OpenStack 8 | tomcat | 8.0.53-29.27.1 | SUSE-SU-2020:1498-1 |
| SUSE Enterprise Storage 5 | tomcat | 8.0.53-29.27.1 | SUSE-SU-2020:1498-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | tomcat | 9.0.36-8.4 | openSUSE-SU-2024:11468-1 |
| openSUSE Tumbleweed | tomcat10 | 10.1.14-1.1 | openSUSE-SU-2024:13441-1 |
| openSUSE Leap 15.1 | tomcat | 9.0.21-lp151.3.3.1 | openSUSE-SU-2019:1808-1 |
| openSUSE Leap 15.0 | tomcat | 9.0.20-lp150.2.19.1 | openSUSE-SU-2019:1673-1 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | tomcat +9 | 7.0.76-10.amzn2.0.5 | ALAS2-2023-2200 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- Apache Tomcat 9.0.0.M1 - Cross-Site Scripting (XSS) EDB-50119 · webapps · Jul 13, 2021
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- Apache Tomcat - Cross-Site Scripting http/cves/2019/CVE-2019-0221.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.apache.tomcat:tomcat | >= 9.0.0, < 9.0.17 | 9.0.17 | GHSA-jjpq-gp5q-8q6w |
| Maven | org.apache.tomcat:tomcat | >= 8.5.0, < 8.5.40 | 8.5.40 | GHSA-jjpq-gp5q-8q6w |
| Maven | org.apache.tomcat:tomcat | >= 7.0.0, < 7.0.94 | 7.0.94 | GHSA-jjpq-gp5q-8q6w |
| Maven | org.apache.tomcat:tomcat-catalina | >= 9.0.0, < 9.0.17 | 9.0.17 | GHSA-jjpq-gp5q-8q6w |
| Maven | org.apache.tomcat:tomcat-catalina | >= 8.5.0, < 8.5.40 | 8.5.40 | GHSA-jjpq-gp5q-8q6w |
| Maven | org.apache.tomcat:tomcat-catalina | >= 7.0.0, < 7.0.94 | 7.0.94 | GHSA-jjpq-gp5q-8q6w |
| Maven | org.apache.tomcat.embed:tomcat-embed-core | >= 9.0.0, < 9.0.17 | 9.0.17 | GHSA-jjpq-gp5q-8q6w |
| Maven | org.apache.tomcat.embed:tomcat-embed-core | >= 8.5.0, < 8.5.40 | 8.5.40 | GHSA-jjpq-gp5q-8q6w |
| Maven | org.apache.tomcat.embed:tomcat-embed-core | >= 7.0.0, < 7.0.94 | 7.0.94 | GHSA-jjpq-gp5q-8q6w |
Advisories 21
- RHSA-2019:3929 Red Hat Security Advisory: Red Hat JBoss Web Server 5.2 security release Red Hat Security Advisories (RHSA) · Sep 21, 2026
- RHSA-2020:0861 Red Hat Security Advisory: Red Hat JBoss Web Server 3.1 Service Pack 8 security update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- USN-6908-1 tomcat vulnerabilities Ubuntu Security Notices (USN) · Jun 29, 2026
- DSA-4596-1 tomcat8 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-1810-1 tomcat7 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-1883-1 tomcat8 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- USN-4128-1 tomcat8 vulnerabilities Ubuntu Security Notices (USN) · Feb 10, 2026
- USN-4128-2 tomcat9 vulnerabilities Ubuntu Security Notices (USN) · Feb 10, 2026
- openSUSE-SU-2019:1673-1 Security update for tomcat SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2019:1808-1 Security update for tomcat SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2020:14375-1 Security update for tomcat6 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11468-1 tomcat-9.0.36-8.4 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2019:1693-1 Security update for tomcat SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2020:1497-1 Security update for tomcat SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2019:1866-1 Security update for tomcat SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2020:1498-1 Security update for tomcat SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:13441-1 tomcat10-10.1.14-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2019:1895-1 Security update for tomcat SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2023-1994 Apache Tomcat: Schwachstelle ermöglicht Cross-Site Scripting BSI CERT-Bund (WID) · Jul 23, 2024
- WID-SEC-2024-0528 Dell Data Protection Advisor: Mehrere Schwachstellen BSI CERT-Bund (WID) · Feb 29, 2024
- ALAS2-2023-2200 Moderate: tomcat security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Aug 8, 2023
References
- 20190529 XSS in SSI printenv command - Apache Tomcat - CVE-2019-0221 mailing-list
- [debian-lts-announce] 20190530 [SECURITY] [DLA 1810-1] tomcat7 security update mailing-list
- 108545 vdb-entry
- FEDORA-2019-1a3f878d27 vendor-advisory
- openSUSE-SU-2019:1673 vendor-advisory
- FEDORA-2019-d66febb5df vendor-advisory
- openSUSE-SU-2019:1808 vendor-advisory
- [debian-lts-announce] 20190813 [SECURITY] [DLA 1883-1] tomcat8 security update mailing-list
- USN-4128-1 vendor-advisory
- USN-4128-2 vendor-advisory
- RHSA-2019:3929 vendor-advisory
- RHSA-2019:3931 vendor-advisory
- DSA-4596 vendor-advisory
- 20191229 [SECURITY] [DSA 4596-1] tomcat8 security update mailing-list
- [announce] 20200131 Apache Software Foundation Security Report: 2019 mailing-list
- [tomcat-dev] 20200203 svn commit: r1873527 [24/30] - /tomcat/site/trunk/docs/ mailing-list
- [tomcat-dev] 20200203 svn commit: r1873527 [25/30] - /tomcat/site/trunk/docs/ mailing-list
- [tomcat-dev] 20200213 svn commit: r1873980 [27/34] - /tomcat/site/trunk/docs/ mailing-list
- [tomcat-dev] 20200213 svn commit: r1873980 [28/34] - /tomcat/site/trunk/docs/ mailing-list
- [tomcat-dev] 20200213 svn commit: r1873980 [29/34] - /tomcat/site/trunk/docs/ mailing-list
- GLSA-202003-43 vendor-advisory
- https://www.oracle.com/security-alerts/cpuapr2020.html
- https://www.oracle.com/security-alerts/cpujan2020.html
- https://www.oracle.com/security-alerts/cpuApr2021.html
- https://lists.apache.org/thread.html/6e6e9eacf7b28fd63d249711e9d3ccd4e0a83f556e324aee37be5a8c%40%3Cannounce.tomcat.apache.org%3E
- https://security.netapp.com/advisory/ntap-20190606-0001/
- https://wwws.nightwatchcybersecurity.com/2019/05/27/xss-in-ssi-printenv-command-apache-tomcat-cve-2019-0221/
- https://support.f5.com/csp/article/K13184144?utm_source=f5support&%3Butm_medium=RSS
- http://packetstormsecurity.com/files/163457/Apache-Tomcat-9.0.0.M1-Cross-Site-Scripting.html