CVE-2018-1000850: Directory Traversal vulnerability in Square Retrofit

Summary

21/12/2018
Yes i
High
7.5

CVE-2018-1000850: Directory Traversal vulnerability in Square Retrofit. Affects com.squareup.retrofit2:retrofit versions >= 2.0.0, < 2.5.0. Fixed in 2.5.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Square Retrofit is a popular library for creating HTTP clients in Android and Java applications. It provides a simple and efficient way to make network requests and handle responses. The vulnerability affects versions 2.0 to 2.5.0 (excluding 2.5.0) of the library. Retrofit's RequestBuilder class, specifically the addPathParameter method, is vulnerable to a Directory Traversal attack. This vulnerability allows an attacker to manipulate the URL and gain unauthorized access to resources that are otherwise unavailable. The attack can be executed by sending a specially crafted encoded path parameter in a POST, PUT, or DELETE request. The vulnerability has been assigned a CVSS score of 7.5, indicating a high severity level.

Vulnerability Detail

The Directory Traversal vulnerability in Square Retrofit allows an attacker to bypass access controls and gain unauthorized access to resources on the server. By manipulating the URL, the attacker can add or delete resources that should not be accessible to them. This can lead to various security issues, such as unauthorized data access, data manipulation, or even server compromise. The vulnerability has been fixed in version 2.5.0 and later of Square Retrofit.

How To Fix

Minimum fixed version

2.5.0

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is strongly advised to upgrade to the fixed version of Square Retrofit as soon as possible.

Conclusion

The Directory Traversal vulnerability in Square Retrofit can lead to unauthorized access to server resources and other security issues. It is crucial to upgrade to version 2.5.0 or later of Square Retrofit to mitigate this vulnerability. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for com.squareup.retrofit2:retrofit →

Share this vulnerability

FAQ

Square Retrofit is a library for creating HTTP clients in Android and Java applications. It simplifies the process of making network requests and handling responses.

Versions 2.0 to 2.5.0 (excluding 2.5.0) of Square Retrofit are affected by this vulnerability.

An attacker can exploit this vulnerability by sending a specially crafted encoded path parameter in a POST, PUT, or DELETE request. By manipulating the URL, the attacker can gain unauthorized access to resources on the server.

Yes, the vulnerability has been fixed in version 2.5.0 and later of Square Retrofit.

The CVSS score of this vulnerability is 7.5, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for com.squareup.retrofit2:retrofit.

How To Fix

Minimum fixed version

2.5.0

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback