CVE-2026-142185: Glide through 4.2.1 Path Traversal via Server::getSourcePath and Watermark
Glide through 4.2.1 contains a path traversal vulnerability that allows remote unauthenticated attackers to read images outside configured prefixes by supplying encoded dot-dot sequences. When image URLs are not signed, attackers can send ..%2F sequences in request paths or the mark parameter to read images elsewhere on the filesystem and write cache files outside cachepathprefix.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed to unauthenticated exploitation?
Deployments running Glide 4.2.1 with unsigned image URLs are exposed. A remote attacker does not need authentication or user interaction, but must be able to submit crafted image requests.
What request inputs can be used to trigger the traversal?
Encoded dot-dot sequences such as ..%2F can be supplied in the request path or in the mark parameter. These inputs can be used to access images outside configured prefixes and cause cache files to be written outside cache_path_prefix.
How can I determine whether my configuration is affected?
Check whether the application uses Glide 4.2.1 and permits image URLs that are not signed. If so, test or review handling of encoded ..%2F sequences in image paths and the mark parameter, including whether resulting source and cache paths can escape their configured prefixes.