Descrizione

Issue summary: Verifying a maliciously crafted CMS or PKCS#7 SignedData message with CRL checking enabled may consume excessive CPU time, growing with the square of the message size. Impact summary: An attacker who can submit a CMS or PKCS#7 SignedData message to an application that verifies it with CRL checking enabled can occupy a CPU core for seconds to minutes, causing Denial of Service. Applications that leave CRL checking disabled are not affected. CWE: CWE-407: Inefficient Algorithmic Complexity Description: With CRL checking enabled, OpenSSL compares each CRL distribution point of a certificate against the issuing distribution point of every candidate CRL. For a nameRelativeToCRLIssuer distribution point, the full name is the CRL issuer name with the relative name appended. Since the change that deferred this computation, crl_crldp_check() rebuilds that full name for each candidate CRL and frees it again. CMS_verify() and PKCS7_verify() take both the distribution points and the candidate CRLs from the message, and this scoring runs before any signature is checked. An application is exposed only if it sets X509_V_FLAG_CRL_CHECK on the store and does not pass CMS_NOCRL or PKCS7_NOCRL; CRL checking is off by default. In TLS the CRLs come from the local store, so a peer controls only the distribution point count. The cost grows with the product of the distribution point count, the CRL count and the issuer name length, all chosen by the message author; a few hundred kilobytes can occupy a CPU core for tens of seconds. Verification still fails as it should, with no crash, no incorrect result and no memory growth. Requiring CRL checking is what limits the severity. FIPS impact: no The affected code is outside the FIPS module boundary.

Testo originale del record CVE (in inglese).

Come correggere

Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.5, EPSS 0.4% (percentile 30).

Versioni da aggiornare

  • OpenSSL OpenSSL: vulnerabili le versioni dalla 4.1.0 precedenti alla 4.1.1 → aggiornare alla 4.1.1 o successiva.
  • OpenSSL OpenSSL: vulnerabili le versioni dalla 4.0.0 precedenti alla 4.0.4 → aggiornare alla 4.0.4 o successiva.
  • OpenSSL OpenSSL: vulnerabili le versioni dalla 3.5.0 precedenti alla 3.5.10 → aggiornare alla 3.5.10 o successiva.

Mitigazioni temporanee

Da applicare solo se non è possibile aggiornare subito:

  • Applicare rate limiting e limiti sulle risorse a monte del servizio e monitorarne la disponibilità.

Verifica

  1. Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
  2. Confrontare la versione installata con quelle indicate sopra.
  3. Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
  4. Ripetere la scansione per confermare la correzione.

Configurazioni interessate

VendorProdottoVersioni vulnerabiliCorretta in
OpenSSL OpenSSL ≥ 4.1.0 < 4.1.1 4.1.1
OpenSSL OpenSSL ≥ 4.0.0 < 4.0.4 4.0.4
OpenSSL OpenSSL ≥ 3.5.0 < 3.5.10 3.5.10

Riferimenti