CVE-2019-0221
Cross-site scripting in Apache Tomcat
Reported by apache · Published May 28, 2019
tomcat-catalina is fixed in 9.0.17, 8.5.40 and 7.0.94 (Maven Central)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| org.apache.tomcat:tomcat-catalina | Maven Central | 9.0.17, 8.5.40, 7.0.94 |
| org.apache.tomcat.embed:tomcat-embed-core | Maven Central | 9.0.17, 8.5.40, 7.0.94 |
| org.apache.tomcat:tomcat-util | Maven Central | 9.0.17, 8.5.39, 7.0.93 |
| org.apache.tomcat:tomcat | Maven Central | 9.0.17, 8.5.40, 8.5.39, 7.0.94, 7.0.93 |
| tomcat-javadoc | Amazon Linux | 7.0.76-10.amzn2.0.5 |
| tomcat-servlet-3.0-api | Amazon Linux | 7.0.76-10.amzn2.0.5 |
| tomcat-admin-webapps | Amazon Linux | 7.0.76-10.amzn2.0.5 |
| tomcat-webapps | Amazon Linux | 7.0.76-10.amzn2.0.5 |
| tomcat-docs-webapp | Amazon Linux | 7.0.76-10.amzn2.0.5 |
| tomcat-jsp-2.2-api | Amazon Linux | 7.0.76-10.amzn2.0.5 |
| tomcat-el-2.2-api | Amazon Linux | 7.0.76-10.amzn2.0.5 |
| tomcat | Amazon Linux | 7.0.76-10.amzn2.0.5 |
9 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| 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 |
| apache | tomcat | |
| amazon:2 | tomcat-javadoc | 0 |
| Maven | org.apache.tomcat:tomcat-catalina | 9.0.0, 8.5.0, 7.0.0 |
| amazon:2 | tomcat-servlet-3.0-api | 0 |
| Maven | org.apache.tomcat:tomcat-util | 7.0.0, 9.0.0.M1, 8.5.0 |
| amazon:2 | tomcat-admin-webapps | 0 |
| amazon:2 | tomcat-webapps | 0 |
| amazon:2 | tomcat-docs-webapp | 0 |
| amazon:2 | tomcat-jsp-2.2-api | 0 |
| Maven | org.apache.tomcat:tomcat | 7.0.0, 9.0.0, 8.5.0 |
| amazon:2 | tomcat-el-2.2-api | 0 |
| amazon:2 | tomcat | 0 |
| Maven | org.apache.tomcat.embed:tomcat-embed-core | 8.5.0, 9.0.0, 7.0.0 |
| amazon:2 | tomcat-lib | 0 |
| amazon:2 | tomcat-jsvc | 0 |
| Apache | Apache Tomcat | 7.0.0, 8.5.0, 9.0.0.M1 |
Timeline
- May 28, 2019 CVE Published
- Jun 11, 2020 PoC Published (2 in total, the first dated here)
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Mar 6, 2026 Distribution Patch (8 in total, the first dated here)
- Mar 6, 2026 Security Advisory (14 in total, the first dated here)
- Sep 18, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2019-0221
vulnetix vdb fixes CVE-2019-0221
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2019-0221/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- 20190529 XSS in SSI printenv command - Apache Tomcat - CVE-2019-0221 mailing-listx_refsource_FULLDISC
- [debian-lts-announce] 20190530 [SECURITY] [DLA 1810-1] tomcat7 security update mailing-listx_refsource_MLIST
- 108545 vdb-entryx_refsource_BID
- FEDORA-2019-1a3f878d27 vendor-advisoryx_refsource_FEDORA
- openSUSE-SU-2019:1673 vendor-advisoryx_refsource_SUSE
- FEDORA-2019-d66febb5df vendor-advisoryx_refsource_FEDORA
- openSUSE-SU-2019:1808 vendor-advisoryx_refsource_SUSE
- [debian-lts-announce] 20190813 [SECURITY] [DLA 1883-1] tomcat8 security update mailing-listx_refsource_MLIST
- USN-4128-1 vendor-advisoryx_refsource_UBUNTU
- USN-4128-2 vendor-advisoryx_refsource_UBUNTU
- RHSA-2019:3929 vendor-advisoryx_refsource_REDHAT
- RHSA-2019:3931 vendor-advisoryx_refsource_REDHAT
- DSA-4596 vendor-advisoryx_refsource_DEBIAN
- 20191229 [SECURITY] [DSA 4596-1] tomcat8 security update mailing-listx_refsource_BUGTRAQ
- [announce] 20200131 Apache Software Foundation Security Report: 2019 mailing-listx_refsource_MLIST
- [tomcat-dev] 20200203 svn commit: r1873527 [24/30] - /tomcat/site/trunk/docs/ mailing-listx_refsource_MLIST
- [tomcat-dev] 20200203 svn commit: r1873527 [25/30] - /tomcat/site/trunk/docs/ mailing-listx_refsource_MLIST
- [tomcat-dev] 20200213 svn commit: r1873980 [27/34] - /tomcat/site/trunk/docs/ mailing-listx_refsource_MLIST
- [tomcat-dev] 20200213 svn commit: r1873980 [28/34] - /tomcat/site/trunk/docs/ mailing-listx_refsource_MLIST
- [tomcat-dev] 20200213 svn commit: r1873980 [29/34] - /tomcat/site/trunk/docs/ mailing-listx_refsource_MLIST
…and 36 more