CVE-2019-0221
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…
- 6.1MediumCVSS base score
- 58.3%Exploitation in 30 daysEPSS · top 0.9% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- 2Public exploitsMetasploit, Nuclei and Exploit-DB
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list a Nuclei template and an Exploit-DB entry for it.
Show the exploits2
Nuclei templates1 template
- Apache Tomcat - Cross-Site Scripting (Nuclei template) (opens in a new tab)
http/cves/2019/CVE-2019-0221.yamlSeverity medium
Exploit-DB1 entry
- Apache Tomcat 9.0.0.M1 - Cross-Site Scripting (XSS) (Exploit-DB entry) (opens in a new tab)
EDB-ID 50119webapps, multiplepublished 13 Jul 2021Not verified
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By apache
- 7 months later
· 7 months later
Published
- 7 years later
· 7 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.0 | Medium6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
- EPSS (exploitation in 30 days)
- 58.3% · top 0.9% of all CVEs (11 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 6.1.
Affected products
- 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
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Mavenorg.apache.tomcat.embed:tomcat-embed-coreGHSA-jjpq-gp5q-8q6w (opens in a new tab)
- Mavenorg.apache.tomcat:tomcatGHSA-jjpq-gp5q-8q6w (opens in a new tab)
- Mavenorg.apache.tomcat:tomcat-catalinaGHSA-jjpq-gp5q-8q6w (opens in a new tab)
References
References29
- 20190529 XSS in SSI printenv command - Apache Tomcat - CVE-2019-0221 (opens in a new tab)mailing-listx_refsource_FULLDISCx_transferred
- [debian-lts-announce] 20190530 [SECURITY] [DLA 1810-1] tomcat7 security update (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- 108545 (opens in a new tab)vdb-entryx_refsource_BIDx_transferred
- FEDORA-2019-1a3f878d27 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- openSUSE-SU-2019:1673 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- FEDORA-2019-d66febb5df (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- openSUSE-SU-2019:1808 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- [debian-lts-announce] 20190813 [SECURITY] [DLA 1883-1] tomcat8 security update (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- USN-4128-1 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- USN-4128-2 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- RHSA-2019:3929 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- RHSA-2019:3931 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- DSA-4596 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- 20191229 [SECURITY] [DSA 4596-1] tomcat8 security update (opens in a new tab)mailing-listx_refsource_BUGTRAQx_transferred
- [announce] 20200131 Apache Software Foundation Security Report: 2019 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [tomcat-dev] 20200203 svn commit: r1873527 [24/30] - /tomcat/site/trunk/docs/ (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [tomcat-dev] 20200203 svn commit: r1873527 [25/30] - /tomcat/site/trunk/docs/ (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [tomcat-dev] 20200213 svn commit: r1873980 [27/34] - /tomcat/site/trunk/docs/ (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [tomcat-dev] 20200213 svn commit: r1873980 [28/34] - /tomcat/site/trunk/docs/ (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [tomcat-dev] 20200213 svn commit: r1873980 [29/34] - /tomcat/site/trunk/docs/ (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- GLSA-202003-43 (opens in a new tab)vendor-advisoryx_refsource_GENTOOx_transferred
- https://www.oracle.com/security-alerts/cpuapr2020.html (opens in a new tab)x_refsource_MISCx_transferred
- https://www.oracle.com/security-alerts/cpujan2020.html (opens in a new tab)x_refsource_MISCx_transferred
- https://www.oracle.com/security-alerts/cpuApr2021.html (opens in a new tab)x_refsource_MISCx_transferred
- https://lists.apache.org/thread.html/6e6e9eacf7b28fd63d249711e9d3ccd4e0a83f556e324aee37be5a8c%40%3Cannounce.tomcat.apache.org%3E (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://security.netapp.com/advisory/ntap-20190606-0001/ (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://wwws.nightwatchcybersecurity.com/2019/05/27/xss-in-ssi-printenv-command-apache-tomcat-cve-2019-0221/ (opens in a new tab)x_refsource_MISCx_transferred
- https://support.f5.com/csp/article/K13184144?utm_source=f5support&%3Butm_medium=RSS (opens in a new tab)x_refsource_CONFIRMx_transferred
- http://packetstormsecurity.com/files/163457/Apache-Tomcat-9.0.0.M1-Cross-Site-Scripting.html (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2019-0473 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-jjpq-gp5q-8q6w (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2019-0221)Record last updated .