---
id: "CVE-2026-129160"
page: "https://infrastack.ai/live/CVE-2026-129160"
kind: "vulnerability"
aliases: ["CVE-2026-129160"]
title: "free-fs: SQL injection in share listing lets signed-in users read database"
severity: "high"
cvss: 7.1
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["free-fs", "java", "mybatis-flex", "package", "self-hosted"]
not_affected_if: ["unknown"]
published_at: "2026-11-13T18:17:40+00:00"
first_seen_at: "2026-11-13T18:49:30+00:00"
updated_at: "2026-11-13T18:51:32+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-129160", "first_seen_at": "2026-11-13T18:49:30+00:00"}]
exploit_sources: []
---

# free-fs: SQL injection in share listing lets signed-in users read database

Link for people: https://infrastack.ai/live/CVE-2026-129160 (this .md is for agents)

free-fs versions 2.0.1 through 2.3.1 pass an orderBy parameter from the /apis/share/pages endpoint straight into an SQL ORDER BY clause without a column allowlist. An authenticated user can use crafted CASE WHEN subqueries as a boolean oracle to read arbitrary database contents, such as share codes.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the free-fs version in the deployed project's package or build metadata: unknown whether it is in the 2.0.1 to 2.3.1 range without the project's own manifest
- Look for the `/apis/share/pages` endpoint and its `orderBy` parameter in the running application's routes

## Fix

- free-fs: unknown, the sources do not state a fixed version

## Timeline

- 2026-11-13T18:49:30+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-129160

## Documents

- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/dromara-free-fs-2.0.1-through-2.3.1-sql-injection-via-orderby-parameter

## From the sources

free-fs 2.0.1 through 2.3.1 contains an SQL injection vulnerability in FileShareServiceImpl.getPages, which passes the orderBy parameter of the /apis/share/pages endpoint verbatim into the ORDER BY clause via MyBatis-Flex without a column whitelist. Authenticated users can supply CASE WHEN subquery expressions that use share ordering as a boolean oracle to read arbitrary database contents, such as share codes.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
