Skip to content
OpenAdvisories

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.

Affected products

VendorProductAffectedFixed
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 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 tomcat9 9.0.16-4 —
Debian 13 tomcat9 9.0.16-4 —
Debian 12 tomcat9 9.0.16-4 —
Debian 9 tomcat8 8.5.50-0+deb9u1 DSA-4596-1
Debian 8 tomcat7 7.0.56-3+really7.0.94-1 DLA-1810-1
Debian 8 tomcat8 8.0.14-1+deb8u15 DLA-1883-1
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS tomcat8 8.5.39-1ubuntu1~18.04.3 USN-4128-1
Ubuntu 18.04 LTS tomcat9 9.0.16-3ubuntu0.18.04.1 USN-4128-2
Ubuntu 16.04 LTS tomcat8 8.0.32-1ubuntu1.10 USN-4128-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS tomcat7 7.0.78-1ubuntu0.1~esm1 USN-6908-1
Ubuntu Pro 16.04 LTS tomcat7 7.0.68-1ubuntu0.4+esm2 USN-6908-1
Ubuntu Pro 14.04 LTS tomcat7 7.0.52-1ubuntu0.16+esm1 USN-6908-1
ReleasePackageFixed inAdvisory
Red Hat JBoss Web Server 5 jws5-ecj 4.12.0-1.redhat_1.1.el6jws RHSA-2019:3929
Red Hat JBoss Web Server 5 jws5-javapackages-tools +1 3.4.1-5.15.11.el6jws RHSA-2019:3929
Red Hat JBoss Web Server 5 jws5-jboss-logging 3.3.2-1.Final_redhat_00001.1.el6jws RHSA-2019:3929
Red Hat JBoss Web Server 5 jws5-mod_cluster +1 1.4.1-1.Final_redhat_00001.2.el6jws RHSA-2019:3929
Red Hat JBoss Web Server 5 jws5-tomcat +9 9.0.21-10.redhat_4.1.el6jws RHSA-2019:3929
Red Hat JBoss Web Server 5 jws5-tomcat-native 1.2.21-34.redhat_34.el6jws RHSA-2019:3929
Red Hat JBoss Web Server 5 jws5-tomcat-vault +1 1.1.8-1.Final_redhat_1.1.el6jws RHSA-2019:3929
Red Hat JBoss Web Server 3 tomcat-native 1.2.23-21.redhat_21.ep7.el6 RHSA-2020:0861
Red Hat JBoss Web Server 3 tomcat7 +11 7.0.70-38.ep7.el6 RHSA-2020:0861
Red Hat JBoss Web Server 3 tomcat8 +11 8.0.36-42.ep7.el6 RHSA-2020:0861
ReleasePackageFixed inAdvisory
SLES 15 SP1 tomcat 9.0.21-4.5.5 SUSE-SU-2019:1895-1
SLES 15 tomcat 9.0.20-3.24.2 SUSE-SU-2019:1693-1
SLES 12 SP4 tomcat 9.0.21-3.13.2 SUSE-SU-2019:1866-1
SLES 12 SP3 tomcat 8.0.53-29.27.1 SUSE-SU-2020:1498-1
SLES 12 SP2 tomcat 8.0.53-29.27.1 SUSE-SU-2020:1498-1
Show 12 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP1 tomcat 8.0.53-10.43.1 SUSE-SU-2020:1497-1
SLES 11 SP4 tomcat6 6.0.53-0.57.16.1 SUSE-SU-2020:14375-1
SLES for SAP 12 SP4 tomcat 9.0.21-3.13.2 SUSE-SU-2019:1866-1
SLES for SAP 12 SP3 tomcat 8.0.53-29.27.1 SUSE-SU-2020:1498-1
SLES for SAP 12 SP2 tomcat 8.0.53-29.27.1 SUSE-SU-2020:1498-1
SLES for SAP 12 SP1 tomcat 8.0.53-10.43.1 SUSE-SU-2020:1497-1
SUSE OpenStack Cloud Crowbar 8 tomcat 8.0.53-29.27.1 SUSE-SU-2020:1498-1
SUSE OpenStack Cloud 8 tomcat 8.0.53-29.27.1 SUSE-SU-2020:1498-1
SUSE OpenStack Cloud 7 tomcat 8.0.53-29.27.1 SUSE-SU-2020:1498-1
SUSE Linux Enterprise Point of Sale 11 SP3 tomcat6 6.0.53-0.57.16.1 SUSE-SU-2020:14375-1
SUSE HPE Helion OpenStack 8 tomcat 8.0.53-29.27.1 SUSE-SU-2020:1498-1
SUSE Enterprise Storage 5 tomcat 8.0.53-29.27.1 SUSE-SU-2020:1498-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed tomcat 9.0.36-8.4 openSUSE-SU-2024:11468-1
openSUSE Tumbleweed tomcat10 10.1.14-1.1 openSUSE-SU-2024:13441-1
openSUSE Leap 15.1 tomcat 9.0.21-lp151.3.3.1 openSUSE-SU-2019:1808-1
openSUSE Leap 15.0 tomcat 9.0.20-lp150.2.19.1 openSUSE-SU-2019:1673-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 tomcat +9 7.0.76-10.amzn2.0.5 ALAS2-2023-2200

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Automated scanner template

A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.apache.tomcat:tomcat >= 9.0.0, < 9.0.17 9.0.17 GHSA-jjpq-gp5q-8q6w
Maven org.apache.tomcat:tomcat >= 8.5.0, < 8.5.40 8.5.40 GHSA-jjpq-gp5q-8q6w
Maven org.apache.tomcat:tomcat >= 7.0.0, < 7.0.94 7.0.94 GHSA-jjpq-gp5q-8q6w
Maven org.apache.tomcat:tomcat-catalina >= 9.0.0, < 9.0.17 9.0.17 GHSA-jjpq-gp5q-8q6w
Maven org.apache.tomcat:tomcat-catalina >= 8.5.0, < 8.5.40 8.5.40 GHSA-jjpq-gp5q-8q6w
Maven org.apache.tomcat:tomcat-catalina >= 7.0.0, < 7.0.94 7.0.94 GHSA-jjpq-gp5q-8q6w
Maven org.apache.tomcat.embed:tomcat-embed-core >= 9.0.0, < 9.0.17 9.0.17 GHSA-jjpq-gp5q-8q6w
Maven org.apache.tomcat.embed:tomcat-embed-core >= 8.5.0, < 8.5.40 8.5.40 GHSA-jjpq-gp5q-8q6w
Maven org.apache.tomcat.embed:tomcat-embed-core >= 7.0.0, < 7.0.94 7.0.94 GHSA-jjpq-gp5q-8q6w

Advisories 21

References