CVE-2022-23181Local privilege escalation with FileStore
The fix for bug CVE-2020-9484 introduced a time of check, time of use vulnerability into Apache Tomcat 10.1.0-M1 to 10.1.0-M8, 10.0.0-M5 to 10.0.14, 9.0.35 to 9.0.56 and 8.5.55 to 8.5.73 that allowed a local attacker to perform actions with the privileges of the user that the Tomcat process is using. This issue is only exploitable when Tomcat is configured to persist sessions using the FileStore.
What to do
Fixed builds are available from Debian, Maven, Ubuntu: see the table below for the fixed version per release.
Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 20.04 | tomcat9 | Fixed | 9.0.31-1ubuntu0.6 | UBUNTU-CVE-2022-23181 |
| Ubuntu 18.04 | tomcat8 | Fix pending | 8.5.39-1ubuntu1~18.04.3+esm2 (Ubuntu Pro) | UBUNTU-CVE-2022-23181 |
| Ubuntu 18.04 | tomcat9 | Fix pending | 9.0.16-3ubuntu0.18.04.2+esm2 (Ubuntu Pro) | UBUNTU-CVE-2022-23181 |
| Ubuntu 16.04 | tomcat8 | Fix pending | 8.0.32-1ubuntu1.13+esm1 (Ubuntu Pro) | UBUNTU-CVE-2022-23181 |
| Debian 14 | tomcat9 | Fixed | 9.0.58-1 | DEBIAN-CVE-2022-23181 |
| Debian 13 | tomcat9 | Fixed | 9.0.58-1 | DEBIAN-CVE-2022-23181 |
| Debian 12 | tomcat9 | Fixed | 9.0.58-1 | DEBIAN-CVE-2022-23181 |
| Red Hat Enterprise Linux 9 | pki-servlet-4.0-api | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | pki-servlet-engine | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | pki-servlet-4.0-api | Not affected | ||
| Red Hat Enterprise Linux 8 | pki-servlet-engine | Not affected | ||
| Red Hat Enterprise Linux 7 | tomcat | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | tomcat-admin-webapps | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | tomcat-docs-webapp | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | tomcat-el-2.2-api | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | tomcat-javadoc | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | tomcat-jsp-2.2-api | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | tomcat-jsvc | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | tomcat-lib | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | tomcat-servlet-3.0-api | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | tomcat-webapps | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | tomcat6 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | tomcat6-admin-webapps | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | tomcat6-docs-webapp | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | tomcat6-el-2.1-api | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | tomcat6-javadoc | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | tomcat6-jsp-2.1-api | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | tomcat6-lib | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | tomcat6-log4j | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | tomcat6-servlet-2.5-api | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | tomcat6-webapps | Will not fix Out of support scope | ||
| Maven library | org.apache.tomcat:tomcat | Fixed | 8.5.75 | GHSA-9f3j-pm6f-9fm5 |
What the vendor says
As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Apache Software Foundation Apache Tomcat: affected: Apache Tomcat 10.1 10.1.0-M1 to 10.1.0-M8, Apache Tomcat 10.0 10.0.0-M5 to 10.0.14, Apache Tomcat 9 9.0.35 to 9.0.56, Apache Tomcat 8 8.5.55 to 8.5.73
Vendor advisories:
- https://www.debian.org/security/2022/dsa-5265 (vendor-advisory)
References
- https://lists.apache.org/thread/l8x62p3k19yfcb208jo4zrb83k5mfwg9
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://security.netapp.com/advisory/ntap-20220217-0010/
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://lists.debian.org/debian-lts-announce/2022/10/msg00029.html
- https://www.debian.org/security/2022/dsa-5265
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.