WaratekVRT Sign in

CVE-2018-1000850 Retrofit

Affected softwareRetrofit
Severity7.5 High CVSS 3.0 2 scores
Fixed in2.5.0
WeaknessPath traversal (CWE-22)
Published20 Dec 2018
Updated17 Jun 2026

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.

Exploitation status

No public exploit

No exploit has been reported in the sources we check. Published 7 years ago.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment no assessment published
  • Indexed PoC none indexed
  • EPSS 4.0% chance in 30 days

Waratek protection

Protected by Waratek

Waratek has a rule that blocks attacks on this vulnerability.

Decided by A vulnerability class already blocked by an ARMR security rule
Finding Protected by Waratek's ARMR path-traversal security rule, which blocks this class of attack at the JVM level without a rule written for this CVE specifically. The CVE's weakness is CWE-22: Path Traversal.
Candidate fix https://github.com/square/retrofit/commit/b9a7f6ad72073ddd40254c0058710e87a073047d#diff-943ec7ed35e68201824904d1dc0ec982 : a commit: the change itself

How to mitigate CVE-2018-1000850

Upgrade Retrofit to 2.5.0 or later. Until you can, Waratek RASP blocks exploitation with its path traversal rule. It runs inside the Java application, with no code changes.

Waratek RASP Runtime protection for Java applications

CVSS

7.5 HIGH v3.0 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N 2 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
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 Primary published
CVSS 2.0 6.4 none AV:N/AC:L/Au:N/C:N/I:P/A:P NVD Primary

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
com.squareup.retrofit2:retrofit 2.0.0 2.5.0 unbounded

Products and versions

2 products, 2 version entries
SourceVendorProductSchemeAffected versions
osv com.squareup.retrofit2 retrofit generic ≥ 2.0.0 and < 2.5.0
nvd squareup retrofit generic ≥ 2.0.0 and < 2.5.0

References

URLTags
https://github.com/square/retrofit/commit/b9a7f6ad72073ddd40254c0058710e87a073047d#diff-943ec7ed35e68201824904d1dc0ec982 commit
https://access.redhat.com/errata/RHSA-2019:3892 WEB
https://github.com/advisories/GHSA-8p8g-f9vg-r7xr ADVISORY
https://github.com/square/retrofit PACKAGE
https://github.com/square/retrofit/blob/master/CHANGELOG.md WEB
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
https://ihacktoprotect.com/post/retrofit-path-traversal/ Exploit, Third Party Advisory

Timeline

Published2018-12-20By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.