CVE-2018-1000850 json
Directory Traversal vulnerability in Square Retrofit
published 2018-12-20 7 y ago modified 2026-06-17 4 mo ago also GHSA-8p8g-f9vg-r7xr , EUVD-2018-0804
- cvss
- 7.5
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 4.0%
- EPSS 4.0% chance of exploitation in 30 days, percentile 90%
- public exploits
- 0
- none known
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.
Patch / fix
- maven com.squareup.retrofit2:retrofit 2.5.0
- squareup retrofit 2.5.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2018-1000850 updated cvss 8.1
retrofit: Directory traversal in RequestBuilder allows manipulation of resources
-
Red Hat Fuse 7.5.0fixed: vendor fix RHSA-2019:3892
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
4.03% chance of exploitation in the next 30 days, higher than 90% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- ihacktoprotect.com https://ihacktoprotect.com/post/retrofit-path-traversal/ referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 2.0 | 6.4 | AV:N/AC:L/Au:N/C:N/I:P/A:P |
| GitHub | 3.0 | 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | com.squareup.retrofit2:retrofit | >=2.0.0, <2.5.0 |
2.5.0 |
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/square/retrofit/commit/b9a7f6ad72073ddd40254c0058710e87a073047d#diff-943ec7ed35e68201824904d1dc0ec982
web, patch, third-party-advisory
-
ihacktoprotect.com
/post/retrofit-path-traversal/
exploit, third-party-advisory
-
access.redhat.com
/errata/RHSA-2019:3892
vendor-advisory, web
-
github.com
/square/retrofit/blob/master/CHANGELOG.md
web, release-notes, third-party-advisory
-
lists.apache.org
/thread.html/b0656d359c7d40ec9f39c8cc61bca66802ef9a2a12ee199f5b0c1442%40%3Cdev.drill.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/519eb0fd45642dcecd9ff74cb3e71c20a4753f7d82e2f07864b5108f%40%3Cdev.drill.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/f9bc3e55f4e28d1dcd1a69aae6d53e609a758e34d2869b4d798e13cc%40%3Cissues.drill.apache.org%3E
mailing-list
-
nvd.nist.gov
/vuln/detail/CVE-2018-1000850
advisory
-
github.com
/advisories/GHSA-8p8g-f9vg-r7xr
advisory
-
github.com
/square/retrofit
package
-
ihacktoprotect.com
/post/retrofit-path-traversal
web
-
lists.apache.org
/thread.html/519eb0fd45642dcecd9ff74cb3e71c20a4753f7d82e2f07864b5108f@%3Cdev.drill.apache.org%3E
web
-
lists.apache.org
/thread.html/b0656d359c7d40ec9f39c8cc61bca66802ef9a2a12ee199f5b0c1442@%3Cdev.drill.apache.org%3E
web
-
lists.apache.org
/thread.html/f9bc3e55f4e28d1dcd1a69aae6d53e609a758e34d2869b4d798e13cc@%3Cissues.drill.apache.org%3E
web
Sources
- CVE List CVE-2018-1000850
- GitHub Advisory GHSA-8p8g-f9vg-r7xr
- NVD CVE-2018-1000850
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.