Apache Tomcat Improper Privilege Management
CVE-2020-1938 is a critical-severity vulnerability in Apache Tomcat from Apache, with a CVSS 3.1 base score of 9.8 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. Affected Apache Tomcat versions: Apache Tomcat 9.0.0.M1 to 9.0.0.30; 8.5.0 to 8.5.50; 7.0.0 to 7.0.99. The record does not name a fixed version, so check the vendor advisory. CISA added it to the Known Exploited Vulnerabilities catalogue on March 3, 2022, which means attacks have been observed in the wild.
Attackers are already exploiting this vulnerability, according to CISA.
What to do
- Update Tomcat to 7.0.100 or 8.5.51 or 9.0.31, whichever matches your release line, or a later version.
- CISA's required action: Apply updates per vendor instructions.
- Read the advisory on lists.apache.org for workarounds and exact fixed builds.
- Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Apache | Apache Tomcat | Apache Tomcat 9.0.0.M1 to 9.0.0.30; 8.5.0 to 8.5.50; 7.0.0 to 7.0.99 | Not stated |
| Apache | Geode | 1.12.0 | Not stated |
| Apache | Tomcat | 7.0.0 up to, but not including, 7.0.100; 8.5.0 up to, but not including, 8.5.51; 9.0.0 up to, but not including, 9.0.31 | 7.0.100, 8.5.51, 9.0.31 |
| Fedora Project | Fedora | 30; 31; 32 | Not stated |
| Oracle | Agile Engineering Data Management | 6.2.1.0 | Not stated |
| Oracle | Agile Product Lifecycle Management | 9.3.3; 9.3.5; 9.3.6 | Not stated |
| Oracle | Communications Element Manager | 8.1.1; 8.2.0; 8.2.1 | Not stated |
| Oracle | Communications Instant Messaging Server | 10.0.1.4.0 | Not stated |
| Oracle | Health Sciences Empirica Inspections | 1.0.1.2 | Not stated |
| Oracle | Health Sciences Empirica Signal | 7.3.3 | Not stated |
| Oracle | Hospitality Guest Access | 4.2.0; 4.2.1 | Not stated |
| Oracle | Instantis Enterprisetrack | 17.1 through 17.3 | Not stated |
| Oracle | MySQL Enterprise Monitor | 4.0.12 and earlier; 8.0.0 through 8.0.20 | Not stated |
| Oracle | Siebel UI Framework | 20.5 and earlier | Not stated |
| Oracle | Transportation Management | 6.3.7 | Not stated |
| Oracle | Workload Manager | 12.2.0.1; 18c; 19c | Not stated |
| Debian | Debian Linux | 8.0; 9.0; 10.0 | Not stated |
| openSUSE | Leap | 15.1 | Not stated |
| Blackberry | Good Control | 5.2.58.38 and earlier | Not stated |
| Blackberry | Workspaces Server | 7.0.1; 7.1.2; 8.1.0; 9.0 | Not stated |
| NetApp | Data Availability Services | Not specified in the record | Not stated |
| NetApp | Oncommand System Manager | 3.0.0 through 3.1.3 | Not stated |
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- NoneNo account or login is needed.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- HighData or code can be modified at will.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 9.8 | Critical | NVD |
| CVSS 3.1 | 9.8 | Critical | CISA (ADP) |
| CVSS 2.0 | 7.5 | High | NVD |
Official description
When using the Apache JServ Protocol (AJP), care must be taken when trusting incoming connections to Apache Tomcat. Tomcat treats AJP connections as having higher trust than, for example, a similar HTTP connection. If such connections are available to an attacker, they can be exploited in ways that may be surprising. In Apache Tomcat 9.0.0.M1 to 9.0.0.30, 8.5.0 to 8.5.50 and 7.0.0 to 7.0.99, Tomcat shipped with an AJP Connector enabled by default that listened on all configured IP addresses. It was expected (and recommended in the security guide) that this Connector would be disabled if not required. This vulnerability report identified a mechanism that allowed: - returning arbitrary files from anywhere in the web application - processing any file in the web application as a JSP Further, if the web application allowed file upload and stored those files within the web application (or the attacker was able to control the content of the web application by some other means) then this, along with the ability to process a file as a JSP, made remote code execution possible. It is important to note that mitigation is only required if an AJP port is accessible to untrusted users. Users wishing to take a defence-in-depth approach and block the vector that permits returning arbitrary files and execution as JSP may upgrade to Apache Tomcat 9.0.31, 8.5.51 or 7.0.100 or later. A number of changes were made to the default AJP Connector configuration in 9.0.31 to harden the default configuration. It is likely that users upgrading to 9.0.31, 8.5.51 or 7.0.100 or later will need to make small changes to their configurations.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
Timeline
- CVE record published.
- Added to CISA's Known Exploited Vulnerabilities catalogue.
- Deadline for US federal agencies to remediate, set by CISA.
- CISA published its SSVC assessment (exploitation: active, automatable: yes, technical impact: total).
- Record last changed materially (score, affected products, status or references).
References
Advisories
- lists.apache.org/thread.html/r7c6f492fbd39af34a68681dbbba0468490ff1a97a1bd79c6a53610ef%40%3Cannounce.tomcat.a…Mailing List
- lists.apache.org/thread.html/r8f7484589454638af527182ae55ef5b628ba00c05c5b11887c922fb1%40%3Cnotifications.ofb…Mailing List
- lists.apache.org/thread.html/r90890afea72a9571d666820b2fe5942a0a5f86be406fa31da3dd0922%40%3Cannounce.apache.o…Mailing List
- lists.apache.org/thread.html/ra7092f7492569b39b04ec0decf52628ba86c51f15efb38f5853e2760%40%3Cnotifications.ofb…Mailing List
- lists.apache.org/thread.html/rf1bbc0ea4a9f014cf94df9a12a6477d24a27f52741dbc87f2fd52ff2%40%3Cissues.geode.apac…Mailing List
- lists.apache.org/thread.html/rf992c5adf376294af31378a70aa8a158388a41d7039668821be28df3%40%3Ccommits.tomee.apa…Mailing List
Patches and release notes
- lists.apache.org/thread.html/r9f119d9ce9239114022e13dbfe385b3de7c972f24f05d6dbd35c1a2f%40%3Cusers.tomcat.apac…Mailing List
- lists.apache.org/thread.html/rb1c0fb105ce2b93b7ec6fc1b77dd208022621a91c12d1f580813cfed%40%3Cdev.tomcat.apache…Mailing List
- lists.apache.org/thread.html/rd0774c95699d5aeb5e16e9a600fb2ea296e81175e30a62094e27e3e7%40%3Ccommits.ofbiz.apa…Mailing List
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2XFLQB3O5QVP4ZBIPVIX…Release Notes
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/K3IPNHCKFVUKSHDTM45U…Release Notes
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/L46WJIV6UV3FWA5O5YEY…Release Notes
- oracle.com/security-alerts/cpujan2021.htmlThird Party Advisory
- oracle.com/security-alerts/cpujul2020.htmlThird Party Advisory
- oracle.com/security-alerts/cpuoct2020.htmlThird Party Advisory
Third-party and government advisories
- lists.opensuse.org/opensuse-security-announce/2020-03/msg00025.htmlThird Party Advisory
- lists.opensuse.org/opensuse-security-announce/2020-05/msg00002.htmlMailing List, Third Party Advisory
- support.blackberry.com/kb/articleDetail?articleNumber=000062739Third Party Advisory
- lists.debian.org/debian-lts-announce/2020/03/msg00006.htmlThird Party Advisory
- lists.debian.org/debian-lts-announce/2020/05/msg00026.htmlThird Party Advisory
- security.gentoo.org/glsa/202003-43Third Party Advisory
- security.netapp.com/advisory/ntap-20200226-0002/Third Party Advisory
- debian.org/security/2020/dsa-4673Third Party Advisory
- debian.org/security/2020/dsa-4680Third Party Advisory
- cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2020-1938US Government Resource
Technical write-ups (may include proof of concept)
Other references
- lists.apache.org/thread.html/r089dc67c0358a1556dd279c762c74f32d7a254a54836b7ee2d839d8e%40%3Cdev.tomee.apache…Mailing List
- lists.apache.org/thread.html/r1125f3044a0946d1e7e6f125a6170b58d413ebd4a95157e4608041c7%40%3Cannounce.apache.o…Mailing List
- lists.apache.org/thread.html/r17aaa3a05b5b7fe9075613dd0c681efa60a4f8c8fbad152c61371b6e%40%3Cusers.tomcat.apac…Mailing List
- lists.apache.org/thread.html/r38a5b7943b9a62ecb853acc22ef08ff586a7b3c66e08f949f0396ab1%40%3Cusers.tomcat.apac…Mailing List
- lists.apache.org/thread.html/r43faacf64570b1d9a4bada407a5af3b2738b0c007b905f1b6b608c65%40%3Cusers.tomcat.apac…Mailing List
- lists.apache.org/thread.html/r47caef01f663106c2bb81d116b8380d62beac9e543dd3f3bc2c2beda%40%3Ccommits.tomee.apa…Mailing List
- lists.apache.org/thread.html/r4afa11e0464408e68f0e9560e90b185749363a66398b1491254f7864%40%3Cusers.tomcat.apac…Issue Tracking, Mailing List
- lists.apache.org/thread.html/r4f86cb260196e5cfcbbe782822c225ddcc70f54560f14a8f11c6926f%40%3Cusers.tomcat.apac…Mailing List
- lists.apache.org/thread.html/r549b43509e387a42656f0641fa311bf27c127c244fe02007d5b8d6f6%40%3Cdev.tomcat.apache…Mailing List
- lists.apache.org/thread.html/r57f5e4ced436ace518a9e222fabe27fb785f09f5bf974814cc48ca97%40%3Ccommits.tomee.apa…Mailing List
- lists.apache.org/thread.html/r5e2f1201b92ee05a0527cfc076a81ea0c270be299b87895c0ddbe02b%40%3Cusers.tomcat.apac…Mailing List
- lists.apache.org/thread.html/r61f280a76902b594692f0b24a1dbf647bb5a4c197b9395e9a6796e7c%40%3Cusers.tomcat.apac…Mailing List
- lists.apache.org/thread.html/r6a5633cad1b560a1e51f5b425f02918bdf30e090fdf18c5f7c2617eb%40%3Ccommits.tomee.apa…Mailing List
- lists.apache.org/thread.html/r74328b178f9f37fe759dffbc9c1f2793e66d79d7a8a20d3836551794%40%3Cnotifications.ofb…Mailing List
- lists.apache.org/thread.html/r75113652e46c4dee687236510649acfb70d2c63e074152049c3f399d%40%3Cnotifications.ofb…Mailing List
Other vulnerabilities in Apache Tomcat
- 7.5 High severity
- 7.5 High severity
- 8.1 High severity
- 9.1 Critical severity
- 9.1 Critical severity
- 8.1 High severity
Spotted an error? Tell us.