CVE-2022-36007

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-36007
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-36007.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-36007
Aliases
Published
2022-08-14T00:25:10Z
Modified
2025-12-04T10:29:58.863071Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N CVSS Calculator
Summary
Partial Path Traversal in com.github.jlangch:venice
Details

Venice is a Clojure inspired sandboxed Lisp dialect with excellent Java interoperability. A partial path traversal issue exists within the functions load-file and load-resource. These functions can be limited to load files from a list of load paths. Assuming Venice has been configured with the load paths: [ "/Users/foo/resources" ] When passing relative paths to these two vulnerable functions everything is fine: (load-resource "test.png") => loads the file "/Users/foo/resources/test.png" (load-resource "../resources-alt/test.png") => rejected, outside the load path When passing absolute paths to these two vulnerable functions Venice may return files outside the configured load paths: (load-resource "/Users/foo/resources/test.png") => loads the file "/Users/foo/resources/test.png" (load-resource "/Users/foo/resources-alt/test.png") => loads the file "/Users/foo/resources-alt/test.png" !!! The latter call suffers from the Partial Path Traversal vulnerability. This issue’s scope is limited to absolute paths whose name prefix matches a load path. E.g. for a load-path "/Users/foo/resources", the actor can cause loading a resource also from "/Users/foo/resources-alt", but not from "/Users/foo/images". Versions of Venice before and including v1.10.17 are affected by this issue. Upgrade to Venice >= 1.10.18, if you are on a version < 1.10.18. There are currently no known workarounds.

Database specific
{
    "cwe_ids": [
        "CWE-22"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/36xxx/CVE-2022-36007.json",
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/jlangch/venice

Affected ranges

Type
GIT
Repo
https://github.com/jlangch/venice
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

0.*

0.9.10
0.9.8

1.*

1.10.8

v0.*

v0.7.0
v0.7.1
v0.7.2
v0.8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9

Database specific

vanir_signatures

[
    {
        "signature_version": "v1",
        "source": "https://github.com/jlangch/venice/commit/c942c73136333bc493050910f171a48e6f575b23",
        "deprecated": false,
        "target": {
            "file": "src/main/java/com/github/jlangch/venice/impl/util/io/LoadPaths.java"
        },
        "id": "CVE-2022-36007-43381d1e",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "108898020225078872135214237211846103605",
                "320940117593494428855040632200413588364",
                "6466072299579698142389869701617685677",
                "312049323961631633786917566869076141611"
            ]
        },
        "signature_type": "Line"
    },
    {
        "signature_version": "v1",
        "source": "https://github.com/jlangch/venice/commit/c942c73136333bc493050910f171a48e6f575b23",
        "deprecated": false,
        "target": {
            "file": "src/main/java/com/github/jlangch/venice/impl/util/io/LoadPaths.java",
            "function": "isFileWithinDirectory"
        },
        "id": "CVE-2022-36007-a4b2d774",
        "digest": {
            "function_hash": "120759222316485299727856155757090479590",
            "length": 334.0
        },
        "signature_type": "Function"
    }
]