# CVE-2018-1000850: Directory Traversal vulnerability in Square Retrofit

- Severity: High 7.5 (CVSS:3.0, scored by NVD) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 4.03%, higher than 90% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2018-12-20T15:00:00.000Z
- Modified: 2026-06-17T01:33:10.547Z
- Also known as: GHSA-8p8g-f9vg-r7xr
- Weaknesses: CWE-22
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- com.squareup.retrofit2:retrofit (Maven): from 2.0.0 before 2.5.0
- squareup retrofit: from 2.0.0 before 2.5.0

## Every score

- GitHub: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 6.4 Medium `AV:N/AC:L/Au:N/C:N/I:P/A:P`

## References

- <https://ihacktoprotect.com/post/retrofit-path-traversal/> (exploit, third-party-advisory)
- <https://github.com/square/retrofit/blob/master/CHANGELOG.md> (release-notes, third-party-advisory, web)
- <https://github.com/square/retrofit/commit/b9a7f6ad72073ddd40254c0058710e87a073047d#diff-943ec7ed35e68201824904d1dc0ec982> (patch, third-party-advisory, web)
- <https://lists.apache.org/thread.html/b0656d359c7d40ec9f39c8cc61bca66802ef9a2a12ee199f5b0c1442%40%3Cdev.drill.apache.org%3E> (mailing-list)
- <https://lists.apache.org/thread.html/519eb0fd45642dcecd9ff74cb3e71c20a4753f7d82e2f07864b5108f%40%3Cdev.drill.apache.org%3E> (mailing-list)
- <https://lists.apache.org/thread.html/f9bc3e55f4e28d1dcd1a69aae6d53e609a758e34d2869b4d798e13cc%40%3Cissues.drill.apache.org%3E> (mailing-list)
- <https://access.redhat.com/errata/RHSA-2019:3892> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2018-1000850> (advisory)
- <https://github.com/advisories/GHSA-8p8g-f9vg-r7xr> (advisory)
- <https://github.com/square/retrofit> (package)
- <https://ihacktoprotect.com/post/retrofit-path-traversal> (web)
- <https://lists.apache.org/thread.html/519eb0fd45642dcecd9ff74cb3e71c20a4753f7d82e2f07864b5108f@%3Cdev.drill.apache.org%3E> (web)
- <https://lists.apache.org/thread.html/b0656d359c7d40ec9f39c8cc61bca66802ef9a2a12ee199f5b0c1442@%3Cdev.drill.apache.org%3E> (web)
- <https://lists.apache.org/thread.html/f9bc3e55f4e28d1dcd1a69aae6d53e609a758e34d2869b4d798e13cc@%3Cissues.drill.apache.org%3E> (web)

## Sources

- CVE List: [CVE-2018-1000850](https://www.cve.org/CVERecord?id=CVE-2018-1000850), CVE Terms of Use, modified 2024-08-05
- GitHub Advisory Database: [GHSA-8p8g-f9vg-r7xr](https://github.com/advisories/GHSA-8p8g-f9vg-r7xr), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2018-1000850](https://nvd.nist.gov/vuln/detail/CVE-2018-1000850), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2018-1000850 · Whole record: https://cve.day/CVE-2018-1000850.json · Rebuilt by cve.day 2026-11-25T22:57:41.334Z
