Path Traversal in Squareup Retrofit
CVE-2018-1000850
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.
Vulnerability class: Path Traversal (Directory Traversal)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
EPSS exploit prediction
EPSS 0.040, 90.8th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- shoucheng3/square__retrofit_CVE-2018-1000850_2-4-0 (last pushed 2025-08-20)
Also mentioned in 19 other repositories (Anonymous-Phunter/PHunter, A-TPL-Bench/LibHunter, CGCL-codes/LibHunter, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/square/retrofit/blob/master/CHANGELOG.md (Third Party Advisory, Release Notes)
- github.com/square/retrofit/commit/b9a7f6ad72073ddd40254c0058710e87a073047d (Patch, Third Party Advisory)
- ihacktoprotect.com/post/retrofit-path-traversal/ (Exploit, Third Party Advisory)
- [drill-dev] 20191017 Dependencies used by Drill contain known vulnerabilities (mailing-list)
- [drill-dev] 20191021 [jira] [Created] (DRILL-7416) Updates required to dependencies to resolve potential security vulnerabilities (mailing-list)
- [drill-issues] 20191021 [jira] [Created] (DRILL-7416) Updates required to dependencies to resolve potential security vulnerabilities (mailing-list)
- RHSA-2019:3892 (vendor-advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.