GHSA-4mpj-488r-vh6m

Suggest an improvement
Source
https://github.com/advisories/GHSA-4mpj-488r-vh6m
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/02/GHSA-4mpj-488r-vh6m/GHSA-4mpj-488r-vh6m.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-4mpj-488r-vh6m
Aliases
Published
2022-02-01T22:01:14Z
Modified
2023-11-08T04:07:07.623566Z
Severity
  • 9.1 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N CVSS Calculator
Summary
Neo4j Graph Database vulnerable to Path Traversal
Details

Impact

Directory Traversal Vulnerabilities found in several functions of apoc plugins in Neo4j Graph database. The attacker can retrieve and download files from outside the configured directory on the affected server. Under some circumstances, the attacker can also create files.

Patches

The users should aim to use the latest released version compatible with their Neo4j version. The minimum versions containing patch for this vulnerability (for Neo4j 4.2, 4.3, and 4.4 bundled with APOC, upgrade to the appropriate patched version): 3.5 - bundle n/a, standalone 3.5.0.17 4.2 - bundle 4.2.13, standalone 4.2.0.10 4.3 - bundle 4.3.9, standalone 4.3.0.4 4.4 - bundle 4.4.2, standalone 4.4.0.1

Workarounds

If you cannot upgrade the library, you can control the allowlist of the functions that can be used in your system:

For more information

If you have any questions or comments about this advisory: * Open an issue in neo4j-apoc-procedures * Email us at security@neo4j.com

Credits

We want to publicly recognize the contribution of Nicolai Grødum from the Red Team of PwC Norway for reporting this issue and following the responsible disclosure policy.

Database specific
{
    "nvd_published_at": "2022-03-01T02:15:00Z",
    "github_reviewed_at": "2022-02-01T15:58:43Z",
    "severity": "CRITICAL",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-22"
    ]
}
References

Affected packages

Maven / org.neo4j.procedure:apoc

Package

Name
org.neo4j.procedure:apoc
View open source insights on deps.dev
Purl
pkg:maven/org.neo4j.procedure/apoc

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.5.17

Affected versions

1.*

1.0.0-RC1
1.0.0
1.1.0

3.*

3.0.4.1
3.0.4.2
3.0.8.4
3.0.8.5
3.1.0.2
3.1.0.3
3.1.0.4
3.1.0.5
3.1.2.5
3.1.3.7
3.1.3.8
3.1.3.9
3.2.0.1
3.2.0.4
3.2.3.5
3.2.3.6
3.3.0.1
3.3.0.2
3.3.0.3
3.3.0.4
3.4.0.1
3.4.0.2
3.4.0.3
3.4.0.4
3.4.0.5
3.4.0.7
3.5.0.1
3.5.0.2
3.5.0.4
3.5.0.5
3.5.0.6
3.5.0.7
3.5.0.10
3.5.0.11
3.5.0.12
3.5.0.13
3.5.0.14
3.5.0.15
3.5.0.17
3.5.0.18
3.5.0.19
3.5.0.20
3.5.0.21

Maven / org.neo4j.procedure:apoc

Package

Name
org.neo4j.procedure:apoc
View open source insights on deps.dev
Purl
pkg:maven/org.neo4j.procedure/apoc

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.2.0
Fixed
4.2.10

Affected versions

4.*

4.2.0.0
4.2.0.1
4.2.0.2
4.2.0.3
4.2.0.4
4.2.0.5
4.2.0.6
4.2.0.7
4.2.0.8
4.2.0.9
4.2.0.10
4.2.0.11
4.2.0.12

Maven / org.neo4j.procedure:apoc

Package

Name
org.neo4j.procedure:apoc
View open source insights on deps.dev
Purl
pkg:maven/org.neo4j.procedure/apoc

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.3.0.0
Fixed
4.3.0.4

Affected versions

4.*

4.3.0.0
4.3.0.1
4.3.0.2
4.3.0.3

Database specific

{
    "last_known_affected_version_range": "<= 4.3.0.3"
}

Maven / org.neo4j.procedure:apoc

Package

Name
org.neo4j.procedure:apoc
View open source insights on deps.dev
Purl
pkg:maven/org.neo4j.procedure/apoc

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.4.0.0
Fixed
4.4.0.1

Affected versions

4.*

4.4.0.0