QID 980360

QID 980360: Java (maven) Security Update for org.eclipse.jetty:jetty-server (GHSA-m6cp-vxjx-65j6)

Security update has been released for org.eclipse.jetty:jetty-server to fix the vulnerability.

Note: The preceding description block is extracted directly from the security advisory. Using automation, we have attempted to clean and format it as much as possible without introducing additional issues.

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.

  • CVSS V3 rated as Medium - 3.5 severity.
  • CVSS V2 rated as Medium - 3.6 severity.
  • Solution
    Customers are advised to refer to GHSA-m6cp-vxjx-65j6 for updates pertaining to this vulnerability.Workaround:
    The application should catch all Throwables within their `SessionListener#sessionDestroyed()` implementations.
    Vendor References

    CVEs related to QID 980360

    Software Advisories
    Advisory ID Software Component Link
    GHSA-m6cp-vxjx-65j6 org.eclipse.jetty:jetty-server URL Logo github.com/advisories/GHSA-m6cp-vxjx-65j6