{"id":"CVE-2018-1000850","aliases":["CVE-2018-1000850","GHSA-8p8g-f9vg-r7xr"],"related":[],"kind":"vulnerability","state":"published","title":"Directory Traversal vulnerability in Square Retrofit","summary":"Square Retrofit version versions from (including) 2.0 and 2.5.0 (excluding) contains a Directory Traversal vulnerability in RequestBuilder class, method addPathParameter that can result in By manipulating the URL an attacker could add or delete resources otherwise unavailable to her.. This attack appear to be exploitable via An attacker should have access to an encoded path parameter on POST, PUT or DELETE request.. This vulnerability appears to have been fixed in 2.5.0 and later.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Square Retrofit version versions from (including) 2.0 and 2.5.0 (excluding) contains a Directory Traversal vulnerability in RequestBuilder class, method addPathParameter that can result in By manipulating the URL an attacker could add or delete resources otherwise unavailable to her.. This attack appear to be exploitable via An attacker should have access to an encoded path parameter on POST, PUT or DELETE request.. This vulnerability appears to have been fixed in 2.5.0 and later.","source":"cvelist"},{"lang":"en","text":"Square Retrofit versions from (including) 2.0 to 2.5.0 (excluding) contain a Directory Traversal vulnerability in RequestBuilder class, method addPathParameter. By manipulating the URL an attacker could add or delete resources otherwise unavailable to her. This attack appears to be exploitable via an encoded path parameter on POST, PUT or DELETE request. This vulnerability appears to have been fixed in 2.5.0 and later.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Square Retrofit, desde la versión 2.0 (incluida) y 2.5.0 (excluida), contiene una vulnerabilidad de salto de directorio en la clase RequestBuilder, método addPathParameter. Al manipular la URL, un atacante podría añadir o eliminar recursos que no estarían disponibles. Para que el ataque sea explotable, un atacante debería tener acceso a un parámetro path cifrado en las peticiones POST, PUT o DELETE. La vulnerabilidad parece haber sido solucionada en las versiones 2.5.0 y siguientes.","source":"nvd"}],"published":"2018-12-20T15:00:00.000Z","modified":"2026-06-17T01:33:10.547Z","severity":{"scorer":"NVD","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:P/A:P","score":6.4,"rating":"MEDIUM"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.5.0"}],"ecosystem":"Maven","package":"com.squareup.retrofit2:retrofit","purl":"pkg:maven/com.squareup.retrofit2/retrofit","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"2.0.0","fixed":"2.5.0"}],"vendor":"squareup","product":"retrofit","cpe":"cpe:2.3:a:squareup:retrofit:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/square/retrofit/blob/master/CHANGELOG.md","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/square/retrofit/commit/b9a7f6ad72073ddd40254c0058710e87a073047d#diff-943ec7ed35e68201824904d1dc0ec982","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://ihacktoprotect.com/post/retrofit-path-traversal/","tags":["exploit","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.apache.org/thread.html/b0656d359c7d40ec9f39c8cc61bca66802ef9a2a12ee199f5b0c1442%40%3Cdev.drill.apache.org%3E","tags":["mailing-list","x-refsource-mlist","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.apache.org/thread.html/519eb0fd45642dcecd9ff74cb3e71c20a4753f7d82e2f07864b5108f%40%3Cdev.drill.apache.org%3E","tags":["mailing-list","x-refsource-mlist","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.apache.org/thread.html/f9bc3e55f4e28d1dcd1a69aae6d53e609a758e34d2869b4d798e13cc%40%3Cissues.drill.apache.org%3E","tags":["mailing-list","x-refsource-mlist","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2019:3892","tags":["vendor-advisory","web","x-refsource-redhat","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-1000850","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-8p8g-f9vg-r7xr","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/square/retrofit","tags":["package"],"sources":["ghsa"]},{"url":"https://ihacktoprotect.com/post/retrofit-path-traversal","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.apache.org/thread.html/519eb0fd45642dcecd9ff74cb3e71c20a4753f7d82e2f07864b5108f@%3Cdev.drill.apache.org%3E","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.apache.org/thread.html/b0656d359c7d40ec9f39c8cc61bca66802ef9a2a12ee199f5b0c1442@%3Cdev.drill.apache.org%3E","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.apache.org/thread.html/f9bc3e55f4e28d1dcd1a69aae6d53e609a758e34d2869b4d798e13cc@%3Cissues.drill.apache.org%3E","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2018-1000850","url":"https://www.cve.org/CVERecord?id=CVE-2018-1000850","licence":"CVE Terms of Use","modified":"2024-08-05T12:47:57.315Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8p8g-f9vg-r7xr","url":"https://github.com/advisories/GHSA-8p8g-f9vg-r7xr","licence":"CC-BY-4.0","modified":"2024-02-16T08:01:53.624Z"},{"source":"nvd","name":"NVD","id":"CVE-2018-1000850","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-1000850","licence":"Public domain","modified":"2026-06-17T01:33:10.547Z"}],"updatedAt":"2026-11-25T22:57:41.334Z","epss":{"score":0.04033,"percentile":0.90849,"date":"2026-12-01T12:00:22.000Z"}}