CVE-2026-40047
Full vulnerability record from the local CVENow database.
Description
Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') vulnerability in Apache Camel Docling component. The camel-docling component invokes the external `docling` command-line tool by assembling an argument list in DoclingProducer and executing it through java.lang.ProcessBuilder. Custom CLI arguments supplied through the `CamelDoclingCustomArguments` exchange header (a List<String>) were appended to that argument list with insufficient validation: the original implementation relied on a denylist of disallowed flags and only rejected path values that contained a literal `../` sequence. As a result, a Camel route that forwards externally-influenced data into the `CamelDoclingCustomArguments` header (or into the path-bearing headers used to build the invocation) could cause the producer to pass unrecognized or unintended `docling` CLI flags to the subprocess, and could supply path-like argument values that resolved outside the intended directory through traversal sequences not caught by the literal `../` check. Because Camel itself builds the `docling` invocation from these values, the component is responsible for constraining them, and the weak validation allowed CLI-argument injection and directory traversal in the arguments passed to the external tool. The invocation uses the list-based form of ProcessBuilder, so a shell does not interpret the argument values; OS command injection through shell metacharacters was not possible, and the metacharacter rejection added by the fix is defense-in-depth. This issue affects Apache Camel: from 4.15.0 before 4.18.3. Users are recommended to upgrade to a release that contains the CAMEL-23212 fix. On the mainline the fix is included from Apache Camel 4.19.0 (and later releases such as 4.20.0). For users on the 4.18.x LTS releases stream, upgrade to 4.18.3. The fix replaces the denylist with a strict allowlist of recognized `docling` CLI flags (rejecting any unrecognized flag, and rejecting producer-managed flags such as the output-directory flags), defensively rejects shell metacharacters in argument values, and normalizes path-like values with Path.normalize() before validating them so that traversal sequences which bypass a literal `../` check are detected. As defence in depth, route authors should avoid mapping untrusted message content into the `CamelDoclingCustomArguments` header and the path-bearing headers, and should strip Camel-internal headers from messages that arrive from untrusted producers.
View original CVE JSON
{
"id": "CVE-2026-40047",
"sourceIdentifier": "[email protected]",
"published": "2026-07-06T09:16:35.377",
"lastModified": "2026-10-25T15:10:00.147",
"vulnStatus": "Analyzed",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') vulnerability in Apache Camel Docling component.\n\nThe camel-docling component invokes the external `docling` command-line tool by assembling an argument list in DoclingProducer and executing it through java.lang.ProcessBuilder. Custom CLI arguments supplied through the `CamelDoclingCustomArguments` exchange header (a List<String>) were appended to that argument list with insufficient validation: the original implementation relied on a denylist of disallowed flags and only rejected path values that contained a literal `../` sequence. As a result, a Camel route that forwards externally-influenced data into the `CamelDoclingCustomArguments` header (or into the path-bearing headers used to build the invocation) could cause the producer to pass unrecognized or unintended `docling` CLI flags to the subprocess, and could supply path-like argument values that resolved outside the intended directory through traversal sequences not caught by the literal `../` check. Because Camel itself builds the `docling` invocation from these values, the component is responsible for constraining them, and the weak validation allowed CLI-argument injection and directory traversal in the arguments passed to the external tool. The invocation uses the list-based form of ProcessBuilder, so a shell does not interpret the argument values; OS command injection through shell metacharacters was not possible, and the metacharacter rejection added by the fix is defense-in-depth.\nThis issue affects Apache Camel: from 4.15.0 before 4.18.3.\n\nUsers are recommended to upgrade to a release that contains the CAMEL-23212 fix. On the mainline the fix is included from Apache Camel 4.19.0 (and later releases such as 4.20.0). For users on the 4.18.x LTS releases stream, upgrade to 4.18.3. The fix replaces the denylist with a strict allowlist of recognized `docling` CLI flags (rejecting any unrecognized flag, and rejecting producer-managed flags such as the output-directory flags), defensively rejects shell metacharacters in argument values, and normalizes path-like values with Path.normalize() before validating them so that traversal sequences which bypass a literal `../` check are detected. As defence in depth, route authors should avoid mapping untrusted message content into the `CamelDoclingCustomArguments` header and the path-bearing headers, and should strip Camel-internal headers from messages that arrive from untrusted producers."
},
{
"lang": "es",
"value": "Vulnerabilidad de Neutralización Inadecuada de Delimitadores de Argumentos en un Comando (’Inyección de Argumentos’) en el componente Apache Camel Docling.\n\nEl componente camel-docling invoca la herramienta de línea de comandos externa “docling” ensamblando una lista de argumentos en DoclingProducer y ejecutándola a través de java.lang.ProcessBuilder. Los argumentos CLI personalizados suministrados a través del encabezado de intercambio “CamelDoclingCustomArguments” (una List[String]) se añadieron a esa lista de argumentos con validación insuficiente: la implementación original se basaba en una lista de denegación de banderas no permitidas y solo rechazaba valores de ruta que contenían una secuencia literal “.. / ”. Como resultado, una ruta de Camel que reenvía datos influenciados externamente al encabezado “CamelDoclingCustomArguments” (o a los encabezados que contienen rutas utilizados para construir la invocación) podría hacer que el productor pasara banderas CLI de “docling” no reconocidas o no intencionadas al subproceso, y podría suministrar valores de argumentos tipo ruta que se resolvían fuera del directorio previsto a través de secuencias de salto no detectadas por la comprobación literal de “.. / ”. Debido a que Camel mismo construye la invocación de “docling” a partir de estos valores, el componente es responsable de restringirlos, y la validación débil permitía la inyección de argumentos CLI y salto de directorio en los argumentos pasados a la herramienta externa. La invocación utiliza la forma basada en lista de ProcessBuilder, por lo que un shell no interpreta los valores de los argumentos; la inyección de comandos del sistema operativo a través de metacaracteres de shell no era posible, y el rechazo de metacaracteres añadido por la corrección es defensa en profundidad.\nEste problema afecta a Apache Camel: desde 4.15.0 antes de 4.18.3.\n\nSe recomienda a los usuarios actualizar a una versión que contenga la corrección CAMEL-23212. En la línea principal, la corrección se incluye a partir de Apache Camel 4.19.0 (y versiones posteriores como 4.20.0). Para los usuarios en la rama de versiones LTS 4.18.x, actualicen a 4.18.3. La corrección reemplaza la lista de denegación con una lista de permitidos estricta de banderas CLI de “docling” reconocidas (rechazando cualquier bandera no reconocida y rechazando banderas gestionadas por el productor, como las banderas de directorio de salida), rechaza defensivamente los metacaracteres de shell en los valores de los argumentos, y normaliza los valores tipo ruta con Path.normalize() antes de validarlos para que se detecten las secuencias de salto que eluden una comprobación literal de “.. / ”. Como defensa en profundidad, los autores de rutas deben evitar mapear contenido de mensajes no confiable en el encabezado “CamelDoclingCustomArguments” y los encabezados que contienen rutas, y deben eliminar los encabezados internos de Camel de los mensajes que provienen de productores no confiables."
}
],
"affected": [
{
"source": "[email protected]",
"affectedData": [
{
"vendor": "Apache Software Foundation",
"product": "Apache Camel",
"defaultStatus": "unaffected",
"collectionURL": "https://repo.maven.apache.org/maven2",
"packageName": "org.apache.camel:camel-docling",
"versions": [
{
"version": "4.15.0",
"lessThan": "4.18.3",
"versionType": "semver",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"type": "Secondary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N",
"baseScore": 9.1,
"baseSeverity": "CRITICAL",
"attackVector": "NETWORK",
"attackComplexity": "LOW",
"privilegesRequired": "NONE",
"userInteraction": "NONE",
"scope": "UNCHANGED",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"availabilityImpact": "NONE"
},
"exploitabilityScore": 3.9,
"impactScore": 5.2
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2026-07-06T18:48:56.576065Z",
"id": "CVE-2026-40047",
"options": [
{
"exploitation": "none"
},
{
"automatable": "no"
},
{
"technicalImpact": "total"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "[email protected]",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-88"
}
]
}
],
"configurations": [
{
"nodes": [
{
"operator": "OR",
"negate": false,
"cpeMatch": [
{
"vulnerable": true,
"criteria": "cpe:2.3:a:apache:camel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "4.15.0",
"versionEndExcluding": "4.18.3",
"matchCriteriaId": "0AEE4159-4465-4ACD-B94A-1E4682C85270"
}
]
}
]
}
],
"references": [
{
"url": "https://camel.apache.org/security/CVE-2026-40047.html",
"source": "[email protected]",
"tags": [
"Vendor Advisory"
]
},
{
"url": "http://www.openwall.com/lists/oss-security/2026/07/05/2",
"source": "af854a3a-2127-422b-91ae-364da2661108",
"tags": [
"Mailing List",
"Third Party Advisory"
]
}
]
}