CVE-2019-0221
Vulnerability in Apache Tomcat
Check your servers for CVE-2019-0221
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2019-0221 affects a package, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 58.2%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 99.3% of all scored CVEs. Scores of 27 Nov 2026.
The assessment of CISA (SSVC, 2 Nov 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Apache Tomcat |
affected Apache Tomcat 9.0.0.M1 to 9.0.0.17 affected 8.5.0 to 8.5.39 affected 7.0.0 to 7.0.93
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2019-0221 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2019-0221RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2019-0221Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2019-0221
trivy image --scanners vuln IMAGE | grep CVE-2019-0221
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- FEDORA-2019-1a3f878d27 lists.fedoraproject.org · vendor advisory
- openSUSE-SU-2019:1673 lists.opensuse.org · vendor advisory
- FEDORA-2019-d66febb5df lists.fedoraproject.org · vendor advisory
- openSUSE-SU-2019:1808 lists.opensuse.org · vendor advisory
- USN-4128-1 usn.ubuntu.com · vendor advisory
- USN-4128-2 usn.ubuntu.com · vendor advisory
- RHSA-2019:3929 access.redhat.com · vendor advisory
- RHSA-2019:3931 access.redhat.com · vendor advisory
- DSA-4596 debian.org · vendor advisory
- GLSA-202003-43 security.gentoo.org · vendor advisory
- https://lists.apache.org/thread.html/6e6e9eacf7b28fd63d249711e9d3ccd4e0a83f556e324aee37be5a8c%40%3Cannounce.tomcat.apache.org%3E lists.apache.org
- https://security.netapp.com/advisory/ntap-20190606-0001/ security.netapp.com
- https://support.f5.com/csp/article/K13184144?utm_source=f5support&%3Butm_medium=RSS support.f5.com
Other references
- 20190529 XSS in SSI printenv command - Apache Tomcat - CVE-2019-0221 seclists.org · mailing list
- [debian-lts-announce] 20190530 [SECURITY] [DLA 1810-1] tomcat7 security update lists.debian.org · mailing list
- 108545 securityfocus.com · vdb entry
- [debian-lts-announce] 20190813 [SECURITY] [DLA 1883-1] tomcat8 security update lists.debian.org · mailing list
- 20191229 [SECURITY] [DSA 4596-1] tomcat8 security update seclists.org · mailing list
- [announce] 20200131 Apache Software Foundation Security Report: 2019 lists.apache.org · mailing list
- [tomcat-dev] 20200203 svn commit: r1873527 [24/30] - /tomcat/site/trunk/docs/ lists.apache.org · mailing list
- [tomcat-dev] 20200203 svn commit: r1873527 [25/30] - /tomcat/site/trunk/docs/ lists.apache.org · mailing list
- [tomcat-dev] 20200213 svn commit: r1873980 [27/34] - /tomcat/site/trunk/docs/ lists.apache.org · mailing list
- [tomcat-dev] 20200213 svn commit: r1873980 [28/34] - /tomcat/site/trunk/docs/ lists.apache.org · mailing list
- [tomcat-dev] 20200213 svn commit: r1873980 [29/34] - /tomcat/site/trunk/docs/ lists.apache.org · mailing list
- https://www.oracle.com/security-alerts/cpuapr2020.html oracle.com
4 more
- https://www.oracle.com/security-alerts/cpujan2020.html oracle.com
- https://www.oracle.com/security-alerts/cpuApr2021.html oracle.com
- https://wwws.nightwatchcybersecurity.com/2019/05/27/xss-in-ssi-printenv-command-apache-tomcat-cve-2019-0221/ wwws.nightwatchcybersecurity.com
- http://packetstormsecurity.com/files/163457/Apache-Tomcat-9.0.0.M1-Cross-Site-Scripting.html packetstormsecurity.com
Source: the record CVE-2019-0221 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse