« Volver al listado

CVE-2026-71884

Estado: Pendiente de análisisAlta (8.2)—

En Bouncy Castle para Java LTS anterior a 2.73.13, el cifrador de paquetes CTR nativo de una sola pasada no comprobaba que la longitud de entrada solicitada se ajustara al espacio de contador que dejaba la IV. En modo CTR, la IV y el contador de bloques comparten un bloque de 16 bytes, por lo que una IV de 13 a 15 bytes deja un contador de solo 1 a 3 bytes, direccionando respectivamente 256, 65536 o 16777216 bloques.

Leer descripción completaMostrar menos

Dado una entrada más larga, el contador se desbordaba y el flujo de claves se repetía desde el principio del mismo paquete, y la llamada devolvía entonces la longitud de entrada completa como si cada byte hubiera sido transformado correctamente. Dos segmentos del mensaje fueron por lo tanto cifrados bajo el mismo flujo de claves, por lo que sus textos planos pueden recuperarse del texto cifrado solo, sin la clave, mientras que el llamador no vio ni una excepción ni una longitud corta para indicarlo. La implementación de transmisión valida al iniciar y de nuevo durante el procesamiento, y el AESCTRPacketCipher portable rechaza tales solicitudes con "Counter in CTR/SIC mode out of range.", pero la ruta nativa de una sola pasada tiene un único punto de entrada y no realizó validación del rango del contador allí. Ahora realiza un control previo del rango de contador derivado de la IV y rechaza una solicitud demasiado larga antes de que se escriba ninguna salida, por lo que la operación es atómica en caso de fallo y nunca reporta éxito para bytes que no transformó correctamente. Un contador de cuatro bytes o más no puede agotarse por una longitud int de Java y no se ve afectado, al igual que una IV de 16 bytes completa, donde el rango del contador es responsabilidad del llamador. Bouncy Castle para Java (bcprov) no se ve afectado, ya que no distribuye implementaciones nativas.

Traducción automática del texto original de NVD (en inglés).

CVSS

Probabilidad de explotación (EPSS)

EPSS (Exploit Prediction Scoring System, de FIRST) estima la probabilidad de que una vulnerabilidad sea explotada en 30 días. Complementa a CVSS (impacto) y a CISA KEV (explotación confirmada).

🎯 Técnicas ATT&CK

Cómo se explota esta vulnerabilidad y qué consigue el atacante, en el lenguaje de MITRE ATT&CK.

Vulnerabilidad en librería criptográfica remota (AV:N) que permite lectura de datos cifrados sin clave al reutilizar keystream en CTR mode; manipulación de datos debido a falsa validación de operación completada.

Inferido por nuestro agente de análisis a partir de la descripción oficial, el vector CVSS y la CWE, y comprobado por un supervisor. Puede contener errores.

🛡️ Mitigaciones ATT&CK que cubren estas técnicas

Tecnologías afectadas (1)

⚠ Inferidas por IA a partir de la descripción — NVD aún no ha analizado esta CVE; no son CPE verificados.

CWE

Referencias

JSON original (NVD)

Mostrar
{
  "id": "CVE-2026-71884",
  "cveTags": [],
  "metrics": {
    "cvssMetricV40": [
      {
        "type": "Secondary",
        "source": "91579145-5d7b-4cc5-b925-a0262ff19630",
        "cvssData": {
          "Safety": "NOT_DEFINED",
          "version": "4.0",
          "Recovery": "NOT_DEFINED",
          "baseScore": 8.2,
          "Automatable": "NOT_DEFINED",
          "attackVector": "NETWORK",
          "baseSeverity": "HIGH",
          "valueDensity": "NOT_DEFINED",
          "vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:Amber",
          "exploitMaturity": "NOT_DEFINED",
          "providerUrgency": "AMBER",
          "userInteraction": "NONE",
          "attackComplexity": "LOW",
          "attackRequirements": "PRESENT",
          "privilegesRequired": "NONE",
          "subIntegrityImpact": "NONE",
          "vulnIntegrityImpact": "NONE",
          "integrityRequirement": "NOT_DEFINED",
          "modifiedAttackVector": "NOT_DEFINED",
          "subAvailabilityImpact": "NONE",
          "vulnAvailabilityImpact": "NONE",
          "availabilityRequirement": "NOT_DEFINED",
          "modifiedUserInteraction": "NOT_DEFINED",
          "modifiedAttackComplexity": "NOT_DEFINED",
          "subConfidentialityImpact": "NONE",
          "vulnConfidentialityImpact": "HIGH",
          "confidentialityRequirement": "NOT_DEFINED",
          "modifiedAttackRequirements": "NOT_DEFINED",
          "modifiedPrivilegesRequired": "NOT_DEFINED",
          "modifiedSubIntegrityImpact": "NOT_DEFINED",
          "modifiedVulnIntegrityImpact": "NOT_DEFINED",
          "vulnerabilityResponseEffort": "NOT_DEFINED",
          "modifiedSubAvailabilityImpact": "NOT_DEFINED",
          "modifiedVulnAvailabilityImpact": "NOT_DEFINED",
          "modifiedSubConfidentialityImpact": "NOT_DEFINED",
          "modifiedVulnConfidentialityImpact": "NOT_DEFINED"
        }
      }
    ]
  },
  "affected": [
    {
      "source": "91579145-5d7b-4cc5-b925-a0262ff19630",
      "affectedData": [
        {
          "repo": "https://github.com/bcgit/bc-lts-java",
          "vendor": "Legion of the Bouncy Castle Inc.",
          "modules": [
            "core"
          ],
          "product": "BC-LTS-JAVA",
          "versions": [
            {
              "status": "affected",
              "version": "2.73.4",
              "lessThan": "2.73.13",
              "versionType": "maven"
            }
          ],
          "platforms": [
            "x86",
            "x86-64"
          ],
          "packageURL": "pkg:maven/org.bouncycastle/bcprov-lts8on",
          "packageName": "bcprov-lts8on",
          "programFiles": [
            "ctr_pc.c"
          ],
          "collectionURL": "https://www.bouncycastle.org/download/bouncy-castle-java-lts/",
          "defaultStatus": "unaffected"
        }
      ]
    }
  ],
  "published": "2026-10-09T10:16:38.260",
  "references": [
    {
      "url": "https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902026%E2%80%9071884",
      "source": "91579145-5d7b-4cc5-b925-a0262ff19630"
    }
  ],
  "vulnStatus": "Awaiting Analysis",
  "weaknesses": [
    {
      "type": "Secondary",
      "source": "91579145-5d7b-4cc5-b925-a0262ff19630",
      "description": [
        {
          "lang": "en",
          "value": "CWE-323"
        }
      ]
    }
  ],
  "descriptions": [
    {
      "lang": "en",
      "value": "In Bouncy Castle for Java LTS before 2.73.13, the native one-shot CTR packet cipher did not check that the requested input length fitted the counter space the IV left. In CTR mode the IV and the block counter share one 16-byte block, so an IV of 13 to 15 bytes leaves a counter of only 1 to 3 bytes, addressing 256, 65536 or 16777216 blocks respectively. Given a longer input the counter wrapped and the keystream repeated from the start of the same packet, and the call then returned the full input length as though every byte had been correctly transformed. Two segments of the message were therefore encrypted under the same keystream, so their plaintexts can be recovered from the ciphertext alone, without the key, while the caller saw neither an exception nor a short length to indicate it. The streaming implementation validates at init and again while processing, and the portable AESCTRPacketCipher rejects such a request with \"Counter in CTR/SIC mode out of range.\", but the native one-shot path has a single entry point and performed no counter-range validation there. It now preflights the IV-derived counter range and rejects an over-long request before any output is written, so the operation is failure-atomic and never reports success for bytes it did not correctly transform. A counter of four bytes or more cannot be exhausted by a Java int length and is unaffected, as is a full 16-byte IV, where the counter range is the caller's responsibility. Bouncy Castle for Java (bcprov) is not affected, as it ships no native implementations."
    }
  ],
  "lastModified": "2026-10-09T16:33:39.007",
  "sourceIdentifier": "91579145-5d7b-4cc5-b925-a0262ff19630"
}