🇰🇷 한글 설명
Apache Camel Neo4J 컴포넌트에서 데이터 쿼리 로직의 특수 요소 중화 미흡으로 인해 발생하는 Cypher 인젝션 취약점입니다. 공격자가 CamelNeo4jMatchProperties 맵의 키(Key) 이름을 조작하여 Cypher 구문을 주입함으로써 Neo4j 데이터베이스의 노드나 관계를 임의로 읽고, 수정하거나 삭제할 수 있습니다.
💡 쉬운 설명
데이터베이스에 질문을 던질 때 사용하는 이름표(Key) 부분에 악성 명령어를 숨겨 넣을 수 있는 보안 결함입니다. 이를 통해 해커가 데이터베이스의 정보를 몰래 훔쳐보거나 데이터를 마음대로 지울 수 있습니다.
🇺🇸 원문 (English)
Improper Neutralization of Special Elements in Data Query Logic vulnerability in Apache Camel Neo4J component.
The camel-neo4j producer builds the Cypher WHERE clause for its match/retrieve and delete operations from the CamelNeo4jMatchProperties map. CVE-2025-66169 addressed Cypher injection through the property values by binding them as query parameters ($paramN), but the property names (the JSON keys of that map) were still concatenated into the query string verbatim in Neo4jProducer.retrieveNodes() and deleteNode(). A property name containing Cypher syntax therefore alters the structure of the executed query. Where a route maps untrusted input into the CamelNeo4jMatchProperties map - for example by passing a request body as the match map, or from a consumer that does not filter inbound Camel* headers - an attacker who controls the JSON key names can inject arbitrary Cypher and read, modify or delete any node or relationship in the Neo4j database. The CamelNeo4jMatchProperties header is itself Camel-prefixed and is filtered by the HTTP header-filter strategy, so a plain HTTP client cannot set it directly; the issue is reachable through routes that deliberately or inadvertently carry untrusted data into that header.
This issue affects Apache Camel: from 4.10.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. For deployments that cannot upgrade immediately, do not populate the CamelNeo4jMatchProperties map from untrusted input: validate or allow-list the property names (for example against ^[A-Za-z_][A-Za-z0-9_]*$) before the Neo4j producer, and ensure that any consumer feeding such a route filters inbound Camel* / camel* headers so the match header cannot be supplied by an external sender.
📍 영향받는 시스템
Apache Camel: 4.10.0 < 4.14.8, 4.15.0 < 4.18.3, 4.19.0 < 4.21.0
⚔️ 공격 벡터
신뢰할 수 없는 입력값이 CamelNeo4jMatchProperties 맵의 키로 전달될 때 Cypher 구문을 주입하여 공격
🛡️ 대응 방법
Apache Camel을 4.21.0, 4.14.8 또는 4.18.3 이상의 최신 버전으로 업그레이드하거나, 입력되는 속성 이름에 대해 화이트리스트 검증을 수행해야 함
🔧 검증 코드
출력된 결과에서 사용 중인 Apache Camel의 버전을 확인하여 취약한 버전 범위에 해당하는지 체크합니다.
mvn dependency:list | grep camel-core