Apache Camel's camel-ssh component contains a vulnerability in its host key verification logic. The ResourceBasedSSHKeyVerifier used substring matching and first-match-wins logic instead of OpenSSH-compatible host pattern matching, allowing a public key for a different but overlapping host entry to be accepted. This could lead to authentication bypass by spoofing the server's identity even when strict host checking is enabled. The issue affects Apache Camel versions from 2.20.0 before 4.18.6, from 4.19.0 before 4.22.3, and from 4.23.0 before 4.24.0. Fixed versions 4.18.6, 4.22.3, and 4.24.0 implement proper OpenSSH-compatible host pattern matching and fail closed on unreadable resources.