# Directory Traversal vulnerability in Square Retrofit

Advisory record · `GHSA-8p8g-f9vg-r7xr`

- **Identifiers:** `GHSA-8p8g-f9vg-r7xr` · `CVE-2018-1000850`
- **State:** Confirmed
- **Severity:** CVSS 7.5 High
- **Critical:** No
- **Weakness (CWE):** [CWE-22](https://cwe.mitre.org/data/definitions/22.html)
- **Tags:** [Path traversal](https://agentprime.io/advisories/tag/path-traversal.md)
- **Published:** 21 Dec 2018
- **Updated:** 16 Feb 2024
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 21 Dec 2018, 17:48 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `com.squareup.retrofit2:retrofit` (Maven): affected `>=2.0.0, <2.5.0`; fixed in `2.5.0`

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 7.5 High, CVSS 3.0: `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`, from GitHub Advisory Database

- **CISA KEV:** Not listed.
- **EPSS:** 0.040, the 90th percentile, on 19 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the GitHub Advisory Database, published 21 Dec 2018. New records show when each source confirmed them.

## Sources

- [GitHub Advisory Database: GHSA-8p8g-f9vg-r7xr](https://github.com/advisories/GHSA-8p8g-f9vg-r7xr)
- [OSV: GHSA-8p8g-f9vg-r7xr](https://osv.dev/vulnerability/GHSA-8p8g-f9vg-r7xr)
- <https://nvd.nist.gov/vuln/detail/CVE-2018-1000850>
- <https://github.com/square/retrofit/commit/b9a7f6ad72073ddd40254c0058710e87a073047d#diff-943ec7ed35e68201824904d1dc0ec982>
- <https://access.redhat.com/errata/RHSA-2019:3892>
- <https://github.com/advisories/GHSA-8p8g-f9vg-r7xr>
- <https://github.com/square/retrofit>
- <https://github.com/square/retrofit/blob/master/CHANGELOG.md>
- <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>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-8p8g-f9vg-r7xr>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-8p8g-f9vg-r7xr/>. Everything for agents: <https://agentprime.io/llms.txt>.
