Skip to content
Fencer Intel
medium 6.1

CVE-2019-0221 json

Cross-site scripting in Apache Tomcat

published 7y ago modified 7d 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.1%
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

Is CVE-2019-0221 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

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 more
    affected: 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-container
    affected: 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 jbossweb
    +2 more products
    Red Hat JBoss Fuse 6 tomcat Red Hat JBoss Operations Network 3 jbossweb jbossweb
    affected: 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 JBoss Web Server 3.1
    fixed: 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 more
    fixed: 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 5
    fixed: 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 more
    fixed: 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 tomcat
    not 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

  1. Published
  2. First public exploit (EDB-50119)

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
7d ago

Exploit prediction

58.25% chance of exploitation in the next 30 days, higher than 99.1% of all scored CVEs (FIRST EPSS, 2026-11-09).

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

Sources

Fencer Intel 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.