{"id":"CVE-2019-0221","published":"2019-05-28T21:01:28Z","modified":"2024-08-04T17:44:15Z","title":"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…","vendor":"Apache","product":"Apache Tomcat","tier":"core","eol":null,"affectedVersions":[{"vendor":"Apache","product":"Apache Tomcat","versions":["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"]}],"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"The SSI printenv command in Apache Tomcat (versions 9.0.0.M1 through 9.0.0.17, 8.5.0 through 8.5.39, and 7.0.0 through 7.0.93) echoes user-provided data without escaping, leading to cross-site scripting. An attacker could exploit this only where Server Side Includes are enabled, which is not the default, and where the printenv debugging command is present in a page, which is unlikely in production.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-29T07:21:08Z"},"cvss":null,"epss":{"score":0.59194,"percentile":0.99113,"date":"2026-10-28","provenance":"source"},"kev":null,"vulncheckKev":null,"exploited":false,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[],"references":[{"url":"http://seclists.org/fulldisclosure/2019/May/50","tags":["mailing-list","x_refsource_FULLDISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2019/05/msg00044.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://www.securityfocus.com/bid/108545","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZQTZ5BJ5F4KV6N53SGNKSW3UY5DBIQ46/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00090.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NPHQEL5AQ6LZSZD2Y6TYZ4RC3WI7NXJ3/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00054.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"https://lists.debian.org/debian-lts-announce/2019/08/msg00015.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://usn.ubuntu.com/4128-1/","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"https://usn.ubuntu.com/4128-2/","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"https://access.redhat.com/errata/RHSA-2019:3929","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2019:3931","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://www.debian.org/security/2019/dsa-4596","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://seclists.org/bugtraq/2019/Dec/43","tags":["mailing-list","x_refsource_BUGTRAQ"]},{"url":"https://lists.apache.org/thread.html/r6d03e45b81eab03580cf7f8bb51cb3e9a1b10a2cc0c6a2d3cc92ed0c%40%3Cannounce.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r6ccee4e849bc77df0840c7f853f6bd09d426f6741247da2b7429d5d9%40%3Cdev.tomcat.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r3bbb800a816d0a51eccc5a228c58736960a9fffafa581a225834d97d%40%3Cdev.tomcat.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r9136ff5b13e4f1941360b5a309efee2c114a14855578c3a2cbe5d19c%40%3Cdev.tomcat.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/raba0fabaf4d56d4325ab2aca8814f0b30a237ab83d8106b115ee279a%40%3Cdev.tomcat.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r48c1444845fe15a823e1374674bfc297d5008a5453788099ea14caf0%40%3Cdev.tomcat.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://security.gentoo.org/glsa/202003-43","tags":["vendor-advisory","x_refsource_GENTOO"]},{"url":"https://www.oracle.com/security-alerts/cpuapr2020.html","tags":["x_refsource_MISC"]},{"url":"https://www.oracle.com/security-alerts/cpujan2020.html","tags":["x_refsource_MISC"]},{"url":"https://www.oracle.com/security-alerts/cpuApr2021.html","tags":["x_refsource_MISC"]},{"url":"https://lists.apache.org/thread.html/6e6e9eacf7b28fd63d249711e9d3ccd4e0a83f556e324aee37be5a8c%40%3Cannounce.tomcat.apache.org%3E","tags":["x_refsource_CONFIRM"]},{"url":"https://security.netapp.com/advisory/ntap-20190606-0001/","tags":["x_refsource_CONFIRM"]},{"url":"https://wwws.nightwatchcybersecurity.com/2019/05/27/xss-in-ssi-printenv-command-apache-tomcat-cve-2019-0221/","tags":["x_refsource_MISC"]},{"url":"https://support.f5.com/csp/article/K13184144?utm_source=f5support&amp%3Butm_medium=RSS","tags":["x_refsource_CONFIRM"]},{"url":"http://packetstormsecurity.com/files/163457/Apache-Tomcat-9.0.0.M1-Cross-Site-Scripting.html","tags":["x_refsource_MISC"]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"Maven","package":"org.apache.tomcat.embed:tomcat-embed-core","vulnerableRanges":[">=9.0.0, <9.0.17",">=8.5.0, <8.5.40",">=7.0.0, <7.0.94"],"patched":["9.0.17","8.5.40","7.0.94"],"from":["GHSA-jjpq-gp5q-8q6w"],"provenance":"source"},{"ecosystem":"Maven","package":"org.apache.tomcat:tomcat-catalina","vulnerableRanges":[">=9.0.0, <9.0.17",">=8.5.0, <8.5.40",">=7.0.0, <7.0.94"],"patched":["9.0.17","8.5.40","7.0.94"],"from":["GHSA-jjpq-gp5q-8q6w"],"provenance":"source"},{"ecosystem":"Maven","package":"org.apache.tomcat:tomcat","vulnerableRanges":[">=9.0.0, <9.0.17",">=8.5.0, <8.5.40",">=7.0.0, <7.0.94"],"patched":["9.0.17","8.5.40","7.0.94"],"from":["GHSA-jjpq-gp5q-8q6w"],"provenance":"source"}],"advisories":[{"id":"GHSA-jjpq-gp5q-8q6w","url":"https://github.com/advisories/GHSA-jjpq-gp5q-8q6w","severity":"MODERATE","ecosystem":"Maven","package":"org.apache.tomcat.embed:tomcat-embed-core","vulnerableRanges":[">=9.0.0, <9.0.17"],"patched":["9.0.17"],"provenance":"source","from":"GHSA"},{"id":"GHSA-jjpq-gp5q-8q6w","url":"https://github.com/advisories/GHSA-jjpq-gp5q-8q6w","severity":"MODERATE","ecosystem":"Maven","package":"org.apache.tomcat.embed:tomcat-embed-core","vulnerableRanges":[">=8.5.0, <8.5.40"],"patched":["8.5.40"],"provenance":"source","from":"GHSA"},{"id":"GHSA-jjpq-gp5q-8q6w","url":"https://github.com/advisories/GHSA-jjpq-gp5q-8q6w","severity":"MODERATE","ecosystem":"Maven","package":"org.apache.tomcat.embed:tomcat-embed-core","vulnerableRanges":[">=7.0.0, <7.0.94"],"patched":["7.0.94"],"provenance":"source","from":"GHSA"},{"id":"GHSA-jjpq-gp5q-8q6w","url":"https://github.com/advisories/GHSA-jjpq-gp5q-8q6w","severity":"MODERATE","ecosystem":"Maven","package":"org.apache.tomcat:tomcat-catalina","vulnerableRanges":[">=9.0.0, <9.0.17"],"patched":["9.0.17"],"provenance":"source","from":"GHSA"},{"id":"GHSA-jjpq-gp5q-8q6w","url":"https://github.com/advisories/GHSA-jjpq-gp5q-8q6w","severity":"MODERATE","ecosystem":"Maven","package":"org.apache.tomcat:tomcat-catalina","vulnerableRanges":[">=8.5.0, <8.5.40"],"patched":["8.5.40"],"provenance":"source","from":"GHSA"},{"id":"GHSA-jjpq-gp5q-8q6w","url":"https://github.com/advisories/GHSA-jjpq-gp5q-8q6w","severity":"MODERATE","ecosystem":"Maven","package":"org.apache.tomcat:tomcat-catalina","vulnerableRanges":[">=7.0.0, <7.0.94"],"patched":["7.0.94"],"provenance":"source","from":"GHSA"},{"id":"GHSA-jjpq-gp5q-8q6w","url":"https://github.com/advisories/GHSA-jjpq-gp5q-8q6w","severity":"MODERATE","ecosystem":"Maven","package":"org.apache.tomcat:tomcat","vulnerableRanges":[">=9.0.0, <9.0.17"],"patched":["9.0.17"],"provenance":"source","from":"GHSA"},{"id":"GHSA-jjpq-gp5q-8q6w","url":"https://github.com/advisories/GHSA-jjpq-gp5q-8q6w","severity":"MODERATE","ecosystem":"Maven","package":"org.apache.tomcat:tomcat","vulnerableRanges":[">=8.5.0, <8.5.40"],"patched":["8.5.40"],"provenance":"source","from":"GHSA"},{"id":"GHSA-jjpq-gp5q-8q6w","url":"https://github.com/advisories/GHSA-jjpq-gp5q-8q6w","severity":"MODERATE","ecosystem":"Maven","package":"org.apache.tomcat:tomcat","vulnerableRanges":[">=7.0.0, <7.0.94"],"patched":["7.0.94"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2019-0473","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2019-0473","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[{"id":50119,"url":"https://www.exploit-db.com/exploits/50119","title":"Apache Tomcat 9.0.0.M1 - Cross-Site Scripting (XSS)","type":"webapps","platform":"multiple","date":"2021-07-13","verified":false,"provenance":"source"}],"exploitSources":{"exploitdb":{"count":1,"earliest":"2021-07-13"},"nuclei":[{"id":"CVE-2019-0221","name":"Apache Tomcat - Cross-Site Scripting","severity":"medium","path":"http/cves/2019/CVE-2019-0221.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2019/CVE-2019-0221.yaml"}],"first":{"date":"2021-07-13","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/50119"},"provenance":"source"},"exploitRefs":["http://packetstormsecurity.com/files/163457/Apache-Tomcat-9.0.0.M1-Cross-Site-Scripting.html"],"flow":[],"timeline":[{"date":"2019-05-28","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2019-0221","provenance":"source"},{"date":"2021-07-13","kind":"exploit-public","label":"First public exploit: Exploit-DB (EDB-50119)","url":"https://www.exploit-db.com/exploits/50119","provenance":"source"}],"speed":{"daysToPublicExploit":777,"firstExploitFrom":"Exploit-DB","daysToKev":null},"priority":{"score":24.8,"factors":[{"name":"In a KEV catalog","points":0.0,"detail":"not listed"},{"name":"Recent KEV listing","points":0.0,"detail":"not listed"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.82,"detail":"percentile 0.9911"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 Exploit-DB entry; 1 NVD exploit link; 1 nuclei template"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":0.0,"detail":"no CVSS"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]},"lineage":{"packageHistory":[{"cve":"CVE-2016-8735","published":"2017-04-06","fixed":"9.0.0.M12","kev":true},{"cve":"CVE-2017-5648","published":"2017-04-17","fixed":"9.0.0.M18","kev":false},{"cve":"CVE-2017-12617","published":"2017-10-04","fixed":"9.0.1","kev":true,"link":{"from":"CVE-2017-12617","to":"CVE-2019-0221","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.apache.tomcat:tomcat-catalina","fromFixed":"9.0.1","toFixed":"9.0.17","daysApart":601},{"kind":"version-step","provenance":"source","package":"Maven:org.apache.tomcat:tomcat-catalina","fromFixed":"7.0.82","toFixed":"7.0.94","daysApart":601}]}},{"cve":"CVE-2019-0221","published":"2019-05-28","fixed":"9.0.17","kev":false},{"cve":"CVE-2020-9484","published":"2020-05-20","fixed":"10.0.0-M5","kev":false,"link":{"from":"CVE-2019-0221","to":"CVE-2020-9484","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.apache.tomcat:tomcat-catalina","fromFixed":"9.0.17","toFixed":"9.0.35","daysApart":358},{"kind":"version-step","provenance":"source","package":"Maven:org.apache.tomcat:tomcat-catalina","fromFixed":"7.0.94","toFixed":"7.0.104","daysApart":358}]}},{"cve":"CVE-2022-45143","published":"2023-01-03","fixed":"10.1.2","kev":false},{"cve":"CVE-2023-41080","published":"2023-08-25","fixed":"10.1.13","kev":false}],"package":"Maven:org.apache.tomcat:tomcat-catalina"}}