CVE-2026-18737 Details
Description
Shlink contains a blind SQL injection vulnerability that allows any authenticated API key holder to inject arbitrary SQL fragments by supplying an unvalidated direction value in the orderBy query parameter of the tag statistics endpoint. Attackers can craft a malicious direction string containing SQL subqueries that flows unsanitized into a Doctrine QueryBuilder ORDER BY clause, enabling time-based, boolean-oracle, and error-based extraction of sensitive data including long URLs, visitor records, IP addresses, geolocation data, user agents, and hashed API key secrets from any tenant.
A blind SQL injection vulnerability has been identified in Shlink, a self-hosted URL shortener, affecting versions 3.3.1 prior to 5.1.5. The vulnerability allows authenticated API key holders to inject arbitrary SQL fragments by exploiting an unvalidated direction value in the 'orderBy' query parameter of the tag statistics endpoint. This injection occurs through the Doctrine QueryBuilder 'ORDER BY' clause, enabling attackers to extract sensitive data such as long URLs, visitor records, IP addresses, geolocation data, user agents, and hashed API key secrets from any tenant.
Users can upgrade to Shlink version 5.1.6 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Aug 3, 2026CISA-ADP
Assessed Aug 5, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/theopaid/SQL-injection-in-GET-rest-v-n-tags-stats-via-the-orderBy-parameter-shlink- | CISA-ADP | ExploitTechnical Analysis |
| https://github.com/shlinkio/shlink | [email protected] | ProductVendor |
| https://github.com/theopaid/SQL-injection-in-GET-rest-v-n-tags-stats-via-the-orderBy-parameter-shlink- | [email protected] | ExploitTechnical Analysis |
| https://www.vulncheck.com/advisories/shlink-blind-sql-injection-via-tags-stats-orderby-parameter | [email protected] | Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Shlink | >= 3.3.1, <= 5.1.5 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 23, 2026 | CVE Translated | [email protected] |
| Aug 5, 2026 | CVE Modified | CISA-ADP |
| Aug 3, 2026 | New CVE Received | [email protected] |
Volerion