Security Vulnerability Report
中文
CVE-2025-66446 CVSS 8.8 HIGH

CVE-2025-66446

Published: 2025-12-11 22:15:56
Last Modified: 2025-12-15 17:58:54

Description

MaxKB is an open-source AI assistant for enterprise. Versions 2.3.1 and below have improper file permissions which allow attackers to overwrite the built-in dynamic linker and other critical files, potentially resulting in privilege escalation. This issue is fixed in version 2.4.0.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:maxkb:maxkb:*:*:*:*:-:*:*:* - VULNERABLE
MaxKB <= 2.3.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/bin/bash # CVE-2025-66446 PoC - MaxKB Improper File Permissions # This PoC demonstrates checking for improper file permissions on MaxKB echo "[*] CVE-2025-66446 MaxKB Improper File Permissions Check" echo "[*] Target: MaxKB <= 2.3.1" # Check if MaxKB is installed MAXKB_PATHS=("/opt/maxkb" "/usr/local/maxkb" "/app/maxkb" "/opt/1panel/apps/maxkb") for path in "${MAXKB_PATHS[@]}"; do if [ -d "$path" ]; then echo "[+] Found MaxKB installation at: $path" # Check for world-writable files in critical directories echo "[*] Checking for improper file permissions..." # Check if critical files are writable CRITICAL_FILES=("$path" "$path/bin" "$path/lib" "$path/app") for file in "${CRITICAL_FILES[@]}"; do if [ -w "$file" ] 2>/dev/null; then echo "[!] WARNING: $file is world-writable!" fi done # Check MaxKB version if [ -f "$path/version" ]; then VERSION=$(cat "$path/version" 2>/dev/null) echo "[+] MaxKB Version: $VERSION" fi break fi done echo "[*] Mitigation: Upgrade to MaxKB >= 2.4.0"

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-66446", "sourceIdentifier": "[email protected]", "published": "2025-12-11T22:15:55.987", "lastModified": "2025-12-15T17:58:54.180", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "MaxKB is an open-source AI assistant for enterprise. Versions 2.3.1 and below have improper file permissions which allow attackers to overwrite the built-in dynamic linker and other critical files, potentially resulting in privilege escalation. This issue is fixed in version 2.4.0."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.6, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-362"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:maxkb:maxkb:*:*:*:*:-:*:*:*", "versionEndExcluding": "2.4.0", "matchCriteriaId": "E28BF7E2-E3AC-4B21-BE1A-18D1E24691A4"}]}]}], "references": [{"url": "https://github.com/1Panel-dev/MaxKB/releases/tag/v2.4.0", "source": "[email protected]", "tags": ["Release Notes"]}, {"url": "https://github.com/1Panel-dev/MaxKB/security/advisories/GHSA-5xx2-3q9w-jpgf", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}