GHSL-2026-106: Malicious deep links enable arbitrary file writes in OsmAnd - CVE-2026-65996
The OsmAnd Android app's /open-gpx deep link used the attacker-supplied name parameter as the output filename without sanitisation, allowing path traversal. An attacker could make the app download a remote .gpx file and write it to arbitrary locations within OsmAnd's scoped storage, such as the favourites, tracks, routing and rendering directories.
OsmAnd version OsmAnd5.3.2 is vulnerable to a path traversal issue (GHSL-2026-106) via the /open-gpx deep link, allowing a remote attacker to retrieve arbitrary URLs from the device’s network context and write attacker-controlled .gpx files to arbitrary locations within OsmAnd’s scoped storage directory.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The name query parameter was used directly as a filename without stripping directory separators, and the sanitiser was only applied when the parameter was empty.
Impact
An attacker could write attacker-controlled .gpx files to any subdirectory of OsmAnd's scoped external storage, including favourites, tracks, routing and rendering; however, the app's internal backup and merge logic prevented overwriting existing Home/Work favourites, and new tracks only appear in the listing unless the user selects them.
What the attacker needed
Victim opens a crafted deep link; or a malicious app on the device triggers it; attacker hosts a .gpx file
The fix
The maintainer confirmed all vulnerabilities were fixed.
How it was found
- Host a malicious .gpx file on an attacker-controlled server.
- Craft an OsmAnd deep link with a url parameter pointing to that file and a name parameter containing directory traversal.
- Get the victim to open the link in a browser or trigger it from a malicious app.
- OsmAnd downloads the file and writes it to the traversed location within its scoped storage.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A deep link is a web address that opens a specific app instead of a web page. OsmAnd accepted a link that told it to download a file and save it under a name chosen by the sender; because that name could contain '../', the file could be saved outside the intended import folder. The attacker could then place a crafted file where the app keeps favourites or tracks, though the app's own backup logic limited some kinds of overwriting.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.