CVE-2022-23532

APOC (Awesome Procedures on Cypher) is an add-on library for Neo4j that provides hundreds of procedures and functions. A path traversal vulnerability found in the apoc.export.* procedures of apoc plugins in Neo4j Graph database. The issue allows a malicious actor to potentially break out of the expected directory. The vulnerability is such that files could only be created but not overwritten. For the vulnerability to be exploited, an attacker would need access to execute an arbitrary query, either by having access to an authenticated Neo4j client, or a Cypher injection vulnerability in an application. The minimum versions containing patch for this vulnerability are 4.4.0.12 and 4.3.0.12 and 5.3.1. As a workaround, you can control the allowlist of the procedures that can be used in your system, and/or turn off local file access by setting apoc.export.file.enabled=false.
Configurations

Configuration 1 (hide)

OR cpe:2.3:a:neo4j:awesome_procedures_on_cyper:*:*:*:*:*:*:*:*
cpe:2.3:a:neo4j:awesome_procedures_on_cyper:*:*:*:*:*:*:*:*
cpe:2.3:a:neo4j:awesome_procedures_on_cyper:5.3.0:*:*:*:*:*:*:*

History

21 Nov 2024, 06:48

Type Values Removed Values Added
References () https://github.com/neo4j-contrib/neo4j-apoc-procedures/commit/01e63ed2d187cd2a8aa1d78bf831ef0fdd69b522 - Patch, Third Party Advisory () https://github.com/neo4j-contrib/neo4j-apoc-procedures/commit/01e63ed2d187cd2a8aa1d78bf831ef0fdd69b522 - Patch, Third Party Advisory
References () https://github.com/neo4j-contrib/neo4j-apoc-procedures/security/advisories/GHSA-5v8v-gwmw-qw97 - Third Party Advisory () https://github.com/neo4j-contrib/neo4j-apoc-procedures/security/advisories/GHSA-5v8v-gwmw-qw97 - Third Party Advisory
CVSS v2 : unknown
v3 : 6.5
v2 : unknown
v3 : 7.1
Summary
  • (es) APOC (Awesome Procedures on Cypher) es una librería complementaria para Neo4j que proporciona cientos de procedimientos y funciones. Una vulnerabilidad de Path Traversal encontrada en los procedimientos apoc.export.* de los complementos apoc en la base de datos Neo4j Graph. El problema permite que un actor malintencionado pueda salir del directorio esperado. Esta vulnerabilidad es tal que los archivos sólo se pueden crear pero no sobrescribir. Para que se aproveche la vulnerabilidad, un atacante necesitaría acceso para ejecutar una consulta arbitraria, ya sea teniendo acceso a un cliente Neo4j autenticado o una vulnerabilidad de inyección de Cypher en una aplicación. Las versiones mínimas que contienen parches para esta vulnerabilidad son 4.4.0.12 y 4.3.0.12 y 5.3.1. Como workaround, puede controlar la lista de permitidos de los procedimientos que se pueden utilizar en su sistema y/o desactivar el acceso a archivos locales configurando apoc.export.file.enabled=false.

07 Nov 2023, 03:44

Type Values Removed Values Added
Summary APOC (Awesome Procedures on Cypher) is an add-on library for Neo4j that provides hundreds of procedures and functions. A path traversal vulnerability found in the apoc.export.* procedures of apoc plugins in Neo4j Graph database. The issue allows a malicious actor to potentially break out of the expected directory. The vulnerability is such that files could only be created but not overwritten. For the vulnerability to be exploited, an attacker would need access to execute an arbitrary query, either by having access to an authenticated Neo4j client, or a Cypher injection vulnerability in an application. The minimum versions containing patch for this vulnerability are 4.4.0.12 and 4.3.0.12 and 5.3.1. As a workaround, you can control the allowlist of the procedures that can be used in your system, and/or turn off local file access by setting apoc.export.file.enabled=false. APOC (Awesome Procedures on Cypher) is an add-on library for Neo4j that provides hundreds of procedures and functions. A path traversal vulnerability found in the apoc.export.* procedures of apoc plugins in Neo4j Graph database. The issue allows a malicious actor to potentially break out of the expected directory. The vulnerability is such that files could only be created but not overwritten. For the vulnerability to be exploited, an attacker would need access to execute an arbitrary query, either by having access to an authenticated Neo4j client, or a Cypher injection vulnerability in an application. The minimum versions containing patch for this vulnerability are 4.4.0.12 and 4.3.0.12 and 5.3.1. As a workaround, you can control the allowlist of the procedures that can be used in your system, and/or turn off local file access by setting apoc.export.file.enabled=false.

Information

Published : 2023-01-14 01:15

Updated : 2024-11-21 06:48


NVD link : CVE-2022-23532

Mitre link : CVE-2022-23532

CVE.ORG link : CVE-2022-23532


JSON object : View

Products Affected

neo4j

  • awesome_procedures_on_cyper
CWE
CWE-22

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')