{"id":"CVE-2022-36007","aliases":["CVE-2022-36007","GHSA-4mmh-5vw7-rgvj"],"related":[],"kind":"vulnerability","state":"published","title":"Partial Path Traversal in com.github.jlangch:venice","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\nA 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.\n\nAssuming Venice has been configured with the load paths: `[ \"/Users/foo/resources\" ]` \n\nWhen passing **relative** paths to these two vulnerable functions everything is fine:\n`(load-resource \"test.png\")`   => loads the file \"/Users/foo/resources/test.png\"\n`(load-resource \"../resources-alt/test.png\")`   => rejected, outside the load path\n\nWhen passing **absolute** paths to these two vulnerable functions Venice may return files outside the configured load paths:\n`(load-resource \"/Users/foo/resources/test.png\")`   => loads the file \"/Users/foo/resources/test.png\"\n`(load-resource \"/Users/foo/resources-alt/test.png\")`   => loads the file \"/Users/foo/resources-alt/test.png\" !!!\nThe latter call suffers from the _Partial Path Traversal_ vulnerability.\n\nThis 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\"`.\n\nVersions of Venice before and including v1.10.16 are affected by this issue.\n\n### Patches\nUpgrade to Venice >= 1.10.17, if you are on a version < 1.10.17\n\n### Workarounds\nIf you cannot upgrade the library, you can control the functions that can be used in Venice with a sandbox. If it is appropriate, the functions `load-file` and `load-resource` can be blacklisted in the sandbox.\n\n### References\n  * [PR](https://github.com/jlangch/venice/pull/4/commits/c942c73136333bc493050910f171a48e6f575b23)\n \n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [GitHub Venice](https://github.com/jlangch/venice)\n* Email us at [juerg.ch](mailto:juerg.ch@ggaweb.ch)\n\n### Credits\n\nI want to publicly recognize the contribution of [Jonathan Leitschuh](https://github.com/JLLeitschuh) for reporting this issue.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Venice es un dialecto Lisp inspirado en Clojure con una excelente interoperabilidad con Java. Se presenta un problema de recorrido parcial en las funciones \"load-file\" y \"load-resource\". Estas funciones pueden limitarse a cargar archivos de una lista de rutas de carga. Asumiendo que Venice ha sido configurado con las rutas de carga: \"[\"/Users/foo/resources\" ]\" Cuando son pasadas rutas **relativas** a estas dos funciones vulnerables todo está bien: \"(load-resource \"test.png\")\" =) carga el archivo \"/Users/foo/resources/test.png\" \"(load-resource \"../resources-alt/test. png\")\" =) rechazado, fuera de la ruta de carga Cuando son pasadas rutas **absolutas** a estas dos funciones vulnerables Venecia puede devolver archivos fuera de las rutas de carga configuradas: \"(load-resource \"/Users/foo/resources/test. ¡¡¡png\")\" =) carga el archivo \"/Users/foo/recursos/test.png\" \"(load-resource \"/Users/foo/recursos-alt/test.png\")\" =) carga el archivo \"/Users/foo/recursos-alt/test.png\" !!! Esta última llamada sufre una vulnerabilidad se Salto de Ruta Parcial. El alcance de este problema es limitado a las rutas absolutas cuyo prefijo de nombre coincide con una ruta de carga. Por ejemplo, para una ruta de carga \"\"/Users/foo/resources\"\", el actor puede causar la carga de un recurso también desde \"\"/Users/foo/resources-alt\"\", pero no desde \"\"/Users/foo/images\"\". Las versiones de Venice anteriores a v1.10.17, incluyéndola, están afectadas por este problema. Actualice a Venice versiones posteriores a 1.10.18 incluyéndola, si está en una versión anterior a 1.10.18. Actualmente no se presentan mitigaciones conocidas.","source":"nvd"}],"published":"2022-08-14T00:25:10.000Z","modified":"2026-06-17T04:52:43.633Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":3.3,"rating":"LOW"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"<= 1.10.16","status":"affected"}],"vendor":"jlangch","product":"venice","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.10.17"}],"ecosystem":"Maven","package":"com.github.jlangch:venice","purl":"pkg:maven/com.github.jlangch/venice","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.10.17"}],"vendor":"venice_project","product":"venice","cpe":"cpe:2.3:a:venice_project:venice:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/jlangch/venice/security/advisories/GHSA-4mmh-5vw7-rgvj","tags":["exploit","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/jlangch/venice/commit/215ae91bb964013b0a2d70718a692832d561ae0a","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/jlangch/venice/commit/c942c73136333bc493050910f171a48e6f575b23","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/jlangch/venice/releases/tag/v1.10.17","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-36007","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/jlangch/venice","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-04-22T15:45:03.645Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-36007","url":"https://www.cve.org/CVERecord?id=CVE-2022-36007","licence":"CVE Terms of Use","modified":"2025-04-22T17:41:52.757Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4mmh-5vw7-rgvj","url":"https://github.com/advisories/GHSA-4mmh-5vw7-rgvj","licence":"CC-BY-4.0","modified":"2023-11-08T04:09:56.951Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-36007","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-36007","licence":"Public domain","modified":"2026-06-17T04:52:43.633Z"}],"updatedAt":"2026-11-25T22:58:14.195Z","epss":{"score":0.00431,"percentile":0.39172,"date":"2026-12-01T12:00:22.000Z"}}