{"id":"CVE-2020-7647","aliases":["CVE-2020-7647","GHSA-px9h-x66r-8mpc"],"related":[],"kind":"vulnerability","state":"published","title":"path traversal in Jooby","summary":"All versions before 1.6.7 and all versions after 2.0.0 inclusive and before 2.8.2 of io.jooby:jooby and org.jooby:jooby are vulnerable to Directory Traversal via two separate vectors.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"All versions before 1.6.7 and all versions after 2.0.0 inclusive and before 2.8.2 of io.jooby:jooby and org.jooby:jooby are vulnerable to Directory Traversal via two separate vectors.","source":"cvelist"},{"lang":"en","text":"### Impact\nAccess to sensitive information available from classpath. \n\n### Patches\nPatched version: 1.6.7 and 2.8.2\n\nCommit 1.x: https://github.com/jooby-project/jooby/commit/34f526028e6cd0652125baa33936ffb6a8a4a009\n\nCommit 2.x: https://github.com/jooby-project/jooby/commit/c81479de67036993f406ccdec23990b44b0bec32\n\n### Workarounds\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_\n\n### References\n\nLatest 1.x version: 1.6.6\n\n#### Arbitrary class path resource access 1\nWhen sharing a *File System* directory as in:\n\n``` java\nassets(\"/static/**\", Paths.get(\"static\"));\n```\n\nThe class path is also searched for the file (`org.jooby.handlers.AssetHandler.loader`):\n[jooby/AssetHandler.java at 1.x · jooby-project/jooby · GitHub](https://github.com/jooby-project/jooby/blob/1.x/jooby/src/main/java/org/jooby/handlers/AssetHandler.java)\n\n``` java\n  private static Loader loader(final Path basedir, final ClassLoader classloader) {\n    if (Files.exists(basedir)) {\n      return name -> {\n        Path path = basedir.resolve(name).normalize();\n        if (Files.exists(path) && path.startsWith(basedir)) {\n          try {\n            return path.toUri().toURL();\n          } catch (MalformedURLException x) {\n            // shh\n          }\n        }\n        return classloader.getResource(name);\n      };\n    }\n    return classloader::getResource;\n  }\n```\n\nIf we send `/static/WEB-INF/web.xml` it will fail to load it from the file system but will go into `classloader.getResource(name)` where name equals `/WEB-INF/web.xml` so will succeed and return the requested file. This way we can get any configuration file or even the application class files\n\nIf assets are configured for a certain extension we can still bypass it. eg:\n\n```java\nassets(\"/static/**/*.js\", Paths.get(\"static\"));\n```\n\nWe can send:\n\n```\nhttp://localhost:8080/static/io/yiss/App.class.js\n```\n\n#### Arbitrary class path resource access 2\nThis vulnerability also affects assets configured to access resources from the root of the class path. eg:\n\n```java\nassets(\"/static/**\");\n```\n\nIn this case we can traverse `static` by sending:\n\n```\nhttp://localhost:8080/static/..%252fio/yiss/App.class\n```\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [jooby](https://github.com/jooby-project/jooby/issues)\n* Email us at [support@jooby.io](mailto:support@jooby.io)","format":"markdown","source":"ghsa"},{"lang":"es","text":"Todas las versiones anteriores a 1.6.7 y todas las versiones posteriores a 2.0.0 incluyéndola y versiones anteriores a 2.8.2, de io.jooby:jooby y org.jooby:jooby son vulnerables a un Salto de Directorio por medio de dos vectores separados.","source":"nvd"}],"published":"2020-05-11T19:30:18.000Z","modified":"2026-06-17T03:25:11.860Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","score":5,"rating":"MEDIUM"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"all versions before 1.6.7 and all versions after 2.0.0 inclusive and before 2.8.2","status":"affected"}],"product":"io.jooby:jooby and org.jooby:jooby","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.8.2"}],"ecosystem":"Maven","package":"io.jooby:jooby","purl":"pkg:maven/io.jooby/jooby","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.8.2"}],"ecosystem":"Maven","package":"org.jooby:jooby","purl":"pkg:maven/org.jooby/jooby","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.6.7"},{"status":"affected","introduced":"2.0.0","fixed":"2.8.2"}],"vendor":"jooby","product":"jooby","cpe":"cpe:2.3:a:jooby:jooby:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JAVA-IOJOOBY-568806%2C","tags":["x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGJOOBY-568807%2C","tags":["x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/jooby-project/jooby/commit/34f526028e6cd0652125baa33936ffb6a8a4a009","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/jooby-project/jooby/security/advisories/GHSA-px9h-x66r-8mpc","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7647","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/jooby-project/jooby","tags":["package"],"sources":["ghsa"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-IOJOOBY-568806","tags":["web"],"sources":["ghsa"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-IOJOOBY-568806,","tags":["web"],"sources":["ghsa"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGJOOBY-568807","tags":["web"],"sources":["ghsa"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGJOOBY-568807,","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-7647","url":"https://www.cve.org/CVERecord?id=CVE-2020-7647","licence":"CVE Terms of Use","modified":"2024-08-04T09:33:19.945Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-px9h-x66r-8mpc","url":"https://github.com/advisories/GHSA-px9h-x66r-8mpc","licence":"CC-BY-4.0","modified":"2025-01-14T08:57:27.236Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-7647","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7647","licence":"Public domain","modified":"2026-06-17T03:25:11.860Z"}],"updatedAt":"2026-11-25T22:57:52.368Z","epss":{"score":0.01554,"percentile":0.75883,"date":"2026-12-01T12:00:22.000Z"}}