CVE-2023-20866 Spring Session session ID can be logged to the standard output stream

Medium 6.5 Published Updated

Attackers with log access can steal session IDs from standard output when using HeaderHttpSessionIdResolver, enabling session hijacking.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-20866?

CVE-2023-20866 is a medium-severity vulnerability in Spring Session, published on 13 Apr 2023. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

In Spring Session version 3.0.0, the session id can be logged to the standard output stream. This vulnerability exposes sensitive information to those who have access to the application logs and can be used for session hijacking. Specifically, an application is vulnerable if it is using HeaderHttpSessionIdResolver.

Weakness: CWE-200

Which versions are affected by CVE-2023-20866?

2 open source packages ship an affected version, including org.springframework.session:spring-session-core. It affects 1 product.

PackageAffectedFixed in
org.springframework.session:spring-session-core MavenFrom 3.0.03.0.1
org.springframework.session:spring-session-core MavenFrom 3.0.03.0.1

Products include Vmware Spring Session.

How do I fix CVE-2023-20866?

Upgrade org.springframework.session:spring-session-core to 3.0.1 or later.

Is CVE-2023-20866 being exploited?

There is no known exploitation of CVE-2023-20866 in the wild and no public exploit code.

Sources

Also known as GHSA-r7qr-f43m-pxfr.

Is CVE-2023-20866 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free