CVE-2019-0221 json
Cross-site scripting in Apache Tomcat
published 2019-05-28 7 y ago modified 2026-11-02 6 d ago also GHSA-jjpq-gp5q-8q6w , EUVD-2019-0473
- cvss
- 6.1
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 58.3%
- EPSS 58.3% chance of exploitation in 30 days, percentile 99%
- public exploits
- 1
- Exploit-DB, plus a Nuclei check
Summary
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.
Patch / fix
- maven org.apache.tomcat.embed:tomcat-embed-core 7.0.94, 8.5.40, 9.0.17
- maven org.apache.tomcat:tomcat-catalina 7.0.94, 8.5.40, 9.0.17
- maven org.apache.tomcat:tomcat 7.0.94, 8.5.40, 9.0.17
- tomcat9 Debian 14, Debian 13, Debian 12 9.0.16-4
debian advisories DEBIAN-CVE-2019-0221
- tomcat8 Ubuntu 16.04 LTS 8.0.32-1ubuntu1.10
- tomcat8 Ubuntu 18.04 LTS 8.5.39-1ubuntu1~18.04.3
- tomcat9 Ubuntu 18.04 LTS 9.0.16-3ubuntu0.18.04.1
- tomcat7 Ubuntu Pro 14.04 LTS 7.0.52-1ubuntu0.16+esm1
- tomcat7 Ubuntu Pro 16.04 LTS 7.0.68-1ubuntu0.4+esm2
- tomcat7 Ubuntu Pro 18.04 LTS 7.0.78-1ubuntu0.1~esm1
ubuntu advisories UBUNTU-CVE-2019-0221
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- tomcat7 jboss enterprise web server 3.1 7.0.70-38.ep7.el6
- tomcat7 jboss enterprise web server 3.1 7.0.70-38.ep7.el7
- tomcat8 jboss enterprise web server 3.1 8.0.36-42.ep7.el6
- tomcat8 jboss enterprise web server 3.1 8.0.36-42.ep7.el7
- tomcat7-lib jboss enterprise web server 3.1 7.0.70-38.ep7.el6
- tomcat7-lib jboss enterprise web server 3.1 7.0.70-38.ep7.el7
- tomcat8-lib jboss enterprise web server 3.1 8.0.36-42.ep7.el6
- tomcat8-lib jboss enterprise web server 3.1 8.0.36-42.ep7.el7
red hat advisories RHSA-2020:0861RHSA-2019:3929
- tomcat SLES for SAP 12 SP3, SLES for SAP 12 SP2, SLES 12 SP3-LTSS +8 more 8.0.53-29.27.1
- tomcat6 SLES 11 SP4-LTSS, SLE Point of Sale 11 SP3 6.0.53-0.57.16.1
- tomcat SLE Module for Web and Scripting 15 SP1 9.0.21-4.5.5
- tomcat SLES for SAP 12 SP4, SLES 12 SP4 9.0.21-3.13.2
- tomcat SLE Module for Web and Scripting 15 9.0.20-3.24.2
- tomcat SLES for SAP 12 SP1, SLES 12 SP1-LTSS 8.0.53-10.43.1
suse advisories SUSE-SU-2020:1498-1SUSE-SU-2020:1497-1SUSE-SU-2020:14375-1SUSE-SU-2019:1895-1SUSE-SU-2019:1866-1SUSE-SU-2019:1693-1
- tomcat openSUSE Tumbleweed 9.0.36-8.4
- tomcat10 openSUSE Tumbleweed 10.1.14-1.1
- tomcat openSUSE Leap 15.1 9.0.21-lp151.3.3.1
- tomcat openSUSE Leap 15.0 9.0.20-lp150.2.19.1
opensuse advisories openSUSE-SU-2024:11468-1openSUSE-SU-2024:13441-1openSUSE-SU-2019:1808-1openSUSE-SU-2019:1673-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2019-0221 updated cvss 5.0
tomcat: XSS in SSI printenv
-
Red Hat BPM Suite 6 tomcat Red Hat Enterprise Linux 6 tomcat6, tomcat6-lib, tomcat6-log4j, tomcat6-javadoc, tomcat6-webapps, tomcat6-el-2.1-api, +4 moreaffected: workaround, no fix planned “SSI is disabled in the default Tomcat configuration. The vulnerable printenv command is intended for debugging, and is recommended to not be enabled for a production website.”
-
Red Hat Enterprise Linux 7 tomcat, tomcat-lib, tomcat-jsvc, tomcat-javadoc, tomcat-webapps, tomcat-el-2.2-api, +4 more Red Hat Enterprise Linux 8 pki-deps:10.6/pki-servlet-containeraffected: workaround, no fix available “SSI is disabled in the default Tomcat configuration. The vulnerable printenv command is intended for debugging, and is recommended to not be enabled for a production website.”
-
Red Hat JBoss BRMS 5 jbossweb jbossweb Red Hat JBoss BRMS 6 tomcat Red Hat JBoss Data Grid 6 jbossweb jbossweb Red Hat JBoss Data Virtualization 6 jbossweb jbossweb Red Hat JBoss Enterprise Application Platform 5 jbossweb jbossweb Red Hat JBoss Enterprise Application Platform 6 jbossweb jbosswebaffected: workaround, no fix planned “SSI is disabled in the default Tomcat configuration. The vulnerable printenv command is intended for debugging, and is recommended to not be enabled for a production website.”
+2 more productsfewer
Red Hat JBoss Fuse 6 tomcat Red Hat JBoss Operations Network 3 jbossweb jbossweb -
Red Hat JBoss Web Server 3.1fixed: vendor fix “SSI is disabled in the default Tomcat configuration. The vulnerable printenv command is intended for debugging, and is recommended to not be enabled for a production website.” RHSA-2020:0860
-
Red Hat JBoss Web Server 3.1 for RHEL 6 tomcat7 7.0.70-38.ep7.el6, tomcat8 8.0.36-42.ep7.el6, tomcat7-lib 7.0.70-38.ep7.el6, tomcat8-lib 8.0.36-42.ep7.el6, tomcat7-jsvc 7.0.70-38.ep7.el6, tomcat8-jsvc 8.0.36-42.ep7.el6, +19 more Red Hat JBoss Web Server 3.1 for RHEL 7 tomcat7 7.0.70-38.ep7.el7, tomcat8 8.0.36-42.ep7.el7, tomcat7-lib 7.0.70-38.ep7.el7, tomcat8-lib 8.0.36-42.ep7.el7, tomcat7-jsvc 7.0.70-38.ep7.el7, tomcat8-jsvc 8.0.36-42.ep7.el7, +19 morefixed: vendor fix “SSI is disabled in the default Tomcat configuration. The vulnerable printenv command is intended for debugging, and is recommended to not be enabled for a production website.” RHSA-2020:0861
-
Red Hat JBoss Web Server 5fixed: vendor fix “SSI is disabled in the default Tomcat configuration. The vulnerable printenv command is intended for debugging, and is recommended to not be enabled for a production website.” RHSA-2019:3931
-
Red Hat JBoss Web Server 5.2 for RHEL 6 Server jws5-ecj 4.12.0-1.redhat_1.1.el6jws, jws5-tomcat 9.0.21-10.redhat_4.1.el6jws, jws5-tomcat-lib 9.0.21-10.redhat_4.1.el6jws, jws5-javapackages-tools 3.4.1-5.15.11.el6jws, jws5-python-javapackages 3.4.1-5.15.11.el6jws, jws5-tomcat-native 1.2.21-34.redhat_34.el6jws, +13 more Red Hat JBoss Web Server 5.2 for RHEL 7 Server jws5-ecj 4.12.0-1.redhat_1.1.el7jws, jws5-tomcat 9.0.21-10.redhat_4.1.el7jws, jws5-tomcat-lib 9.0.21-10.redhat_4.1.el7jws, jws5-javapackages-tools 3.4.1-5.15.11.el7jws, jws5-python-javapackages 3.4.1-5.15.11.el7jws, jws5-tomcat-native 1.2.21-34.redhat_34.el7jws, +13 more Red Hat JBoss Web Server 5.2 for RHEL 8 jws5-ecj 4.12.0-1.redhat_1.1.el8jws, jws5-tomcat 9.0.21-10.redhat_4.1.el8jws, jws5-tomcat-lib 9.0.21-10.redhat_4.1.el8jws, jws5-javapackages-tools 3.4.1-5.15.11.el8jws, jws5-python-javapackages 3.4.1-5.15.11.el8jws, jws5-tomcat-native 1.2.21-34.redhat_34.el8jws, +13 morefixed: vendor fix “SSI is disabled in the default Tomcat configuration. The vulnerable printenv command is intended for debugging, and is recommended to not be enabled for a production website.” RHSA-2019:3929
-
Red Hat Fuse 7 tomcat Red Hat JBoss Data Grid 7 tomcatnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Timeline
- Published
- First public exploit (EDB-50119)
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 6 d ago
Exploit prediction
58.25% chance of exploitation in the next 30 days, higher than 99% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- EDB-50119 Apache Tomcat 9.0.0.M1 - Cross-Site Scripting (XSS) webapps, 2021-07-13
- Nuclei template Apache Tomcat - Cross-Site Scripting nuclei detection template
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| GitHub | 3.0 | 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.apache.tomcat.embed:tomcat-embed-core | >=9.0.0, <9.0.17 >=8.5.0, <8.5.40 >=7.0.0, <7.0.94 |
9.0.17 8.5.40 7.0.94 |
| maven | org.apache.tomcat:tomcat-catalina | >=9.0.0, <9.0.17 >=8.5.0, <8.5.40 >=7.0.0, <7.0.94 |
9.0.17 8.5.40 7.0.94 |
| maven | org.apache.tomcat:tomcat | >=9.0.0, <9.0.17 >=8.5.0, <8.5.40 >=7.0.0, <7.0.94 |
9.0.17 8.5.40 7.0.94 |
Affected products
- Apache Apache Tomcat
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/apache/tomcat/commit/15fcd166ea2c1bb79e8541b8e1a43da9c452ceea
web
-
github.com
/apache/tomcat/commit/44ec74c44dcd05cd7e90967c04d40b51440ecd7e
web
-
github.com
/apache/tomcat/commit/4fcdf706f3ecf35912a600242f89637f5acb32da
web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/ZQTZ5BJ5F4KV6N53SGNKSW3UY5DBIQ46/
vendor-advisory
-
lists.opensuse.org
/opensuse-security-announce/2019-06/msg00090.html
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/NPHQEL5AQ6LZSZD2Y6TYZ4RC3WI7NXJ3/
vendor-advisory
-
lists.opensuse.org
/opensuse-security-announce/2019-07/msg00054.html
vendor-advisory
-
usn.ubuntu.com
/4128-1/
vendor-advisory
-
usn.ubuntu.com
/4128-2/
vendor-advisory
-
access.redhat.com
/errata/RHSA-2019:3929
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2019:3931
vendor-advisory, web
-
debian.org
/security/2019/dsa-4596
vendor-advisory, web
-
security.gentoo.org
/glsa/202003-43
vendor-advisory, web
-
seclists.org
/fulldisclosure/2019/May/50
mailing-list, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2019/05/msg00044.html
mailing-list
-
securityfocus.com
/bid/108545
vdb-entry
-
lists.debian.org
/debian-lts-announce/2019/08/msg00015.html
mailing-list
-
seclists.org
/bugtraq/2019/Dec/43
mailing-list, web
-
lists.apache.org
/thread.html/r6d03e45b81eab03580cf7f8bb51cb3e9a1b10a2cc0c6a2d3cc92ed0c%40%3Cannounce.apache.org%3E
mailing-list, web
-
lists.apache.org
/thread.html/r6ccee4e849bc77df0840c7f853f6bd09d426f6741247da2b7429d5d9%40%3Cdev.tomcat.apache.org%3E
mailing-list, web
-
lists.apache.org
/thread.html/r3bbb800a816d0a51eccc5a228c58736960a9fffafa581a225834d97d%40%3Cdev.tomcat.apache.org%3E
mailing-list, web
-
lists.apache.org
/thread.html/r9136ff5b13e4f1941360b5a309efee2c114a14855578c3a2cbe5d19c%40%3Cdev.tomcat.apache.org%3E
mailing-list, web
-
lists.apache.org
/thread.html/raba0fabaf4d56d4325ab2aca8814f0b30a237ab83d8106b115ee279a%40%3Cdev.tomcat.apache.org%3E
mailing-list, web
-
lists.apache.org
/thread.html/r48c1444845fe15a823e1374674bfc297d5008a5453788099ea14caf0%40%3Cdev.tomcat.apache.org%3E
mailing-list, web
-
oracle.com
/security-alerts/cpuapr2020.html
web
-
oracle.com
/security-alerts/cpujan2020.html
web
-
oracle.com
/security-alerts/cpuApr2021.html
web
-
lists.apache.org
/thread.html/6e6e9eacf7b28fd63d249711e9d3ccd4e0a83f556e324aee37be5a8c%40%3Cannounce.tomcat.apache.org%3E
web
- security.netapp.com /advisory/ntap-20190606-0001/
- wwws.nightwatchcybersecurity.com /2019/05/27/xss-in-ssi-printenv-command-apache-tomcat-cve-2019-0221/
-
support.f5.com
/csp/article/K13184144?utm_source=f5support&%3Butm_medium=RSS
web
- packetstormsecurity.com /files/163457/Apache-Tomcat-9.0.0.M1-Cross-Site-Scripting.html
-
nvd.nist.gov
/vuln/detail/CVE-2019-0221
advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/ZQTZ5BJ5F4KV6N53SGNKSW3UY5DBIQ46
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/NPHQEL5AQ6LZSZD2Y6TYZ4RC3WI7NXJ3
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/ZQTZ5BJ5F4KV6N53SGNKSW3UY5DBIQ46
web
-
security.netapp.com
/advisory/ntap-20190606-0001
web
-
support.f5.com
/csp/article/K13184144?utm_source=f5support&utm_medium=RSS
web
-
tomcat.apache.org
/security-7.html
web
-
tomcat.apache.org
/security-8.html
web
-
tomcat.apache.org
/security-9.html
web
-
usn.ubuntu.com
/4128-1
web
-
usn.ubuntu.com
/4128-2
web
-
web.archive.org
/web/20200227055048/http://www.securityfocus.com/bid/108545
web
-
wwws.nightwatchcybersecurity.com
/2019/05/27/xss-in-ssi-printenv-command-apache-tomcat-cve-2019-0221
web
-
github.com
/apache/tomcat
package
-
lists.apache.org
/thread.html/6e6e9eacf7b28fd63d249711e9d3ccd4e0a83f556e324aee37be5a8c@%3Cannounce.tomcat.apache.org%3E
web
-
lists.apache.org
/thread.html/r3bbb800a816d0a51eccc5a228c58736960a9fffafa581a225834d97d@%3Cdev.tomcat.apache.org%3E
web
-
lists.apache.org
/thread.html/r48c1444845fe15a823e1374674bfc297d5008a5453788099ea14caf0@%3Cdev.tomcat.apache.org%3E
web
-
lists.apache.org
/thread.html/r6ccee4e849bc77df0840c7f853f6bd09d426f6741247da2b7429d5d9@%3Cdev.tomcat.apache.org%3E
web
-
lists.apache.org
/thread.html/r6d03e45b81eab03580cf7f8bb51cb3e9a1b10a2cc0c6a2d3cc92ed0c@%3Cannounce.apache.org%3E
web
-
lists.apache.org
/thread.html/r9136ff5b13e4f1941360b5a309efee2c114a14855578c3a2cbe5d19c@%3Cdev.tomcat.apache.org%3E
web
-
lists.apache.org
/thread.html/raba0fabaf4d56d4325ab2aca8814f0b30a237ab83d8106b115ee279a@%3Cdev.tomcat.apache.org%3E
web
Sources
- CVE List CVE-2019-0221
- GitHub Advisory GHSA-jjpq-gp5q-8q6w
- NVD CVE-2019-0221
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.