🇰🇷 한글 설명
Apache Camel의 AWS SNS 컴포넌트에서 부적절한 입력 검증 취약점이 발견되었습니다. Sns2HeaderFilterStrategy에 인바운드 필터 규칙이 누락되어 있었으나, 해당 컴포넌트는 프로듀서 전용이므로 외부 공격자가 이를 악용할 수 있는 알려진 경로은 없습니다.
💡 쉬운 설명
메시지를 보낼 때 보안 규칙이 일부 빠져 있었지만, 이 기능은 메시지를 받기만 하는 용도가 아니라 보내기만 하는 용도라 실제 공격은 어렵습니다. 다만 보안을 더 강화하기 위해 규칙을 보완하는 업데이트가 이루어졌습니다.
🇺🇸 원문 (English)
Improper Input Validation vulnerability in Apache Camel AWS SNS component.
The camel-aws2-sns component filters Camel headers through a component-specific HeaderFilterStrategy, Sns2HeaderFilterStrategy. Like the sibling Sqs2HeaderFilterStrategy, it originally configured only an outbound filter (setOutFilterPattern, which blocks Camel*, breadcrumbId and org.apache.camel.* headers from being written out) and did not configure an inbound filter rule. For the related camel-aws2-sqs component this inbound gap was exploitable, because the Sqs2Consumer maps inbound SQS message attributes into the Camel Exchange via HeaderFilterStrategy.applyFilterToExternalHeaders, allowing a message sender to inject Camel control headers (tracked as CVE-2026-46456). camel-aws2-sns, by contrast, is producer-only: Sns2Endpoint does not support consumers (createConsumer throws UnsupportedOperationException, 'You cannot receive messages from this endpoint'), so no externally-supplied message attributes are ever mapped inbound into a Camel Exchange through SNS, and the missing inbound filter rule on Sns2HeaderFilterStrategy was therefore not reachable by an attacker. As part of the same fix (CAMEL-23506), an inbound filter rule (setInFilterStartsWith for the Camel namespace) was added to Sns2HeaderFilterStrategy so that its configuration matches the corrected Sqs2HeaderFilterStrategy and the other sibling strategies. This is a defense-in-depth alignment with no known exploit path in camel-aws2-sns.
This issue affects Apache Camel: from 4.0.0 before 4.14.8, from 4.15.0 before 4.18.3, from 4.19.0 before 4.21.0.
This is a defense-in-depth hardening change with no known exploit path in camel-aws2-sns, which is producer-only, so no urgent action or workaround is required. Users who want the aligned behaviour can upgrade to version 4.21.0, or to 4.14.8 on the 4.14.x LTS releases stream, or to 4.18.3 on the 4.18.x releases stream, which contain the change. As a general best practice, operators should continue to apply least-privilege IAM permissions on their SNS topics.
📍 영향받는 시스템
Apache Camel 4.0.0 < 4.14.8, 4.15.0 < 4.18.3, 4.19.0 < 4.21.0
⚔️ 공격 벡터
SNS 프로듀서 전용 컴포넌트 특성상 외부에서 주입된 헤더가 Camel Exchange로 매핑되지 않아 직접적인 공격 경로는 없음
🛡️ 대응 방법
Apache Camel을 4.21.0, 4.14.8 또는 4.18.3 이상의 최신 보안 패치 버전으로 업그레이드하십시오.
🔧 검증 코드
출력된 결과의 버전이 취약한 버전 범위에 포함되는지 확인하십시오.
mvn dependency:list | grep camel-aws2-sns