bcjmail-jdk15to18 is vulnerable to Improper Certificate Validation
87
High Risk
The S/MIME signed-message validator in the mail module uses the signingTime value carried inside the CMS signed attributes as the reference date for PKIX certificate path validation. Because that attribute is asserted by the message signer and is not bound to a trusted time source, a signer can supply an arbitrary time so that an expired or revoked signing certificate is treated as valid. Signed messages then pass validation against certificates that should be rejected, so SignedMailValidator reports a trusted result for messages it should refuse. The fix makes a caller-provided validation date take precedence over the signer-asserted signingTime.
You are affected if you are using a version that falls within the vulnerable range and you use SignedMailValidator to verify S/MIME signed messages whose signingTime signed attribute is externally supplied by the message signer.
bcjmail-jdk15to18 is vulnerable to Improper Certificate Validation in versions 0.0.1 - 1.84.0.
Upgrade the org.bouncycastle:bcjmail-jdk15to18 library to the patch version, then set an explicit validation date on the PKIXParameters you pass to SignedMailValidator (for example the current time). Without a caller-supplied date the patched version still falls back to the signer-asserted signingTime.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant