CVE-2026-18737
JSON

7.1high

Shlink Blind SQL Injection via tags/stats orderBy Parameter

Severity
7.1high CVSS:4.0 by VulnCheck
Exploit likelihood
0.30% (higher than 24% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulnCheck

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.

Affected

Product or packageVersionsReported by
shlinkio Shlinkfrom 3.3.1 up to 5.1.5CVE List

All scores

VulnCheck7.1high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
VulnCheck6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Classification

CWE-89

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Shlink contiene una vulnerabilidad de inyección SQL ciega que permite a cualquier titular de clave API autenticada inyectar fragmentos SQL arbitrarios al proporcionar un valor de dirección no validado en el parámetro de consulta orderBy del endpoint de estadísticas de etiquetas. Los atacantes pueden elaborar una cadena de dirección maliciosa que contenga subconsultas SQL que fluye sin sanear a una cláusula ORDER BY de Doctrine QueryBuilder, lo que permite la extracción de datos sensibles basada en tiempo, oráculo booleano y errores, incluyendo URLs largas, registros de visitantes, direcciones IP, datos de geolocalización, agentes de usuario y secretos de claves API hasheadas de cualquier inquilino.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-18737 changed 2026-08-05CVE Terms of Use
NVDCVE-2026-18737 changed 2026-10-23Public domain