Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-108100 Overview
CVE-2026-108100 is a SQL injection vulnerability in HortusFox (hortusfox-web) versions prior to 6.2. The flaw affects the /api/locations/list endpoint, where attacker-controlled include_info values are concatenated into a raw SQL column list by PlantsModel::getSpecificInfo(). Authenticated API token holders can embed subqueries in include_info to read arbitrary database tables, including stored user password hashes. The vulnerability is tracked under CWE-89 and was addressed upstream in version 6.2.
Critical Impact
Authenticated attackers with any valid API token can exfiltrate every table in the HortusFox database, including user credential hashes, by injecting subqueries into the include_info parameter.
Affected Products
- HortusFox (hortusfox-web) all versions before 6.2
- HortusFox v6.1 (confirmed vulnerable code path in app/controller/api.php and app/models/PlantsModel.php)
- Any self-hosted HortusFox instance exposing the /api/locations/list endpoint to API token holders
Discovery Timeline
- 2026-10-09 - CVE-2026-108100 published to NVD
- 2026-10-14 - Last updated in NVD database
Technical Details for CVE-2026-108100
Vulnerability Analysis
The vulnerable code path lives in the HortusFox API controller. When a client calls /api/locations/list with an include_info query parameter, the controller forwards those values to PlantsModel::getSpecificInfo(). That method concatenates the user-supplied strings directly into the SELECT column list of a raw SQL query rather than validating them against an allow-list of known plant attributes.
Because the values become part of the column expression, an attacker can supply a scalar subquery such as (SELECT password FROM users LIMIT 1) and have it executed as part of the SELECT clause. The query result is returned in the JSON response alongside the legitimate location data. This gives any API token holder read access to every table reachable by the application's database user, including password hashes used for authentication.
Root Cause
The root cause is missing input validation on the include_info parameter combined with raw SQL string concatenation. In HortusFox v6.1, PlantsModel::getSpecificInfo() iterates over caller-supplied attribute names and inserts them into the column list without checking them against an allow-list. The upstream patch introduces an $allowed_attributes list and rejects any value not in that list before building the query.
Attack Vector
Exploitation requires a valid API token but no additional user interaction. An attacker sends an authenticated HTTP request to /api/locations/list with crafted include_info entries containing SQL subqueries. The injected subquery runs with the privileges of the HortusFox database account and returns results inline in the API response, enabling full database content disclosure.
// Security patch in app/models/PlantsModel.php
// Validate attributes before performing SQL raw query
];
static $allowed_attributes = [
+ 'id',
'name',
'scientific_name',
'knowledge_link',
// Source: https://github.com/danielbrendel/hortusfox-web/commit/c0c0f4057dd8376b63c34028de36c8c6b6288fee
The patch extends the $allowed_attributes allow-list so that only known column identifiers pass validation. Any value outside the list is rejected before it reaches the raw SQL builder, blocking subquery injection.
Detection Methods for CVE-2026-108100
Indicators of Compromise
- HTTP requests to /api/locations/list containing SQL keywords such as SELECT, UNION, FROM, or parenthesized subqueries inside the include_info parameter.
- API responses from /api/locations/list whose JSON payloads include fields matching password hash formats (for example $2y$, $argon2) or other sensitive column data.
- Database query logs showing unexpected cross-table reads originating from the HortusFox application user against tables such as users.
Detection Strategies
- Enable web server access logging for the /api/locations/list endpoint and alert on include_info values containing non-alphanumeric characters, parentheses, or SQL reserved words.
- Enable MySQL/MariaDB general or slow query logging on the HortusFox database and search for SELECTs that reference the users table but originate from the plants/locations code path.
- Review API token usage patterns for anomalous request volume or unusual client source addresses against the locations endpoint.
Monitoring Recommendations
- Forward web server, application, and database logs to a central SIEM or data lake for correlation across the three layers.
- Create an identification rule that fires when include_info request values contain characters outside [A-Za-z0-9_,].
- Monitor outbound responses from /api/locations/list for bcrypt or argon2 hash patterns, which should never appear in legitimate location data.
How to Mitigate CVE-2026-108100
Immediate Actions Required
- Upgrade HortusFox to version 6.2 or later, which introduces the $allowed_attributes validation in PlantsModel::getSpecificInfo().
- Rotate every HortusFox API token after patching, assuming tokens may have been used to extract credential material.
- Force a password reset for all HortusFox user accounts and invalidate active sessions, since stored password hashes may have been exposed.
Patch Information
The fix is contained in upstream commit c0c0f40 and shipped in HortusFox 6.2. Operators should pull the 6.2 release from the HortusFox project repository and redeploy. Reference details are also published in the GitHub Security Advisory GHSA-4w8p-x2jj-42w7 and the VulnCheck advisory.
Workarounds
- Restrict /api/locations/list at the reverse proxy or WAF layer to block requests whose include_info parameter contains characters other than letters, digits, underscores, and commas.
- Revoke API tokens that are not actively required and limit remaining tokens to trusted source IP ranges.
- Reduce the privileges of the HortusFox database account so it cannot read authentication tables unrelated to plant and location data.
# Example nginx snippet to drop suspicious include_info values
location /api/locations/list {
if ($arg_include_info ~* "[^A-Za-z0-9_,]") {
return 400;
}
proxy_pass http://hortusfox_upstream;
}
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

