CVE-2020-27216 json
Local Temp Directory Hijacking Vulnerability
published 6y ago modified last mo. also GHSA-g3wg-6mcf-8jj6 , EUVD-2020-1455
- cvss
- 7.0
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 4.4%
- EPSS 4.4% chance of exploitation in 30 days, percentile 91%
- public exploits
- 0
- none known
Summary
In Eclipse Jetty versions 1.0 thru 9.4.32.v20200930, 10.0.0.alpha1 thru 10.0.0.beta2, and 11.0.0.alpha1 thru 11.0.0.beta2O, on Unix like systems, the system's temporary directory is shared between all users on that system. A collocated user can observe the process of creating a temporary sub directory in the shared temporary directory and race to complete the creation of the temporary subdirectory. If the attacker wins the race then they will have read and write permission to the subdirectory used to unpack web applications, including their WEB-INF/lib jar files and JSP files. If any code is ever executed out of this temporary directory, this can lead to a local privilege escalation vulnerability.
Patch / fix
- maven org.eclipse.jetty:jetty-webapp 9.4.33.v20201020, 10.0.0.beta3, 11.0.0.beta3
- maven org.mortbay.jetty:jetty-webapp 9.4.33, 10.0.0.beta3, 11.0.0.beta3
- eclipse jetty 9.3.29
- oracle jd_edwards_enterpriseone_tools 9.2.6.0
- jetty9 Debian 14, Debian 13, Debian 12 9.4.33-1
debian advisories DEBIAN-CVE-2020-27216
- jenkins openshift 4.5 2.277.3.1623846768-1.el7
- jenkins-2-plugins openshift 4.5 4.5.1623326336-1.el7
- jenkins openshift 3.11 2.289.1.1624365627-1.el7
- jenkins-2-plugins openshift 3.11 3.11.1624366838-1.el7
- jenkins openshift 4.6 2.277.3.1623853726-1.el8
- rh-eclipse devtools 2020 1:4.17-6.el7_9
- rh-eclipse-ant devtools 2020 1.10.9-1.2.el7
- rh-eclipse-ecj devtools 2020 1:4.17-1.1.el7
red hat advisories RHSA-2021:2431RHSA-2021:2517RHSA-2021:2499RHSA-2020:5168
- github.com/github/codeql#4473 pull request
- bugs.eclipse.org/bugs/show_bug.cgi?id=567921 advisory
- oracle.com//security-alerts/cpujul2021.html advisory
- oracle.com/security-alerts/cpuApr2021.html advisory
- oracle.com/security-alerts/cpujan2021.html advisory
- oracle.com/security-alerts/cpuoct2021.html advisory
Is CVE-2020-27216 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 FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2020-27216 updated cvss 7.0
jetty: local temporary directory hijacking vulnerability
-
Red Hat Enterprise Linux 6 jetty-eclipse Red Hat Enterprise Linux 7 jetty-io, jetty-ant, jetty-jmx, jetty-jsp, jetty-xml, jetty-http, +30 more Red Hat Enterprise Linux 8 jetty-io, jetty-http, jetty-util, jetty-server, jetty-servlet, jetty-security, +1 more Red Hat JBoss A-MQ 6 jetty Red Hat JBoss Fuse 6 jetty Red Hat JBoss Fuse Service Works 6 jettyaffected: workaround, no fix planned “Jetty users should create temp folders outside the normal /tmp structure, and ensure that their permissions are set so as not to be accessible by an attacker.”
+1 more productsfewer
Red Hat OpenShift Container Platform 4 openshift4/ose-metering-hive, openshift4/ose-metering-hadoop -
Red Hat AMQfixed: vendor fix “Jetty users should create temp folders outside the normal /tmp structure, and ensure that their permissions are set so as not to be accessible by an attacker.” RHSA-2020:5365
-
Red Hat AMQ LTS 7.4.6fixed: vendor fix “Jetty users should create temp folders outside the normal /tmp structure, and ensure that their permissions are set so as not to be accessible by an attacker.” RHSA-2021:0329
-
Red Hat Developer Tools for Red Hat Enterprise Linux Server (v. 7) rh-eclipse 4.17-6.el7_9, rh-eclipse-ecj 4.17-1.1.el7, rh-eclipse-sac 1.3-34.1.el7, rh-eclipse-jna 5.4.0-7.1.el7, rh-eclipse-ant 1.10.9-1.2.el7, rh-eclipse-batik 1.13-1.1.el7, +227 more Red Hat Developer Tools for Red Hat Enterprise Linux Workstation (v. 7) rh-eclipse 4.17-6.el7_9, rh-eclipse-ecj 4.17-1.1.el7, rh-eclipse-sac 1.3-34.1.el7, rh-eclipse-jna 5.4.0-7.1.el7, rh-eclipse-ant 1.10.9-1.2.el7, rh-eclipse-batik 1.13-1.1.el7, +227 morefixed: vendor fix “Jetty users should create temp folders outside the normal /tmp structure, and ensure that their permissions are set so as not to be accessible by an attacker.” RHSA-2020:5168
-
Red Hat Fuse 7.9fixed: vendor fix “Jetty users should create temp folders outside the normal /tmp structure, and ensure that their permissions are set so as not to be accessible by an attacker.” RHSA-2021:3140
-
Red Hat Migration Toolkit 1.4 rhmtc/openshift-migration-ui-rhel8 v1.4.6-4, rhmtc/openshift-velero-plugin-rhel8 v1.4.6-4, rhmtc/openshift-migration-velero-rhel8 v1.4.6-5, rhmtc/openshift-migration-registry-rhel8 v1.4.6-4, rhmtc/openshift-migration-operator-bundle v1.4.6-5, rhmtc/openshift-migration-controller-rhel8 v1.4.6-4, +7 morefixed: vendor fix “Jetty users should create temp folders outside the normal /tmp structure, and ensure that their permissions are set so as not to be accessible by an attacker.” RHBA-2021:2854
-
Red Hat OpenShift Container Platform 3.11 jenkins 2.289.1.1624365627-1.el7fixed: vendor fix “Jetty users should create temp folders outside the normal /tmp structure, and ensure that their permissions are set so as not to be accessible by an attacker.” RHSA-2021:2517
-
Red Hat OpenShift Container Platform 4.5 jenkins 2.277.3.1623846768-1.el7fixed: vendor fix “Jetty users should create temp folders outside the normal /tmp structure, and ensure that their permissions are set so as not to be accessible by an attacker.” RHSA-2021:2431
show 2 moreshow fewer
-
Red Hat OpenShift Container Platform 4.6 jenkins 2.277.3.1623853726-1.el8fixed: vendor fix “Jetty users should create temp folders outside the normal /tmp structure, and ensure that their permissions are set so as not to be accessible by an attacker.” RHSA-2021:2499
-
Red Hat Decision Manager 7 jetty Red Hat OpenShift Container Platform 3.11 python-requests 2.19.1-5.el7, python2-requests 2.19.1-5.el7, prometheus 3.11.462-1.git.99aae51.el7, jenkins-2-plugins 3.11.1624366838-1.el7, openshift-kuryr 3.11.462-1.git.c33a657.el7, atomic-openshift 3.11.462-1.git.0.e7d0362.el7, +37 more Red Hat OpenShift Container Platform 4.5 jenkins-2-plugins 4.5.1623326336-1.el7, openshift 4.5.0-202106011407.p0.git.d8ef5ad.el7, openshift 4.5.0-202106011407.p0.git.d8ef5ad.el8, openshift-kuryr 4.5.0-202106011407.p0.git.75cc301.el8, openshift-ansible 4.5.0-202106011407.p0.git.83db419.el7, openshift-clients 4.5.0-202106011407.p0.git.297a4ac.el7, +12 more Red Hat OpenShift Container Platform 4.6 cri-o 1.19.2-6.rhaos4.6.git686e6d9.el7, cri-o 1.19.2-6.rhaos4.6.git686e6d9.el8, openshift-kuryr 4.6.0-202106181055.p0.git.7feb5bd.el8, openshift-clients 4.6.0-202106160917.p0.git.99556b6.el7, openshift-clients 4.6.0-202106160917.p0.git.99556b6.el8, openshift-kuryr-cni 4.6.0-202106181055.p0.git.7feb5bd.el8, +5 more Red Hat Process Automation 7 jetty Red Hat Single Sign-On 7 jettynot 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
Exploit prediction
4.35% chance of exploitation in the next 30 days, higher than 91% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- bugs.eclipse.org https://bugs.eclipse.org/bugs/show_bug.cgi?id=567921 referenced PoC, tagged "exploit" by a source, unverified
- github.com https://github.com/eclipse/jetty.project/security/advisories/GHSA-g3wg-6mcf-8jj6#advisory-comment-63053 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.0 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 4.4 | AV:L/AC:M/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 7.0 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.eclipse.jetty:jetty-webapp | <9.4.33.v20201020 >=10.0.0.beta1, <10.0.0.beta3 >=11.0.0.beta1, <11.0.0.beta3 |
9.4.33.v20201020 10.0.0.beta3 11.0.0.beta3 |
| maven | org.mortbay.jetty:jetty-webapp | <9.4.33 >=10.0.0.beta1, <10.0.0.beta3 >=11.0.0.beta1, <11.0.0.beta3 |
9.4.33 10.0.0.beta3 11.0.0.beta3 |
Affected products
- The Eclipse Foundation Eclipse Jetty
Classification
References
-
bugs.eclipse.org
/bugs/show_bug.cgi?id=567921
exploit, patch, vendor-advisory
-
github.com
/github/codeql/pull/4473
web
-
oracle.com
//security-alerts/cpujul2021.html
patch, third-party-advisory
-
oracle.com
/security-alerts/cpuApr2021.html
patch, third-party-advisory
-
oracle.com
/security-alerts/cpujan2021.html
patch, third-party-advisory
-
oracle.com
/security-alerts/cpuoct2021.html
patch, third-party-advisory
-
github.com
/eclipse/jetty.project/security/advisories/GHSA-g3wg-6mcf-8jj6#advisory-comment-63053
web, exploit, mitigation, third-party-advisory
-
debian.org
/security/2021/dsa-4949
vendor-advisory
-
lists.apache.org
/thread.html/re08b03cd1754b32f342664eead415af48092c630c8e3e0deba862a26%40%3Ccommits.shiro.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r0e9efe032cc65433251ee6470c66c334d4e7db9101e24cf91a3961f2%40%3Ccommits.directory.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r5494fdaf4a0a42a15c49841ba7ae577d466d09239ee1050458da0f29%40%3Cjira.kafka.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/ra55e04d5a73afcb8383f4386e2b26832c6e3972e53827021ab885943%40%3Ccommits.shiro.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/rd58b60ab2e49ebf21022e59e280feb25899ff785c88f31fe314aa5b9%40%3Ccommits.shiro.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r93d5e81e879120d8d87925dbdd4045cb3afa9b066f4370f60b626ce3%40%3Ccommits.druid.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r59e0878013d329dcc481eeafebdb0ee445b1e2852d0c4827b1ddaff2%40%3Cissues.beam.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/raf9c581b793c30ff8f55f2415c7bd337eb69775aae607bf9ed1b16fb%40%3Cdev.zookeeper.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/rafb023a7c61180a1027819678eb2068b0b60cd5c2559cb8490e26c81%40%3Cissues.zookeeper.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r1ed79516bd6d248ea9f0e704dbfd7de740d5a75b71c7be8699fec824%40%3Cnotifications.zookeeper.apache.org
mailing-list
-
lists.apache.org
/thread.html/r4f29fb24639ebc5d15fc477656ebc2b3aa00fcfbe197000009c26b40%40%3Cissues.zookeeper.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r568d354961fa88f206dc345411fb11d245c6dc1a8da3e80187fc6706%40%3Cdev.zookeeper.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r0df8fe10fc36028cf6d0381ab66510917d0d68bc5ef7042001d03830%40%3Cdev.zookeeper.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r100c5c7586a23a19fdb54d8a32e17cd0944bdaa46277b35c397056f6%40%3Cnotifications.zookeeper.apache.org
mailing-list
-
lists.apache.org
/thread.html/r2d17b2a4803096ba427f3575599ea29b55f5cf9dbc1f12ba044cae1a%40%3Cnotifications.zookeeper.apache.org
mailing-list
-
lists.apache.org
/thread.html/rde782fd8e133f7e04e50c8aaa4774df524367764eb5b85bf60d96747%40%3Cnotifications.zookeeper.apache.org
mailing-list
-
lists.apache.org
/thread.html/re5706141ca397587f7ee0f500a39ccc590a41f802fc125fc135cb92f%40%3Cnotifications.zookeeper.apache.org
mailing-list
-
lists.apache.org
/thread.html/r18b6f10d9939419bae9c225d5058c97533cb376c9d6d0a0733ddd48d%40%3Cnotifications.zookeeper.apache.org
mailing-list
-
lists.apache.org
/thread.html/rad255c736fad46135f1339408cb0147d0671e45c376c3be85ceeec1a%40%3Cnotifications.zookeeper.apache.org
mailing-list
-
lists.apache.org
/thread.html/r66e99d973fd79ddbcb3fbdb24f4767fe9b911f5b0abb05d7b6f65801%40%3Ccommits.zookeeper.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r1dbb87c9255ecefadd8de514fa1d35c1d493c0527d7672cf40505d04%40%3Ccommits.zookeeper.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r3a763de620be72b6d74f46ec4bf39c9f35f8a0b39993212c0ac778ec%40%3Ccommits.zookeeper.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/rdbf1cd0ab330c032f3a09b453cb6405dccc905ad53765323bddab957%40%3Cissues.zookeeper.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/rfe6ba83d14545e982400dea89e68b10113cb5202a3dcb558ce64842d%40%3Cissues.zookeeper.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/ra1f19625cc67ac1b459c558f2ea5647d71ce51c6fe4f4cb03baec849%40%3Cnotifications.zookeeper.apache.org
mailing-list
-
lists.apache.org
/thread.html/rb8c007f87dc57731a7b9a3b05364530422535b7e0bc6a0c5b68d4d55%40%3Cdev.felix.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/ra5b7313d8cc9411db6790adfba33f2cf0665cb77adb7b02043c95867%40%3Cdev.felix.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r07525dc424ed69b3919618599e762f9ac03791490ca9d724f2241442%40%3Cdev.felix.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r7da5ae60d7973e8894cfe92f49ecb5b47417eefab4c77cc87514d3cf%40%3Cdev.felix.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/rc2e24756d28580eeac811c5c6a12012c9f424b6e5bffb89f98ee3d03%40%3Cdev.felix.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/rc4b972ea10c5a65c6a88a6e233778718ab9af7f484affdd5e5de0cff%40%3Ccommits.felix.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r0f5e9b93133ef3aaf31484bc3e15cc4b85f8af0fe4de2dacd9379d72%40%3Cdev.felix.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r874688141495df766e62be095f1dfb0bf4a24ca0340d8e0215c03fab%40%3Cissues.zookeeper.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r09b345099b4f88d2bed7f195a96145849243fb4e53661aa3bcf4c176%40%3Cissues.zookeeper.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/rbc5a8d7a0a13bc8152d427a7e9097cdeb139c6cfe111b2f00f26d16b%40%3Cissues.zookeeper.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r1d45051310b11c6d6476f20d71b08ea97cb76846cbf61d196bac1c3f%40%3Cdev.zookeeper.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/rde11c433675143d8d27551c3d9e821fe1955f1551a518033d3716553%40%3Cdev.zookeeper.apache.org%3E
mailing-list
-
github.com
/eclipse/jetty.project/security/advisories/GHSA-g3wg-6mcf-8jj6
web
-
nvd.nist.gov
/vuln/detail/CVE-2020-27216
advisory
-
github.com
/eclipse/jetty.project/issues/5451
web
-
lists.apache.org
/thread.html/raa9c370ab42d737e93bc1795bb6a2187d7c60210cd5e3b3ce8f3c484@%3Cissues.beam.apache.org%3E
web
-
lists.apache.org
/thread.html/rad255c736fad46135f1339408cb0147d0671e45c376c3be85ceeec1a@%3Cnotifications.zookeeper.apache.org%3
web
-
lists.apache.org
/thread.html/rae15d73cabef55bad148e4e6449b05da95646a2a8db3fc938e858dff@%3Cissues.beam.apache.org%3E
web
-
lists.apache.org
/thread.html/raf9c581b793c30ff8f55f2415c7bd337eb69775aae607bf9ed1b16fb@%3Cdev.zookeeper.apache.org%3E
web
-
lists.apache.org
/thread.html/rafb023a7c61180a1027819678eb2068b0b60cd5c2559cb8490e26c81@%3Cissues.zookeeper.apache.org%3E
web
-
lists.apache.org
/thread.html/rb077d35f2940191daeefca0d6449cddb2e9d06bcf8f5af4da2df3ca2@%3Cissues.beam.apache.org%3E
web
-
lists.apache.org
/thread.html/rb5f2558ea2ac63633dfb04db1e8a6ea6bb1a2b8614899095e16c6233@%3Cissues.beam.apache.org%3E
web
-
lists.apache.org
/thread.html/rb69b1d7008a4b3de5ce5867e41a455693907026bc70ead06867aa323@%3Cissues.beam.apache.org%3E
web
-
lists.apache.org
/thread.html/rb7e159636b26156f6ef2b2a1a79b3ec9a026923b5456713e68f7c18e@%3Cissues.beam.apache.org%3E
web
-
lists.apache.org
/thread.html/rb81a018f83fe02c95a2138a7bb4f1e1677bd7e1fc1e7024280c2292d@%3Cissues.beam.apache.org%3E
web
-
lists.apache.org
/thread.html/rb8ad3745cb94c60d44cc369aff436eaf03dbc93112cefc86a2ed53ba@%3Cissues.beam.apache.org%3E
web
-
lists.apache.org
/thread.html/rb8c007f87dc57731a7b9a3b05364530422535b7e0bc6a0c5b68d4d55@%3Cdev.felix.apache.org%3E
web
Sources
- CVE List CVE-2020-27216
- GitHub Advisory GHSA-g3wg-6mcf-8jj6
- NVD CVE-2020-27216
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.