JDK-8296343 : CPVE thrown on missing content-length in OCSP response
Type:Bug
Component:security-libs
Sub-Component:java.security
Affected Version:17
Priority:P3
Status:Closed
Resolution:Fixed
Submitted:2022-11-03
Updated:2024-02-13
Resolved:2023-01-23
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
A pull request was submitted for review.
URL: https://git.openjdk.org/jdk11u-dev/pull/1920
Date: 2023-05-31 16:56:07 +0000
31-05-2023
Fix Request (17u)
The patch fixes CertPathValidatorException taking place if OCSP response does not contain ContentLength field.
Original patch is applied cleanly.
Verification/regression (amd64/20.04 LTS): jdk_security including newly added test/jdk/sun/security/provider/certpath/OCSP/OCSPNoContentLength.java
[~clanger] please take a look
18-05-2023
A pull request was submitted for review.
URL: https://git.openjdk.org/jdk17u-dev/pull/1361
Date: 2023-05-18 15:59:18 +0000
A pull request was submitted for review.
URL: https://git.openjdk.org/jdk/pull/11917
Date: 2023-01-10 06:02:29 +0000
10-01-2023
contentLength is set to Integer.MAX_VALUE if it is missing in OCSP response. It causes EOFException to be thrown from IOUtils.readExactlyNBytes eventually causing CertPathValidatorException.