🔍 CVE-2026-46584

3.7
CVSS Score
LOW
2026-07-06
2026-07-08 15:06
✅ 완료

🇰🇷 한글 설명

Apache Camel Mail 컴포넌트에서 부적절한 입력 검증으로 인해 민감한 정보가 노출될 수 있는 취약점입니다. 공격자가 특정 네임스페이스의 헤더를 주입하면 SMTP 서버 설정을 조작하여 인증 정보를 탈취하거나 메시지를 가로챌 수 있습니다.

💡 쉬운 설명

이메일을 보내는 프로그램이 외부에서 들어온 잘못된 설정값을 그대로 믿어버리는 문제입니다. 이를 통해 해커가 이메일 서버 주소를 가짜로 바꾸거나 이메일 내용을 몰래 훔쳐볼 수 있습니다.

🇺🇸 원문 (English)

Improper Input Validation, Exposure of Sensitive Information to an Unauthorized Actor vulnerability in Apache Camel Mail Component. The camel-mail producer (MailProducer.getSender) scanned the outgoing Exchange for message headers in the mail.smtp. / mail.smtps. namespace and, when any were present, built a per-message JavaMail sender with those values applied as JavaMail session properties, overriding the endpoint configuration. This namespace is Camel-internal - only MailProducer interprets it - and was not blocked by any HeaderFilterStrategy, so the values could originate from any inbound protocol (for example platform-http query parameters or request headers, or JMS / Kafka messages from untrusted producers) that feeds a route ending in an smtp / smtps producer without an intervening removeHeaders. The maximal impact is version-dependent: on releases before 4.19.0, setting mail.smtp.host redirects the SMTP connection to a server under the attacker's control, and because the producer then authenticates with the endpoint's configured username and password those credentials are transmitted to the attacker; on 4.19.0 and later the producer connects to the endpoint's configured host explicitly, so the reachable impact is limited to weakening transport security (for example mail.smtp.ssl.trust, mail.smtp.starttls.enable or mail.smtp.socks.host) and interception of the outgoing message rather than host redirect. Exploitation requires a route that channels untrusted input into the mail producer without stripping the namespace. 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. 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, the per-message override is disabled by default; enable it only on trusted endpoints with useJavaMailSessionPropertiesFromHeaders=true. For deployments that cannot upgrade immediately, strip the namespace before the mail producer with removeHeaders('mail.smtp.*') and removeHeaders('mail.smtps.*') between any untrusted ingress and the smtp / smtps producer. Even with the opt-in enabled, route authors should still strip the namespace on any path that carries untrusted input.

📍 영향받는 시스템

Apache Camel: 4.0.0 ~ 4.14.7, 4.15.0 ~ 4.18.2, 4.19.0 ~ 4.20.x

⚔️ 공격 벡터

신뢰할 수 없는 입력 소스(HTTP, JMS, Kafka 등)를 통해 mail.smtp.* 헤더를 주입하여 SMTP 설정을 조작함

🛡️ 대응 방법

Apache Camel을 4.21.0, 4.14.8 또는 4.18.3 이상의 버전으로 업그레이드하거나, mail producer 이전에 removeHeaders를 사용하여 해당 네임스페이스를 제거함

🔧 검증 코드

출력된 결과에서 camel-core의 버전을 확인하여 취약한 버전 범위에 해당하는지 체크함

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

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Spring for Apache Kafka