Security Vulnerability Report
中文
CVE-2026-5789 CVSS 7.8 HIGH

CVE-2026-5789

Published: 2026-04-21 15:16:38
Last Modified: 2026-04-22 17:36:36

Description

Vulnerability related to an unquoted search path in CivetWeb v1.16. This vulnerability allows a local attacker to execute arbitrary code with elevated privileges by placing a malicious executable in a directory that is scanned before the intended application path (C:\Program Files\CivetWeb\CivetWeb.exe --), due to the absence of quotes in the service configuration.

CVSS Details

CVSS Score
7.8
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:civetweb_project:civetweb:1.16:*:*:*:*:*:*:* - VULNERABLE
CivetWeb v1.16

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# PowerShell script to demonstrate the vulnerability check and exploitation logic # Check for unquoted service paths $serviceName = "CivetWeb" $service = Get-WmiObject -Class Win32_Service -Filter "Name='$serviceName'" if ($service -and $service.PathName -notmatch '^"') { Write-Host "[+] Vulnerable Unquoted Service Path found: $($service.PathName)" # Extract potential executable paths based on spaces $pathParts = $service.PathName -split ' ' $potentialPaths = @() for ($i = 0; $i -lt $pathParts.Count - 1; $i++) { $potentialPath = -join ($pathParts[0..$i]) if ($potentialPath -match '\.exe$') { $potentialPaths += $potentialPath } } Write-Host "[+] Potential hijack points:" $potentialPaths | ForEach-Object { Write-Host " - $_" } # Simulation of placing a malicious payload # In a real attack, an attacker would copy a malicious binary to one of these paths # Example: Copy-Item "malicious.exe" "C:\Program.exe" Write-Host "[!] To exploit: Place a malicious executable at one of the hijack points and restart the service." } else { Write-Host "[-] Service not found or path is quoted." }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-5789", "sourceIdentifier": "[email protected]", "published": "2026-04-21T15:16:37.713", "lastModified": "2026-04-22T17:36:36.280", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Vulnerability related to an unquoted search path in CivetWeb v1.16. This vulnerability allows a local attacker to execute arbitrary code with elevated privileges by placing a malicious executable in a directory that is scanned before the intended application path (C:\\Program Files\\CivetWeb\\CivetWeb.exe --), due to the absence of quotes in the service configuration."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 8.5, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "LOW", "userInteraction": "NONE", "vulnConfidentialityImpact": "HIGH", "vulnIntegrityImpact": "HIGH", "vulnAvailabilityImpact": "HIGH", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.8, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-428"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:civetweb_project:civetweb:1.16:*:*:*:*:*:*:*", "matchCriteriaId": "08EDAEA7-0527-4382-BC29-F1FD3E199EF5"}]}]}], "references": [{"url": "https://www.incibe.es/en/incibe-cert/notices/aviso/search-path-without-quotes-civetweb", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}