CVE-2021-34428
JSON

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 packageVersionsReported by
The Eclipse Foundation Eclipse Jettyfrom 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.2CVE 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.3GitHub Advisory Database
eclipse jettyup to 9.4.40, from 10.0.0 up to 10.0.2, from 11.0.0 up to 11.0.2NVD
debian debian_linux10.0NVD
netapp active_iq_unified_managerNot specifiedNVD
netapp e-series_santricity_os_controllerfrom 11.0 up to 11.70.1NVD
netapp e-series_santricity_web_servicesNot specifiedNVD
netapp element_plug-in_for_vcenter_serverNot specifiedNVD
netapp santricity_cloud_connectorNot specifiedNVD
netapp snap_creator_frameworkNot specifiedNVD
netapp snapmanagerNot specifiedNVD
oracle autovue_for_agile_product_lifecycle_management21.0.2NVD

All scores

eclipse2.9low CVSS:3.1CVSS:3.1/AV:P/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
GitHub3.5low CVSS:3.1CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
NVD3.5low CVSS:3.1CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
NVD3.6low CVSS:2.0AV: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

https://github.com/eclipse/jetty.project/security/advisories/GHSA-m6cp-vxjx-65j6third-party-advisory, web
https://lists.apache.org/thread.html/ref1c161a1621504e673f9197b49e6efe5a33ce3f0e6d8f1f804fc695%40%3Cjira.kafka.apache.org%3Emailing-list
https://www.debian.org/security/2021/dsa-4949third-party-advisory, vendor-advisory, web
https://lists.apache.org/thread.html/rf36f1114e84a3379b20587063686148e2d5a39abc0b8a66ff2a9087a%40%3Cissues.zookeeper.apache.org%3Emailing-list
https://lists.apache.org/thread.html/rddbb4f8d5db23265bb63d14ef4b3723b438abc1589f877db11d35450%40%3Cissues.zookeeper.apache.org%3Emailing-list
https://lists.apache.org/thread.html/r67c4f90658fde875521c949448c54c98517beecdc7f618f902c620ec%40%3Cissues.zookeeper.apache.org%3Emailing-list
https://www.oracle.com/security-alerts/cpuoct2021.htmlpatch, third-party-advisory, web
https://lists.apache.org/thread.html/r8a1a332899a1f92c8118b0895b144b27a78e3f25b9d58a34dd5eb084%40%3Cnotifications.zookeeper.apache.org%3E
https://lists.apache.org/thread.html/rbefa055282d52d6b58d29a79fbb0be65ab0a38d25f00bd29eaf5e6fd%40%3Cnotifications.zookeeper.apache.org%3E
https://security.netapp.com/advisory/ntap-20210813-0003/third-party-advisory
https://www.oracle.com/security-alerts/cpujan2022.htmlpatch, third-party-advisory, web
https://www.oracle.com/security-alerts/cpuapr2022.htmlnot-applicable, third-party-advisory, web

Sources

SourceRecordLicence
CVE ListCVE-2021-34428 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-m6cp-vxjx-65j6 changed 2026-07-08CC-BY-4.0
NVDCVE-2021-34428 changed 2026-06-17Public domain