CVE-2025-41359

7.8

Smallsrv · Small HTTP Server

Small HTTP Server 3.06.36 contains an unquoted service path vulnerability, allowing local attackers to achieve arbitrary code execution by placing a malicious executable in a higher priority directory.

Executive summary

A critical unquoted service path vulnerability in Small HTTP Server 3.06.36 allows local attackers to execute arbitrary code with elevated privileges.

Vulnerability

The software uses an unquoted service path for the executable, which permits a local user to escalate privileges by placing a rogue binary in a directory that the service path resolves to before the legitimate executable. This flaw requires local access but allows an attacker to bypass standard security boundaries.

Business impact

Successful exploitation grants an attacker the ability to run arbitrary code on the host system with the privileges of the service, typically resulting in full system compromise. Given the CVSS score of 7.8, this represents a high-severity risk to confidentiality, integrity, and availability that could lead to unauthorized data access or complete service disruption.

Remediation

Immediate Action: Update the Small HTTP Server installation to version V3.06.38 or later to resolve the path configuration issue.

Proactive Monitoring: Review system event logs for unauthorized service installations or unexpected process executions originating from the application directory.

Compensating Controls: If an immediate update is not possible, ensure that directory permissions for the service path are strictly locked down to prevent non-administrative users from writing or modifying files in the parent directories.

Exploitation status

Public Exploit Available: Unknown

Analyst recommendation

The risk posed by this vulnerability is significant due to the potential for local privilege escalation and arbitrary code execution. Administrators should prioritize upgrading to version V3.06.38 immediately to remediate the path configuration flaw and prevent potential system takeover by local actors.

Sources

Originally found and disclosed by Rafael Pedrero, per the CVE Program record.