GitHub Advisoryadvisory · Maven

GHSA-8p8g-f9vg-r7xr Directory Traversal vulnerability in Square Retrofit

HIGH Published 2018-12-21 Modified 2022-09-14 Official page ↗
Aliases
CVE-2018-1000850
Ecosystem
Maven
Packages
com.squareup.retrofit2:retrofit
Severity
High
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Weaknesses
CWE-22
Reviewed
2020-06-16

Affected packages

• Maven com.squareup.retrofit2:retrofit: >= 2.0.0, < 2.5.0 → fixed in 2.5.0

Description

Square Retrofit versions from (including) 2.0 to 2.5.0 (excluding) contain a Directory Traversal vulnerability in RequestBuilder class, method addPathParameter. By manipulating the URL an attacker could add or delete resources otherwise unavailable to her. This attack appears to be exploitable via an encoded path parameter on POST, PUT or DELETE request. This vulnerability appears to have been fixed in 2.5.0 and later.

Related

Alias · CVE (1)

  • CVE-2018-1000850 Square Retrofit version versions from (including) 2.0 and 2.5.0 (excluding) contains a Directory Traversal vulnerability in RequestBuilder… vulnerability

Weakness · CWE (1)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness

References