# GHSA-763j-3p5v-jfc6: androidqf: APK download Path Traversal in device APK paths

> A compromised Android device can exploit path traversal in androidqf to write files outside the intended directory on the forensic workstation.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Local or same network only
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 21 May 2026
- **Also known as:** GO-2026-5206

## What is GHSA-763j-3p5v-jfc6?

GHSA-763j-3p5v-jfc6 is a path traversal vulnerability in github.com/mvt-project/androidqf, published on 21 May 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

### Official description

### Summary
During device acquisition, `getPathToLocalCopy()` constructs local filesystem paths for downloaded APKs using a filename component extracted by `extractFileName()`. The extraction splits on `==/` and takes the remainder without sanitization. If a compromised device returns a crafted APK path containing traversal sequences, `filepath.Join` resolves them, allowing the file to be written outside the intended `apks/` directory.

Practical exploitability is limited because Android enforces strict package path formats under `/data/app/` and does not allow apps to register paths containing traversal sequences. Rated Informational as a defense-in-depth concern.

### Impact
An attacker with control of the connected device could potentially write files outside the expected output directory on the acquisition workstation, leading to arbitrary file overwrite with attacker-controlled content.

### Patched version
[1.8.3](https://github.com/mvt-project/androidqf/releases/tag/v1.8.3)

### Credits
- This issue was identified during a security assessment conducted by 0xche. 
- An additional vulnerability was independently identified by @0x0v1

## Which versions are affected by GHSA-763j-3p5v-jfc6?

3 open source packages ship an affected version, including github.com/mvt-project/androidqf.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `github.com/mvt-project/androidqf` | Go | All versions | 1.8.3 |
| `github.com/mvt-project/androidqf` | Go | All versions | 1.8.3 |
| `github.com/mvt-project/androidqf` | Go | All versions | 1.8.3 |

## How do I fix GHSA-763j-3p5v-jfc6?

Upgrade github.com/mvt-project/androidqf to 1.8.3 or later.

## Is GHSA-763j-3p5v-jfc6 being exploited?

There is no known exploitation of GHSA-763j-3p5v-jfc6 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-763j-3p5v-jfc6 and fix it if it is affected.

What it is: GHSA-763j-3p5v-jfc6 is a path traversal vulnerability in github.com/mvt-project/androidqf, published on 21 May 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of GHSA-763j-3p5v-jfc6 in the wild and no public exploit code.

Affected packages and fixed versions:
- github.com/mvt-project/androidqf (Go): affected all versions; fixed in 1.8.3
- github.com/mvt-project/androidqf (Go): affected all versions; fixed in 1.8.3
- github.com/mvt-project/androidqf (Go): affected all versions; fixed in 1.8.3

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/GHSA-763j-3p5v-jfc6/ (Markdown: https://insights.sbomify.com/GHSA-763j-3p5v-jfc6/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-763j-3p5v-jfc6

---
From sbomify Insights: https://insights.sbomify.com/GHSA-763j-3p5v-jfc6/
Summaries are generated and may contain mistakes; the official description above is the record.
