Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2018-1000850
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:16 UTC · Revision 1
Source evidence
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.
osv:CVE-2018-1000850
Complete source record
{
"id": "a8b0622c1d0d92f5ba2b29c07d4899105ab984a84d9ba1f5e21de91d4bce9ea9",
"url": "https://osv.dev/vulnerability/CVE-2018-1000850",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2018-1000850",
"summary": "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.",
"evidence": "osv:CVE-2018-1000850",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2018-1000850",
"aliases": [
"CVE-2018-1000850",
"GHSA-8p8g-f9vg-r7xr"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/lysine-dev/retrofit",
"type": "GIT",
"events": [
{
"introduced": "c4551d99892a3a56708dd0c945efa5619337269a"
},
{
"fixed": "40621bf538f6d48af182350adc880406c53dc67c"
},
{
"fixed": "b9a7f6ad72073ddd40254c0058710e87a073047d"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:squareup:retrofit:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.0.0"
},
{
"fixed": "2.5.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "b9a7f6ad72073ddd40254c0058710e87a073047d"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"parent-2.4.0",
"parent-2.3.0",
"parent-2.2.0",
"parent-2.1.0",
"parent-2.0.2",
"parent-2.0.1",
"parent-2.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-1000850.json",
"vanir_signatures": [
{
"id": "CVE-2018-1000850-c0de96c1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"282019743193732630830698204799940691102",
"64972232031018248203669265891481643193",
"121801950204025245945316509664624312755",
"165656613596882824637386214993362788038",
"131892667169390676555214705087813365408",
"202302580626456642994099085394938148654",
"92096792369904633366057934115012669147",
"97026240915614146763193864591346597586",
"51712399448696671204953681802157976560"
]
},
"source": "https://github.com/lysine-dev/retrofit/commit/b9a7f6ad72073ddd40254c0058710e87a073047d",
"target": {
"file": "retrofit/src/main/java/retrofit2/RequestBuilder.java"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2018-1000850-cd119f10",
"digest": {
"length": 208,
"function_hash": "251728731700246826178612271796975777953"
},
"source": "https://github.com/lysine-dev/retrofit/commit/b9a7f6ad72073ddd40254c0058710e87a073047d",
"target": {
"file": "retrofit/src/main/java/retrofit2/RequestBuilder.java",
"function": "addPathParam"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2018-1000850-d2b4f013",
"digest": {
"threshold": 0.9,
"line_hashes": [
"257506406558547625836723806557143910288",
"108821499962909088012439465328424532505",
"280628440234572959754375067483681471204",
"304134629156940931326409526376170770848",
"175210626683847573878346970808021998939"
]
},
"source": "https://github.com/lysine-dev/retrofit/commit/b9a7f6ad72073ddd40254c0058710e87a073047d",
"target": {
"file": "retrofit/src/test/java/retrofit2/RequestFactoryTest.java"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-20T13:26:22Z"
}
}
],
"modified": "2026-10-20T13:26:22.953487456Z",
"provider": "osv",
"references": [
"https://lists.apache.org/thread.html/519eb0fd45642dcecd9ff74cb3e71c20a4753f7d82e2f07864b5108f%40%3Cdev.drill.apache.org%3E",
"https://lists.apache.org/thread.html/b0656d359c7d40ec9f39c8cc61bca66802ef9a2a12ee199f5b0c1442%40%3Cdev.drill.apache.org%3E",
"https://lists.apache.org/thread.html/f9bc3e55f4e28d1dcd1a69aae6d53e609a758e34d2869b4d798e13cc%40%3Cissues.drill.apache.org%3E",
"https://access.redhat.com/errata/RHSA-2019:3892",
"https://github.com/square/retrofit/blob/master/CHANGELOG.md",
"https://github.com/square/retrofit/commit/b9a7f6ad72073ddd40254c0058710e87a073047d#diff-943ec7ed35e68201824904d1dc0ec982",
"https://ihacktoprotect.com/post/retrofit-path-traversal/"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2018-1000850",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 387679,
"published_at": "2018-12-20T15:29:02.423+00:00"
}