9.9critical
NeuVector Enforcer is vulnerable to Command Injection and Buffer overflow
- Severity
- 9.9critical CVSS:3.1 by suse
- Exploit likelihood
- 0.48% (higher than 43% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- suse
- Also known as
- GHSA-c8g6-qrwh-m3vpGO-2025-4042
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| github.com/neuvector/neuvector | from 5.3.0 before 5.3.5, from 5.4.0 before 5.4.7, from 0.0.0-20230727023453-1c4957d53911 before 0.0.0-20251020133207-084a437033b4 | CVE List |
| github.com/neuvector/neuvector (Go) | from 5.3.0 before 5.3.5, from 5.4.0 before 5.4.7, from 0.0.0-20230727023453-1c4957d53911 before 0.0.0-20251020133207-084a437033b4 | GitHub Advisory Database, Go Vulnerability Database |
All scores
| suse | 9.9critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| GitHub | 9.9critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
Impact
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.
In the patched version, the monitor process validates the values of CLUSTER_RPC_PORT and CLUSTER_LAN_PORT to ensure they contain only valid port numbers before invoking the popen command.
If validation fails, the monitor process exits immediately, causing the enforcer container to terminate. This prevents the execution of any injected or malicious commands.
Patches
Patched versions include release v5.4.7 and above.
Workarounds
There is no workaround for this issue. Users are recommended to upgrade, as soon as possible, to a version of NeuVector that contains the fix.
References
If you have any questions or comments about this advisory:
- Reach out to the SUSE Rancher Security team for security related inquiries.
- Open an issue in the NeuVector repository.
- Verify with our support matrix and product support lifecycle.
Go Vulnerability Database
NeuVector Enforcer is vulnerable to Command Injection and Buffer overflow in github.com/neuvector/neuvector.
NOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.
(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)
The additional affected modules and versions are: github.com/neuvector/neuvector from v5.3.0 before v5.3.5, from v5.4.0 before v5.4.7.
NVD (es)
Se identificó una vulnerabilidad en NeuVector, donde el enforcer usó las variables de entorno CLUSTER_RPC_PORT y CLUSTER_LAN_PORT para generar un comando a ser ejecutado vía popen, sin sanitizar primero sus valores. El proceso de entrada del contenedor del enforcer es el proceso monitor. Cuando el contenedor del enforcer se detiene, el proceso monitor verifica si el subproceso consul ha terminado. Para realizar esta verificación, el proceso monitor usa la función popen para ejecutar un comando de shell que determina si los puertos usados por el subproceso consul aún están activos. Los valores de las variables de entorno CLUSTER_RPC_PORT y CLUSTER_LAN_PORT son usados directamente para componer comandos de shell vía popen sin validación o sanitización. Este comportamiento podría permitir a un usuario malintencionado inyectar comandos maliciosos a través de estas variables dentro del contenedor del enforcer.
References
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-54469 changed 2026-02-26 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-c8g6-qrwh-m3vp changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2025-4042 changed 2026-02-04 | CC-BY-4.0 |
| NVD | CVE-2025-54469 changed 2026-10-18 | Public domain |