Dromara free-fs 2.0.1 through 2.3.1 SQL Injection via orderBy Parameter
- State
- Published
- Severity
- 7.1 High
- Published
- Nov 13, 2026
- Updated
- Nov 16, 2026
- Reserved
- Nov 13, 2026
Description
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.
| Product | Versions |
|---|---|
| free-fs dromara | 2.0.1 through 2.3.1 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 7.1 High | VulnCheck | |
| 3.1 | 6.5 Medium | VulnCheck |
Weaknesses
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
References
- https://vul.yulun.ac.cn/20261024/free-fs/Third-Party Advisory
- https://github.com/dromara/free-fs/issues/28Issue Tracker
- https://github.com/dromara/free-fs/blob/f8f4ff2a0b0af8fcd5cbecbf99a4afb7d0b7c020/fs-modules/fs-file/src/main/java/com/xddcodec/fs/file/service/impl/FileShareServiceImpl.java#L93-L99Technical Details
- VulnCheck Advisory: Dromara free-fs 2.0.1 through 2.3.1 SQL Injection via orderBy ParameterThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.