2.9low
SessionListener can prevent a session from being invalidated breaking logout
- Severity
- 2.9low CVSS:3.1 by eclipse
- Exploit likelihood
- 0.95% (higher than 62% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- eclipse
- Also known as
- GHSA-m6cp-vxjx-65j6
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| The Eclipse Foundation Eclipse Jetty | from 9.0.0 before unspecified, from unspecified up to 9.4.40, from 10.0.0 before unspecified, from unspecified up to 10.0.2, from 11.0.0 before unspecified, from unspecified up to 11.0.2 | CVE List |
| org.eclipse.jetty:jetty-server (Maven) | before 9.4.41, from 10.0.0 before 10.0.3, from 11.0.0 before 11.0.3 | GitHub Advisory Database |
| eclipse jetty | up to 9.4.40, from 10.0.0 up to 10.0.2, from 11.0.0 up to 11.0.2 | NVD |
| debian debian_linux | 10.0 | NVD |
| netapp active_iq_unified_manager | Not specified | NVD |
| netapp e-series_santricity_os_controller | from 11.0 up to 11.70.1 | NVD |
| netapp e-series_santricity_web_services | Not specified | NVD |
| netapp element_plug-in_for_vcenter_server | Not specified | NVD |
| netapp santricity_cloud_connector | Not specified | NVD |
| netapp snap_creator_framework | Not specified | NVD |
| netapp snapmanager | Not specified | NVD |
| oracle autovue_for_agile_product_lifecycle_management | 21.0.2 | NVD |
| oracle communications_element_manager | 8.2.2 | NVD |
| oracle communications_services_gatekeeper | 7.0 | NVD |
| oracle communications_session_report_manager | from 8.0.0.0 up to 8.2.4.0 | NVD |
| oracle communications_session_route_manager | from 8.0.0 up to 8.2.4.0 | NVD |
| oracle rest_data_services | before 21.3 | NVD |
| oracle siebel_core_-_automation | up to 21.9 | NVD |
All scores
| eclipse | 2.9low CVSS:3.1 | CVSS:3.1/AV:P/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N |
| GitHub | 3.5low CVSS:3.1 | CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| NVD | 3.5low CVSS:3.1 | CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| NVD | 3.6low CVSS:2.0 | AV:L/AC:L/Au:N/C:P/I:P/A:N |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
Impact
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.
There 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.
Workarounds
The application should catch all Throwables within their SessionListener#sessionDestroyed() implementations.
NVD (es)
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
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-34428 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-m6cp-vxjx-65j6 changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2021-34428 changed 2026-06-17 | Public domain |