CVE-2026-134034: HortusFox: Identifier-position SQL Injection in HortusFox AdminController allows persistent passwordless admin access
HortusFox is a self-hosted web application for collaborative plant management. Prior to 6.2, the togglebooleanvalue() handler in app/controller/admin.php passes the name parameter of the /admin/environment/boolean/toggle route in app/config/routes.php to AppModel::updateSingle() in app/models/AppModel.php, which concatenates the parameter into the SQL UPDATE identifier position without validation. An unauthenticated attacker can induce a signed-in administrator to open a crafted link, causing SQL injection that permits expressions and subqueries to read database contents, including an administrator password hash, or modify settings to enable passwordless administrator access. The hash alone does not permit direct login. This issue is fixed in version 6.2.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 6.2
Event History
Frequently Asked Questions
Who is exposed to exploitation?
HortusFox deployments running versions before 6.2 are affected. Exploitation requires a signed-in administrator to open an attacker-crafted link; the attacker does not need to be authenticated.
What can an attacker do through this issue?
The injection can be used to read database content through expressions and subqueries, including an administrator password hash, or to alter settings that enable passwordless administrator access. The password hash by itself cannot be used for direct login.
Are deployments safe if administrators avoid untrusted links?
Avoiding attacker-crafted links reduces the immediate exploitation path because administrator interaction is required, but affected versions still contain the vulnerable route and SQL construction. Upgrade to version 6.2 to remediate the issue.
What is the priority mitigation if upgrading cannot happen immediately?
Limit administrator exposure to untrusted links and prevent administrators from opening unexpected URLs while signed in. This is only a temporary mitigation; the provided fix is HortusFox 6.2.