{"id":"CVE-2021-34428","aliases":["CVE-2021-34428","GHSA-m6cp-vxjx-65j6"],"related":[],"kind":"vulnerability","state":"published","title":"SessionListener can prevent a session from being invalidated breaking logout","summary":"For Eclipse Jetty versions <= 9.4.40, <= 10.0.2, <= 11.0.2, if an exception is thrown from the SessionListener#sessionDestroyed() method, then the session ID is not invalidated in the session ID manager. On deployments with clustered sessions and multiple contexts this can result in a session not being invalidated. This can result in an application used on a shared computer being left logged in.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"For Eclipse Jetty versions <= 9.4.40, <= 10.0.2, <= 11.0.2, if an exception is thrown from the SessionListener#sessionDestroyed() method, then the session ID is not invalidated in the session ID manager. On deployments with clustered sessions and multiple contexts this can result in a session not being invalidated. This can result in an application used on a shared computer being left logged in.","source":"cvelist"},{"lang":"en","text":"### Impact\nIf an exception is thrown from the `SessionListener#sessionDestroyed()` method, then the session ID is not invalidated in the session ID manager.   On deployments with clustered sessions and multiple contexts this can result in a session not being invalidated.  This can result in an application used on a shared computer being left logged in.\n\nThere is no known path for an attacker to induce such an exception to be thrown, thus they must rely on an application to throw such an exception.    The OP has also identified that during the call to `sessionDestroyed`, the `getLastAccessedTime()` throws an `IllegalStateException`, which potentially contrary to the servlet spec, so applications calling this method may always throw and fail to log out.  If such an application was only tested on a non clustered test environment, then it may be deployed on a clustered environment with multiple contexts and fail to log out.\n\n### Workarounds\nThe application should catch all Throwables within their `SessionListener#sessionDestroyed()` implementations.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Para Eclipse Jetty versiones anteriores a 9.4.40 incluyéndola, versiones anteriores a 10.0.2 incluyéndola, versiones anteriores a 11.0.2 incluyéndola, si es lanzada una excepción desde el método SessionListener#sessionDestroyed(), el ID de sesión no es invalidado en el administrador de ID de sesión. En despliegues con sesiones agrupadas y múltiples contextos esto puede resultar en que una sesión no sea invalidada. Esto puede resultar en una aplicación usada en un ordenador compartido se quede con la sesión iniciada","source":"nvd"}],"published":"2021-06-22T14:45:11.000Z","modified":"2026-07-08T06:29:15.047Z","severity":{"scorer":"eclipse","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:P/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N","score":2.9,"rating":"LOW"},"severities":[{"scorer":"eclipse","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:P/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N","score":2.9,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","score":3.5,"rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","score":3.5,"rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:L/AC:L/Au:N/C:P/I:P/A:N","score":3.6,"rating":"LOW"}],"cwes":["CWE-613"],"affected":[{"ranges":[{"type":"custom","introduced":"9.0.0","fixed":"unspecified","status":"affected"},{"type":"custom","introduced":"unspecified","lastAffected":"9.4.40","status":"affected"},{"type":"custom","introduced":"10.0.0","fixed":"unspecified","status":"affected"},{"type":"custom","introduced":"unspecified","lastAffected":"10.0.2","status":"affected"},{"type":"custom","introduced":"11.0.0","fixed":"unspecified","status":"affected"},{"type":"custom","introduced":"unspecified","lastAffected":"11.0.2","status":"affected"}],"vendor":"The Eclipse Foundation","product":"Eclipse Jetty","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"9.4.41"}],"ecosystem":"Maven","package":"org.eclipse.jetty:jetty-server","purl":"pkg:maven/org.eclipse.jetty/jetty-server","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"10.0.0","status":"affected","fixed":"10.0.3"}],"ecosystem":"Maven","package":"org.eclipse.jetty:jetty-server","purl":"pkg:maven/org.eclipse.jetty/jetty-server","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"11.0.0","status":"affected","fixed":"11.0.3"}],"ecosystem":"Maven","package":"org.eclipse.jetty:jetty-server","purl":"pkg:maven/org.eclipse.jetty/jetty-server","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"9.4.40"},{"status":"affected","introduced":"10.0.0","lastAffected":"10.0.2"},{"status":"affected","introduced":"11.0.0","lastAffected":"11.0.2"}],"vendor":"eclipse","product":"jetty","cpe":"cpe:2.3:a:eclipse:jetty:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"active_iq_unified_manager","cpe":"cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:linux:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"11.0","lastAffected":"11.70.1"}],"vendor":"netapp","product":"e-series_santricity_os_controller","cpe":"cpe:2.3:a:netapp:e-series_santricity_os_controller:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"e-series_santricity_web_services","cpe":"cpe:2.3:a:netapp:e-series_santricity_web_services:-:*:*:*:*:web_services_proxy:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"element_plug-in_for_vcenter_server","cpe":"cpe:2.3:a:netapp:element_plug-in_for_vcenter_server:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"santricity_cloud_connector","cpe":"cpe:2.3:a:netapp:santricity_cloud_connector:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"snap_creator_framework","cpe":"cpe:2.3:a:netapp:snap_creator_framework:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"snapmanager","cpe":"cpe:2.3:a:netapp:snapmanager:-:*:*:*:*:sap:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"21.0.2"}],"vendor":"oracle","product":"autovue_for_agile_product_lifecycle_management","cpe":"cpe:2.3:a:oracle:autovue_for_agile_product_lifecycle_management:21.0.2:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"8.2.2"}],"vendor":"oracle","product":"communications_element_manager","cpe":"cpe:2.3:a:oracle:communications_element_manager:8.2.2:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"7.0"}],"vendor":"oracle","product":"communications_services_gatekeeper","cpe":"cpe:2.3:a:oracle:communications_services_gatekeeper:7.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"8.0.0.0","lastAffected":"8.2.4.0"}],"vendor":"oracle","product":"communications_session_report_manager","cpe":"cpe:2.3:a:oracle:communications_session_report_manager:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"8.0.0","lastAffected":"8.2.4.0"}],"vendor":"oracle","product":"communications_session_route_manager","cpe":"cpe:2.3:a:oracle:communications_session_route_manager:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"21.3"}],"vendor":"oracle","product":"rest_data_services","cpe":"cpe:2.3:a:oracle:rest_data_services:*:*:*:*:-:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","lastAffected":"21.9"}],"vendor":"oracle","product":"siebel_core_-_automation","cpe":"cpe:2.3:a:oracle:siebel_core_-_automation:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/eclipse/jetty.project/security/advisories/GHSA-m6cp-vxjx-65j6","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.apache.org/thread.html/ref1c161a1621504e673f9197b49e6efe5a33ce3f0e6d8f1f804fc695%40%3Cjira.kafka.apache.org%3E","tags":["mailing-list","x-refsource-mlist","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.debian.org/security/2021/dsa-4949","tags":["third-party-advisory","vendor-advisory","web","x-refsource-debian","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.apache.org/thread.html/rf36f1114e84a3379b20587063686148e2d5a39abc0b8a66ff2a9087a%40%3Cissues.zookeeper.apache.org%3E","tags":["mailing-list","x-refsource-mlist","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.apache.org/thread.html/rddbb4f8d5db23265bb63d14ef4b3723b438abc1589f877db11d35450%40%3Cissues.zookeeper.apache.org%3E","tags":["mailing-list","x-refsource-mlist","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.apache.org/thread.html/r67c4f90658fde875521c949448c54c98517beecdc7f618f902c620ec%40%3Cissues.zookeeper.apache.org%3E","tags":["mailing-list","x-refsource-mlist","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.oracle.com/security-alerts/cpuoct2021.html","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.apache.org/thread.html/r8a1a332899a1f92c8118b0895b144b27a78e3f25b9d58a34dd5eb084%40%3Cnotifications.zookeeper.apache.org%3E","tags":["x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.apache.org/thread.html/rbefa055282d52d6b58d29a79fbb0be65ab0a38d25f00bd29eaf5e6fd%40%3Cnotifications.zookeeper.apache.org%3E","tags":["x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20210813-0003/","tags":["third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.oracle.com/security-alerts/cpujan2022.html","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.oracle.com/security-alerts/cpuapr2022.html","tags":["not-applicable","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-34428","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/eclipse/jetty.project","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.apache.org/thread.html/r67c4f90658fde875521c949448c54c98517beecdc7f618f902c620ec@%3Cissues.zookeeper.apache.org%3E","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.apache.org/thread.html/r8a1a332899a1f92c8118b0895b144b27a78e3f25b9d58a34dd5eb084@%3Cnotifications.zookeeper.apache.org%3E","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.apache.org/thread.html/rbefa055282d52d6b58d29a79fbb0be65ab0a38d25f00bd29eaf5e6fd@%3Cnotifications.zookeeper.apache.org%3E","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.apache.org/thread.html/rddbb4f8d5db23265bb63d14ef4b3723b438abc1589f877db11d35450@%3Cissues.zookeeper.apache.org%3E","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.apache.org/thread.html/ref1c161a1621504e673f9197b49e6efe5a33ce3f0e6d8f1f804fc695@%3Cjira.kafka.apache.org%3E","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.apache.org/thread.html/rf36f1114e84a3379b20587063686148e2d5a39abc0b8a66ff2a9087a@%3Cissues.zookeeper.apache.org%3E","tags":["web"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20210813-0003","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"eclipse","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-34428","url":"https://www.cve.org/CVERecord?id=CVE-2021-34428","licence":"CVE Terms of Use","modified":"2024-08-04T00:12:50.169Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-m6cp-vxjx-65j6","url":"https://github.com/advisories/GHSA-m6cp-vxjx-65j6","licence":"CC-BY-4.0","modified":"2026-07-08T06:29:15.047Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-34428","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-34428","licence":"Public domain","modified":"2026-06-17T03:55:50.610Z"}],"updatedAt":"2026-11-25T22:58:02.109Z","epss":{"score":0.00955,"percentile":0.62425,"date":"2026-12-01T12:00:22.000Z"}}