CVE-2026-95663
Vulnerabilidad de expiración de sesión insuficiente en el componente Keycloak de Apache Camel.
Esta incidencia afecta a Apache Camel: desde la 4.16.0 hasta antes de la 4.18.5, y desde la 4.19.0 hasta antes de la 4.22.2.
Cuando la introspección de tokens está habilitada en KeycloakSecurityPolicy del camel-keycloak (useTokenIntrospection=true), el procesador de seguridad valida el token de acceso de una petición enviándolo al endpoint de introspección de tokens OAuth 2.0 de Keycloak, y acepta el token mientras la respuesta indique que está activo.
Leer descripción completaMostrar menos
El endpoint de introspección marca un token como inactivo una vez transcurrido su tiempo de expiración (exp), por lo que en esta ruta el indicador active es el que hace cumplir la caducidad del token. Los resultados de la introspección se almacenan en caché de forma predeterminada (introspectionCacheEnabled=true, introspectionCacheTtl=60 segundos), y ambas implementaciones de caché incluidas en el componente, ConcurrentMapTokenCache y CaffeineTokenCache, hacían caducar una entrada un tiempo fijo después de su inserción, sin limitar esa duración por la reclamación exp que la respuesta almacenada ya contenía. KeycloakSecurityProcessor, a su vez, comprobaba únicamente el indicador active del resultado, en todas las rutas que usan introspección, y nunca comparaba exp con la hora actual. Por tanto, una respuesta almacenada en caché poco antes de que el token caducara se servía a peticiones posteriores que llevaran el mismo token durante hasta el tiempo de vida configurado tras su expiración, y esas peticiones se admitían con los roles y permisos que tenía el token caducado, aunque la RFC 7662, que define la introspección de tokens, establece que una respuesta que contiene exp no debe almacenarse en caché más allá de ese momento.
El token de acceso lo proporciona el llamante con cada petición, normalmente como token bearer en la cabecera Authorization, por lo que quien posea un token que era válido instantes antes podría seguir usándolo después de su expiración, mientras viva la entrada en caché. La ventana está limitada por introspectionCacheTtl, que es de 60 segundos por defecto y de 300 a 600 segundos cuando se ha seguido la recomendación de la documentación para servicios internos, y solo se abre para un token que el mismo proceso de Camel introspeccionó y almacenó en caché mientras el token seguía activo. La incidencia no concede nada más allá de lo que el token ya contenía: no permite falsificar tokens ni escalar privilegios, y la introspección de tokens no está habilitada por defecto, por lo que la gravedad se evalúa como media. La ruta de verificación local de JWT, que se usa cuando la introspección está deshabilitada, no se ve afectada por esta incidencia.
Se recomienda a los usuarios actualizar a la versión 4.23.0, que corrige la incidencia. Si utilizan la serie 4.22.x, se sugiere actualizar a la 4.22.2. Si utilizan la serie 4.18.x, se sugiere actualizar a la 4.18.5. Las líneas 4.16.x, 4.17.x y 4.19.x a 4.21.x alcanzaron el fin de vida antes de que esta incidencia se resolviera y no recibirán corrección, por lo que las instalaciones que las usen deben migrar a una versión soportada. Para las instalaciones que no puedan actualizar de inmediato, establezca introspectionCacheEnabled=false en KeycloakSecurityPolicy, de modo que cada petición se compruebe contra el endpoint de introspección, que marca un token caducado como inactivo, a costa de una llamada de introspección por petición. Reducir introspectionCacheTtl solo acorta la ventana y no la cierra.
Traducción automática del texto original de NVD (en inglés).
Cronología
Elaborada con nuestros propios datos: NVD, CISA KEV y otros catálogos de explotación, FIRST EPSS, exploits públicos, prensa especializada y la cobertura de Orbitaley.
- Registro CVE publicado en NVD
- Primer exploit público
- Última modificación del registro en NVD
Exploits públicos
Hay código de explotación o plantillas de detección públicos. No es lo mismo que explotación activa confirmada (KEV), pero aumenta el riesgo: parchee con prioridad.
- Prueba de concepto en GitHub (no verificada) · Lista de pruebas de concepto en GitHub
⚠️ Las pruebas de concepto de GitHub no están verificadas: algunas son falsas o contienen malware. No las ejecute nunca fuera de un laboratorio aislado.
Técnicas ATT&CK
Cómo se explota esta vulnerabilidad y qué consigue el atacante, en el lenguaje de MITRE ATT&CK.
- Explotación
T1190Exploit Public-Facing Applicationinitial access90 % - Impacto principal
T1078Valid Accountsstealth · persistence · privilege escalation · initial access60 % - Impacto secundario
T1550.001Application Access Tokenlateral movement50 %
El texto indica que un token caducado sigue aceptado desde la caché de introspección hasta introspectionCacheTtl, con acceso remoto sin privilegios ni interacción (AV:N/PR:N/UI:N).
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)
Registro NVD
- Estado en NVD
- Analizada
- Publicada
- 26 oct 2026
- Última modificación
- 6 nov 2026
- Vector CVSS
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
- Debilidad (CWE)
- CWE-613
Referencias
- Aviso del fabricantecamel.apache.org/security/CVE-2026-95663.html
- Aviso del fabricanteissues.apache.org/jira/browse/CAMEL-24902
- Parchegithub.com/apache/camel/pull/26747
- Parchegithub.com/apache/camel/pull/27182
- Parchegithub.com/apache/camel/pull/27183
- Referenciacamel.apache.org/security/CVE-2026-46455.html
Mostrar 1 referencias másMostrar menos
JSON original (NVD)
Mostrar
{
"id": "CVE-2026-95663",
"cveTags": [],
"metrics": {
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"id": "CVE-2026-95663",
"role": "CISA Coordinator",
"options": [
{
"exploitation": "none"
},
{
"automatable": "no"
},
{
"technicalImpact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2026-11-02T20:56:59.082729Z"
}
}
],
"cvssMetricV31": [
{
"type": "Secondary",
"source": "security@apache.org",
"cvssData": {
"scope": "UNCHANGED",
"version": "3.1",
"baseScore": 4.8,
"attackVector": "NETWORK",
"baseSeverity": "MEDIUM",
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N",
"integrityImpact": "LOW",
"userInteraction": "NONE",
"attackComplexity": "HIGH",
"availabilityImpact": "NONE",
"privilegesRequired": "NONE",
"confidentialityImpact": "LOW"
},
"impactScore": 2.5,
"exploitabilityScore": 2.2
},
{
"type": "Primary",
"source": "nvd@nist.gov",
"cvssData": {
"scope": "UNCHANGED",
"version": "3.1",
"baseScore": 6.5,
"attackVector": "NETWORK",
"baseSeverity": "MEDIUM",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N",
"integrityImpact": "LOW",
"userInteraction": "NONE",
"attackComplexity": "LOW",
"availabilityImpact": "NONE",
"privilegesRequired": "NONE",
"confidentialityImpact": "LOW"
},
"impactScore": 2.5,
"exploitabilityScore": 3.9
}
]
},
"affected": [
{
"source": "security@apache.org",
"affectedData": [
{
"vendor": "Apache Software Foundation",
"product": "Apache Camel",
"versions": [
{
"status": "affected",
"version": "4.16.0",
"lessThan": "4.18.5",
"versionType": "maven"
},
{
"status": "affected",
"version": "4.19.0",
"lessThan": "4.22.2",
"versionType": "maven"
}
],
"packageURL": "pkg:maven/org.apache.camel/camel-keycloak",
"packageName": "org.apache.camel:camel-keycloak",
"collectionURL": "https://repo.maven.apache.org/maven2",
"defaultStatus": "unaffected"
}
]
}
],
"published": "2026-10-26T09:16:37.003",
"references": [
{
"url": "https://camel.apache.org/security/CVE-2026-46455.html",
"tags": [
"Not Applicable"
],
"source": "security@apache.org"
},
{
"url": "https://camel.apache.org/security/CVE-2026-85301.html",
"tags": [
"Not Applicable"
],
"source": "security@apache.org"
},
{
"url": "https://camel.apache.org/security/CVE-2026-95663.html",
"tags": [
"Vendor Advisory"
],
"source": "security@apache.org"
},
{
"url": "https://github.com/apache/camel/pull/26747",
"tags": [
"Issue Tracking",
"Patch"
],
"source": "security@apache.org"
},
{
"url": "https://github.com/apache/camel/pull/27182",
"tags": [
"Issue Tracking",
"Patch"
],
"source": "security@apache.org"
},
{
"url": "https://github.com/apache/camel/pull/27183",
"tags": [
"Issue Tracking",
"Patch"
],
"source": "security@apache.org"
},
{
"url": "https://issues.apache.org/jira/browse/CAMEL-24902",
"tags": [
"Issue Tracking",
"Vendor Advisory"
],
"source": "security@apache.org"
}
],
"vulnStatus": "Analyzed",
"weaknesses": [
{
"type": "Secondary",
"source": "security@apache.org",
"description": [
{
"lang": "en",
"value": "CWE-613"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "Insufficient Session Expiration vulnerability in Apache Camel Keycloak component.\n\n\n\nThis issue affects Apache Camel: from 4.16.0 before 4.18.5, from 4.19.0 before 4.22.2.\n\n\n\nWhen token introspection is enabled on the camel-keycloak KeycloakSecurityPolicy (useTokenIntrospection=true), the security processor validates the access token of a request by sending it to Keycloak's OAuth 2.0 token introspection endpoint, and accepts the token while the response reports it as active. The introspection endpoint reports a token as inactive once its exp (expiration) time has passed, so on this path the active flag is what enforces token expiry. Introspection results are cached by default (introspectionCacheEnabled=true, introspectionCacheTtl=60 seconds), and both cache implementations shipped with the component, ConcurrentMapTokenCache and CaffeineTokenCache, expired an entry a fixed time after it was inserted, without bounding that lifetime by the exp claim that the cached response already carried. KeycloakSecurityProcessor in turn checked only the active flag of the result, on every path that uses introspection, and never compared exp with the current time. A response cached shortly before the token expired was therefore served to later requests carrying the same token for up to the configured time-to-live after the token's expiry, and those requests were admitted with the roles and permissions the expired token had carried, although RFC 7662, which defines token introspection, states that a response containing exp must not be cached beyond that time. The access token is supplied by the caller with each request, typically as a bearer token in the Authorization header, so a caller holding a token that was valid moments earlier could keep using it after it expired, for as long as the cached entry lived. The window is bounded by introspectionCacheTtl, which is 60 seconds by default and 300 to 600 seconds where the documentation's recommendation for internal services was followed, and it opens only for a token that the same Camel process introspected and cached while the token was still active. The issue grants nothing beyond what the token already carried: it allows no token forgery and no privilege escalation, and token introspection is not enabled by default, which is why the severity is assessed medium. The local JWT verification path, used when introspection is disabled, is not affected by this issue.\n\n\n\nUsers are recommended to upgrade to version 4.23.0, which fixes the issue. If users are on the 4.22.x releases stream, then they are suggested to upgrade to 4.22.2. If users are on the 4.18.x releases stream, then they are suggested to upgrade to 4.18.5. The 4.16.x, 4.17.x and 4.19.x to 4.21.x release lines reached end of life before this issue was resolved and will not receive a fix, so deployments on them must move to a supported release. For deployments that cannot upgrade immediately, set introspectionCacheEnabled=false on the KeycloakSecurityPolicy, so that every request is checked against the introspection endpoint, which reports an expired token as inactive, at the cost of one introspection call per request. Lowering introspectionCacheTtl only narrows the window and does not close it."
}
],
"lastModified": "2026-11-06T16:19:21.467",
"configurations": [
{
"nodes": [
{
"negate": false,
"cpeMatch": [
{
"criteria": "cpe:2.3:a:apache:camel:*:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "59895AB3-4A9E-4E42-982A-DCADE384310F",
"versionEndExcluding": "4.18.5",
"versionStartIncluding": "4.16.0"
},
{
"criteria": "cpe:2.3:a:apache:camel:*:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "98F17F8D-EF4C-4F95-8EF6-206920C39E30",
"versionEndExcluding": "4.22.2",
"versionStartIncluding": "4.19.0"
}
],
"operator": "OR"
}
]
}
],
"sourceIdentifier": "security@apache.org"
}