🔍 CVE-2026-43866

7.3
CVSS Score
HIGH
2026-07-06
2026-10-25 15:10
✅ 완료

🇰🇷 한글 설명

Apache Camel의 JMS 컴포넌트에서 신뢰할 수 없는 데이터의 역직렬화 취약점이 발견되었습니다. 공격자가 허용된 클래스인 DefaultExchangeHolder를 사용하여 검증 로직을 우회하고, 임의의 Exchange 상태를 주입하여 라우팅 및 헤더를 조작할 수 있습니다.

💡 쉬운 설명

해커가 특수하게 조작된 메시지를 보내면 프로그램이 이를 정상적인 데이터로 착각하여 내부 설정값을 마음대로 바꿀 수 있는 보안 구멍입니다. 이를 통해 데이터가 전달되는 경로를 바꾸거나 시스템 동작을 방해할 수 있습니다.

🇺🇸 원문 (English)

Deserialization of Untrusted Data vulnerability in Apache Camel, Apache Camel JMS component. JmsBinding.extractBodyFromJms() in camel-jms - and the equivalent JmsBinding in camel-sjms - deserializes the payload of an incoming JMS ObjectMessage via jakarta.jms.ObjectMessage.getObject() whenever the mapJmsMessage option is enabled (the default) and Camel acts as a JMS consumer. The CVE-2026-40860 hardening added a post-deserialization class check that rejects classes outside the default allow-list java.**;javax.**;org.apache.camel.**;!*. However org.apache.camel.support.DefaultExchangeHolder itself lives in the allow-listed org.apache.camel.** namespace, so an ObjectMessage whose top-level object is a DefaultExchangeHolder passes the check. The receiving side then calls DefaultExchangeHolder.unmarshal() on it without requiring the transferExchange option to be enabled - an asymmetric trust boundary, since the sending side gates ObjectMessage and transferExchange handling but the receiving side did not - writing every non-null field of the holder into the Exchange: the message body, the IN and OUT headers, the exchange properties, the variables, the exchange id and the exception. An attacker who can publish an ObjectMessage to a queue or topic consumed by an affected Camel application can therefore inject arbitrary Exchange state using only universally-trusted java.lang and java.util types, with no deserialization gadget chain required, to manipulate routing and headers, exchange properties and error handling. The same handling applies to camel-sjms and camel-sjms2, and to the JMS-family components built on JmsComponent and JmsBinding: camel-amqp, camel-activemq and camel-activemq6. This is a bypass of the CVE-2026-40860 fix rather than a flaw in it. This issue affects Apache Camel: from 3.0.0 before 4.14.8, from 4.15.0 before 4.18.3, from 4.19.0 before 4.21.0; Apache Camel: from 3.0.0 before 4.14.8, from 4.15.0 before 4.18.3, from 4.19.0 before 4.21.0. Users are recommended to upgrade to version 4.21.0, which fixes the issue. If users are on the 4.14.x LTS releases stream, then they are suggested to upgrade to 4.14.8. If users are on the 4.18.x releases stream, then they are suggested to upgrade to 4.18.3. After upgrading, JMS ObjectMessage handling is disabled by default in camel-jms, camel-sjms and the JMS-family components (a new objectMessageEnabled option defaults to false at the component and endpoint level), so an incoming ObjectMessage - including a DefaultExchangeHolder payload - is no longer deserialized unless the option is explicitly enabled; only set objectMessageEnabled=true when the consumed JMS destination is fed exclusively by trusted producers. For deployments that cannot upgrade immediately, restrict publish access to the queues and topics consumed by Camel to trusted producers via JMS broker authorization, and do not expose JMS consumers that map ObjectMessage bodies to untrusted networks; a JMS-provider deserialization allow-list does not mitigate this specific bypass because the crafted payload uses only universally-trusted classes.

📍 영향받는 시스템

Apache Camel 3.0.0 ~ 4.14.7, 4.15.0 ~ 4.17.x, 4.19.0 ~ 4.20.x

⚔️ 공격 벡터

신뢰할 수 없는 소스로부터 조작된 JMS ObjectMessage를 큐 또는 토픽에 발행하여 역직렬화 우회 공격 수행

🛡️ 대응 방법

Apache Camel을 4.21.0, 4.18.3 또는 4.14.8 이상의 최신 버전으로 업그레이드하십시오.

🔧 검증 코드

출력된 Apache Camel의 버전을 확인하여 취약한 버전 범위에 해당하는지 체크합니다.

Shell / Script
mvn dependency:tree | grep camel-core

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

💻 영향받는 소프트웨어

Spring Data REST