CVE-2026-62858
What it is
YOURLS is a self-hosted, customizable URL shortener written in PHP. Prior to 1.10.5, yourls_get_request() extracted the request path without sanitization, after which yourls_sanitize_url() and yourls_esc_url() preserved dot and slash traversal sequences before an attacker-controlled keyword reached file_exists() and include() under YOURLS_PAGEDIR. An unauthenticated remote attacker could traverse outside the intended pages directory and include a local PHP file that was already present on the server, such as an uploaded or injected file, causing the file to execute in the YOURLS web process. This issue is fixed in version 1.10.5.
At a glance
- Exploitability
- Can be exploited locally on the machine with a low-privilege account. Limited direct impact.
- Exploit odds
- 0.5% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Details
- Published
- Last modified
- Exploit probability
- 0.5% · EPSS, next 30 days
- Weakness
- CWE-98
- Record status
- Deferred
Attack profile CVSS 3.1 · 5.3
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- Low
- Integrity
- Low
- Availability
- Low
Raw vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Fix and advisories
- https://github.com/YOURLS/YOURLS/commit/4e85972160a96e03a419a442d5bd8f21f2f02ddb
- https://github.com/YOURLS/YOURLS/pull/4142
- https://github.com/YOURLS/YOURLS/releases/tag/1.10.5
- https://github.com/YOURLS/YOURLS/security/advisories/GHSA-f8ff-652m-j5rx
- https://github.com/YOURLS/YOURLS/security/advisories/GHSA-f8ff-652m-j5rx
References
- https://github.com/YOURLS/YOURLS/commit/4e85972160a96e03a419a442d5bd8f21f2f02ddb
- https://github.com/YOURLS/YOURLS/pull/4142
- https://github.com/YOURLS/YOURLS/releases/tag/1.10.5
- https://github.com/YOURLS/YOURLS/security/advisories/GHSA-f8ff-652m-j5rx
- https://github.com/YOURLS/YOURLS/security/advisories/GHSA-f8ff-652m-j5rx