CVE-2023-20859: Insertion of Sensitive Information into Log Sourced from Failed Revocation of Tokens
Description
In Spring Vault, versions 3.0.x prior to 3.0.2 and versions 2.3.x prior to 2.3.3 and older versions, an application is vulnerable to insertion of sensitive information into a log file when it attempts to revoke a Vault batch token.
Specifically, an application is vulnerable when all of the following are true:
- The authentication mechanism creates Batch tokens.
- Usage of
LifecycleAwareSessionManager
in an imperative-only arrangement. LifecycleAwareSessionManager.destroy()
is called by the application or the application shutdown hook- The logging level for
LifecycleAwareSessionManager
ororg.springframework.vault.authentication
is set at least toWARN
…