National CSIRT-CY | National Computer Security Incident Response Team of Cyprus

Η Εθνική Ομάδα Αντιμετώπισης Ηλεκτρονικών Επιθέσεων προβλέπει την αύξηση της ηλεκτρονικής ασφαλείας ενισχύοντας την προστασία του κυβερνοχώρου των Εθνικών Κρίσιμων Πληροφοριακών Υποδομών, των τραπεζών και των παροχών επικοινωνίας της Κυπριακής Δημοκρατίας.

Camel Message Header Injection through request parameters

13 Μαρτίου 2025

The Digital Security Authority (DSA) wants to bring to your attention a vulnerability affecting Apache Camel .

 

Technical Details

This vulnerability is present in Camel's default incoming header filter, that allows an attacker to include Camel specific headers that for some Camel components can alter the behaviours such as the camel-bean component, or the camel-exec component.

If you have Camel applications that are directly connected to the internet via HTTP, then an attacker could include parameters in the HTTP requests that are sent to the Camel application that incorrectly get translated into headers. The headers could be both provided as request parameters for an HTTP methods invocation or as part of the payload of the HTTP methods invocation. All the known Camel HTTP component such as camel-servlet, cameljetty, camel-undertow, camel-platform-http, and camel-netty-http would be vulnerable out of the box.

 

Affected Products:

Apache Camel 4.10.0 before 4.10.2.

Apache Camel 4.8.0 before 4.8.5.

Apache Camel 3.10.0 before 3.22.4.

 

Fixed Versions: 

Apache Camel 3.22.4

Apache Camel 4.8.5

Apache Camel 4.10.2

 

Recommendations

The Digital Security Authority recommends updating the affected products version by applying the fixed release version 4.10.2 for 4.10.x LTS, 4.8.5 for 4.8.x LTS and 3.22.4 for 3.x releases. Also, users could use removeHeaders EIP, to filter out anything like ‘cAmel, cAMEL’ etc, or in general everything not starting with ‘Camel’, ‘camel’ or ‘org.apache.camel.’.

 

References

  1.  Common Weakness Enumeration
  2.  Common Vulnerabilities & Exposures

 

The information presented in this report is based on available data up to the 13th of March 2025.

 [ Get the report  in .PDF ]

 

Cyber threats require heightened defences

Working towards a trusted and cyber secure Europe

Protect your cyber hygiene

Cyber Europe 2022 [exercise]