Am I affected?

This record states its affected versions in a form that can't be compared automatically.

1.16 and up affected
1.20.3 not affected
1.17.1.2 not affected
every other version: unknown

Description

Improper Certificate Validation vulnerability in Erlang OTP public_key (pubkey_ocsp module) allows OCSP designated-responder authorization bypass via missing signature verification.

The OCSP response validation in public_key:pkix_ocsp_validate/5 does not verify that a CA-designated responder certificate was cryptographically signed by the issuing CA. Instead, it only checks that the responder certificate's issuer name matches the CA's subject name and that the certificate has the OCSPSigning extended key usage. An attacker who can intercept or control OCSP responses can create a self-signed certificate with a matching issuer name and the OCSPSigning EKU, and use it to forge OCSP responses that mark revoked certificates as valid.

This affects SSL/TLS clients using OCSP stapling, which may accept connections to servers with revoked certificates, potentially transmitting sensitive data to compromised servers. Applications using the public_key:pkix_ocsp_validate/5 API directly are also affected, with impact depending on usage context.

This vulnerability is associated with program files lib/public_key/src/pubkey_ocsp.erl and program routines pubkey_ocsp:is_authorized_responder/3.

This issue affects OTP from OTP 27.0 before OTP 28.4.2 and OTP 27.3.4.10, corresponding to public_key from 1.16 before 1.20.3 and 1.17.1.2, and ssl from 11.2 before 11.5.4 and 11.2.12.7.

Weaknesses & attack patterns

Weakness

CWE-295 · Improper Certificate Validation in catalog → MITRE ↗

Attack patterns

CAPEC-459 · Creating a Rogue Certification Authority Certificate MITRE ↗

Affected — Erlang / public_key Repository ↗

1.16 and up affected
1.20.3 not affected
1.17.1.2 not affected
every other version: unknown
default status unknown
cpe cpe:2.3:a:erlang:erlang/otp:*:*:*:*:*:*:*:*
modules · source files · routines
modules pubkey_ocsp
source files src/pubkey_ocsp.erl
routines pubkey_ocsp:is_authorized_responder/3

Affected — Erlang / ssl Repository ↗

11.2 and up affected
11.5.4 not affected
11.2.12.7 not affected
every other version: unknown
default status unknown
cpe cpe:2.3:a:erlang:erlang/otp:*:*:*:*:*:*:*:*
modules · source files
modules ssl_stapling
source files src/ssl_stapling.erl

Affected — GitHub / erlang/otp Repository ↗

27.0 and up affected
28.4.2 not affected
27.3.4.10 not affected
601a012 and up affected
ac7ff52 not affected
49033a6 not affected
every other version: unknown
default status unknown
cpe cpe:2.3:a:erlang:erlang/otp:*:*:*:*:*:*:*:*
modules · source files · routines
modules pubkey_ocsp
source files lib/public_key/src/pubkey_ocsp.erl
routines pubkey_ocsp:is_authorized_responder/3

Workarounds

For SSL users:

  • Do not enable OCSP validation setting (current default is {stapling, no_staple})
  • Use CRL-based revocation checking by setting the {crl_check, true} SSL option instead

For applications using public_key:pkix_ocsp_validate/5 directly:

  • Pass {is_trusted_responder_fun, Fun} option with a function that validates trusted responder certificates
  • Restrict OCSP responder access to trusted endpoints via network controls (only applicable if you control the OCSP infrastructure)

Configurations

SSL/TLS must be configured with OCSP stapling enabled (e.g., {stapling, staple}), or the application must call public_key:pkix_ocsp_validate/5 directly. OCSP stapling is disabled by default ({stapling, no_staple}).

References

Credits

Igor Morgenstern / Aisle Research Finder
Jakub Witczak Remediation developer
Ingela Anderton Andin Remediation reviewer

CVSS breakdown

CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:L/SI:L/SA:N
« All CVEs