CVE-2022-45046 — camel-ldap
CRITICALCVE-2022-45046 is a critical-severity (CVSS 9.8) vulnerability in org.apache.camel:camel-ldap. A fix is available for org.apache.camel:camel-ldap — see the affected versions and patch details below.
camel-ldap component allows LDAP Injection when using the filter option
Real-World Exposure
org.apache.camel:camel-ldap☕org.apache.camel:camel-ldapReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
The camel-ldap component allows LDAP Injection when using the filter option. Users are recommended to either move to the Camel-Spring-Ldap component (which is not affected) or upgrade to 3.14.6 or 3.18.4.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.apache.camel:camel-ldap | all versions | 3.14.6org.apache.camel:camel-ldap:3.14.6 |
| ☕Maven | org.apache.camel:camel-ldap | ≥ 3.15.0&&< 3.18.4 | 3.18.4org.apache.camel:camel-ldap:3.18.4 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.apache.camel:camel-ldap, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.apache.camel:camel-ldap to 3.14.6 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2022-45046 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
How O3 protects you
O3 Security's impact-aware SCA analyses which vulnerable code paths your application actually calls, so a match like CVE-2022-45046 can be triaged on real exposure rather than presence alone.
Tailored to CVE-2022-45046. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.
Frequently Asked Questions
Is CVE-2022-45046 in your dependencies?
O3 Security finds CVE-2022-45046 across Maven dependencies, including transitive ones, and its impact-aware SCA ranks findings by whether your code actually calls the vulnerable path.