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-108101 Overview
CVE-2026-108101 is an unrestricted file upload vulnerability in HortusFox (hortusfox-web) through version 6.3. The flaw resides in PlantAttachmentModel and the /plants/attachments/add endpoint, which accepts client-supplied file extensions and stores uploads under public/attachments/. Authenticated users can upload HTML or SVG files to achieve stored cross-site scripting (XSS). On deployments where the shipped .htaccess restrictions are not enforced, attackers can upload PHP files and achieve code execution. The weakness is categorized as [CWE-434: Unrestricted Upload of File with Dangerous Type].
Critical Impact
Authenticated attackers can store malicious HTML, SVG, or PHP files that execute in victim browsers or on the web server, leading to account takeover or full application compromise.
Affected Products
- HortusFox (hortusfox-web) through version 6.3
- PlantAttachmentModel component handling plant attachment uploads
- Deployments where web server .htaccess directives are not honored (e.g., Nginx or Apache with AllowOverride None)
Discovery Timeline
- 2026-10-09 - CVE-2026-108101 published to the National Vulnerability Database (NVD)
- 2026-10-13 - Last updated in NVD database
Technical Details for CVE-2026-108101
Vulnerability Analysis
HortusFox is a self-hosted plant management application written in PHP. The PlantAttachmentModel handles file uploads associated with plant records. The upload logic trusts the file name supplied by the client and preserves the original extension when writing the file to public/attachments/.
Because the extension is never normalized against an allowlist, an authenticated user posting to /plants/attachments/add can store files that the browser or web server will interpret as active content. Uploaded files are served directly from a web-accessible directory, so any resulting payload is reachable through a predictable URL. Review of the vulnerable write operation is available in the PlantAttachmentModel source.
Root Cause
The root cause is missing server-side validation of the uploaded file's MIME type and extension. HortusFox ships an .htaccess file intended to block script execution within the attachments directory, but this control is advisory and depends on the deployment. Nginx deployments, or Apache configured with AllowOverride None, silently ignore it, leaving PHP execution enabled.
Attack Vector
An authenticated low-privileged user submits a multipart upload to /plants/attachments/add referencing a crafted file. Two primary exploitation paths exist:
- Upload an .html or .svg file containing JavaScript. When another user opens the attachment link, the script executes under the HortusFox origin, enabling session theft and stored XSS. Technical analysis is published in the stored XSS write-up on HackMD.
- Upload a .php file. On servers that do not enforce the shipped .htaccess rules, requesting the file executes attacker-controlled PHP, yielding remote code execution in the web server context.
Further technical detail is available in the GitHub Security Advisory GHSA-8phf-v3xj-8jjg and the VulnCheck advisory.
// No verified exploit code is published. See the GitHub Security Advisory
// and VulnCheck advisory linked above for technical details.
Stop Remote Code Execution Before It Runs
Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.
Stop Exploit AttemptsDetection Methods for CVE-2026-108101
Indicators of Compromise
- Files with extensions such as .php, .phtml, .html, .htm, or .svg present under public/attachments/.
- Access log entries requesting /attachments/*.php or /attachments/*.svg returning HTTP 200.
- POST requests to /plants/attachments/add from accounts that do not normally manage plant records.
Detection Strategies
- Perform file integrity monitoring on public/attachments/ and alert on any non-image extension landing in that directory.
- Parse HortusFox web server logs for uploads where the Content-Disposition filename ends in an executable or markup extension.
- Correlate authenticated session activity with newly created attachment files to identify abusive accounts.
Monitoring Recommendations
- Forward web server, PHP-FPM, and application logs to a centralized analytics platform and retain them for incident review.
- Alert on PHP execution events originating from paths under public/attachments/.
- Monitor outbound connections from the HortusFox host for callbacks consistent with webshell activity.
How to Mitigate CVE-2026-108101
Immediate Actions Required
- Restrict access to HortusFox to trusted users and audit existing accounts, as exploitation requires authentication.
- Inventory public/attachments/ and remove any file whose extension is not an expected image type.
- Confirm that the web server enforces script execution restrictions on the attachments directory, independent of .htaccess.
Patch Information
At the time of publication, HortusFox versions through 6.3 are affected. Monitor the HortusFox GitHub repository and the GitHub Security Advisory GHSA-8phf-v3xj-8jjg for fixed releases and apply updates as soon as they are published.
Workarounds
- Configure the web server to deny execution and inline rendering of files under public/attachments/, forcing a Content-Disposition: attachment response.
- Place the attachments directory behind a handler that normalizes file extensions to a safe set (for example, .jpg, .png, .webp, .pdf).
- For Nginx deployments, add an explicit location block that blocks PHP handling and sets a restrictive Content-Security-Policy for served attachments.
# Nginx example: block script execution and force download for attachments
location ^~ /attachments/ {
default_type application/octet-stream;
add_header Content-Disposition "attachment";
add_header Content-Security-Policy "default-src 'none'; sandbox;";
add_header X-Content-Type-Options "nosniff";
location ~ \.(php|phtml|phar|html?|svg)$ {
return 403;
}
}
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

