CVE-2018-1000850
Directory Traversal vulnerability in Square Retrofit
Also known as GHSA-8p8g-f9vg-r7xr
Mitigation
- Upgrade com.squareup.retrofit2:retrofit to 2.5.0 or later.
Who should check
- Projects that depend on Maven package com.squareup.retrofit2:retrofit (>= 2.0.0, < 2.5.0)
- Anyone running n/a (versions: see the vendor advisory)
Vulnerability facts
- Affected
- com.squareup.retrofit2:retrofit >= 2.0.0, < 2.5.0
- Fixed in
- 2.5.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.5 (v3.0, NVD)CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: High
- Availability impact: None
- EPSS
- 4.03% chance of exploitation in 30 days (percentile 91, 2026-11-26)
- CWE
- CWE-22
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Maven com.squareup.retrofit2:retrofit | >= 2.0.0, < 2.5.0 | 2.5.0 | osv |
| n/a | — | — | nvd |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2018-1000850. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2018-1000850.md Affected: com.squareup.retrofit2:retrofit >= 2.0.0, < 2.5.0 Fixed in: 2.5.0 Steps: 1. Search this machine and project for com.squareup.retrofit2:retrofit (Maven), n/a: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Exploits and PoCs
Other
- https://github.com/square/retrofit/blob/master/CHANGELOG.md
- https://lists.apache.org/thread.html/b0656d359c7d40ec9f39c8cc61bca66802ef9a2a12ee199f5b0c1442%40%3Cdev.drill.apache.org%3E
- https://lists.apache.org/thread.html/519eb0fd45642dcecd9ff74cb3e71c20a4753f7d82e2f07864b5108f%40%3Cdev.drill.apache.org%3E
- https://lists.apache.org/thread.html/f9bc3e55f4e28d1dcd1a69aae6d53e609a758e34d2869b4d798e13cc%40%3Cissues.drill.apache.org%3E
- https://github.com/square/retrofit
- https://ihacktoprotect.com/post/retrofit-path-traversal
- https://lists.apache.org/thread.html/519eb0fd45642dcecd9ff74cb3e71c20a4753f7d82e2f07864b5108f@%3Cdev.drill.apache.org%3E
- https://lists.apache.org/thread.html/b0656d359c7d40ec9f39c8cc61bca66802ef9a2a12ee199f5b0c1442@%3Cdev.drill.apache.org%3E
- https://lists.apache.org/thread.html/f9bc3e55f4e28d1dcd1a69aae6d53e609a758e34d2869b4d798e13cc@%3Cissues.drill.apache.org%3E
FAQ
Is CVE-2018-1000850 being exploited?
There is no confirmed exploitation: CVE-2018-1000850 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 4.03% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2018-1000850?
High: CVSS 7.5 (v3.0, scored by NVD). Remote, no login needed.
Which versions are affected by CVE-2018-1000850?
com.squareup.retrofit2:retrofit >= 2.0.0, < 2.5.0.
Is there a fix for CVE-2018-1000850?
Yes. Fixed in 2.5.0. Upgrade com.squareup.retrofit2:retrofit to 2.5.0 or later.
How do I check if I'm affected by CVE-2018-1000850?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.