# CVE-2026-142185: Glide through 4.2.1 Path Traversal via Server::getSourcePath and Watermark

Source: https://aplosec.si/cve/CVE-2026-142185/

[AploSec](https://aplosec.si/) / [Disclosures](https://aplosec.si/disclosures/) / CVE-2026-142185

Medium 6.3 · Reported · No fix listed · CWE-22 · Packagist

# Glide through 4.2.1 Path Traversal via Server::getSourcePath and Watermark

CVE-2026-142185 · published 2026-12-02

In plain words: this type of bug lets someone read or write files outside the folder they should be limited to (path traversal). No fixed release is listed yet.

## Summary

CVE-2026-142185 affects Glide (Packagist) <= 4.2.1: Path Traversal via Server::getSourcePath and Watermark (CWE-22). No fixed release is listed. CVSS 4.0 base score 6.3 (Medium), assigned by VulnCheck. Published 2026-12-02 by VulnCheck. Credit: Zachariah Mithani (AploSec).

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 cache_path_prefix.

## Evidence

Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.

## Remediation

No fixed release is listed in the advisory. Check the references for upstream status.

## References

- [VulnCheck advisoryhttps://www.vulncheck.com/advisories/glide-through-4.2.1-path-traversal-via-server-getsourcepath-and-watermark](https://www.vulncheck.com/advisories/glide-through-4.2.1-path-traversal-via-server-getsourcepath-and-watermark)

- [Vulnerable codehttps://github.com/thephpleague/glide/blob/4.2.1/src/Server.php#L174-L193](https://github.com/thephpleague/glide/blob/4.2.1/src/Server.php#L174-L193)

- [Vulnerable codehttps://github.com/thephpleague/glide/blob/4.2.1/src/Manipulators/Watermark.php#L127-L152](https://github.com/thephpleague/glide/blob/4.2.1/src/Manipulators/Watermark.php#L127-L152)

- [CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-142185](https://www.cve.org/CVERecord?id=CVE-2026-142185)

**Severity:** Medium 6.3 CVSS 4.0, scored by VulnCheck in the [CVE record](https://www.cve.org/CVERecord?id=CVE-2026-142185)

**Package:** Glide

**Ecosystem:** Packagist

**Affected:** <= 4.2.1

**Fixed:** None

**Weakness:** CWE-22

**CNA:** VulnCheck

**Credit:** Zachariah Mithani (AploSec) finder
