CVE-2025-67499
JSON

6.6medium

CNI Plugins Portmap nftables backend intercepts non-local traffic

Severity
6.6medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.15% (higher than 4% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-jv3w-x3r3-g6rmGO-2025-4222

Description

The CNI portmap plugin allows containers to emulate opening a host port, forwarding that traffic to the container. Versions 1.6.0 through 1.8.0 inadvertently forward all traffic with the same destination port as the host port when the portmap plugin is configured with the nftables backend, thus ignoring the destination IP. This includes traffic not intended for the node itself, i.e. traffic to containers hosted on the node. Containers that request HostPort forwarding can intercept all traffic destined for that port. This requires that the portmap plugin be explicitly configured to use the nftables backend. This issue is fixed in version 1.9.0. To workaround, configure the portmap plugin to use the iptables backend. It does not have this vulnerability.

Affected

Product or packageVersionsReported by
containernetworking plugins>= 1.6.0, < 1.9.0CVE List
github.com/containernetworking/plugins (Go)from 1.6.0 before 1.9.0GitHub Advisory Database, Go Vulnerability Database
linuxfoundation cni_network_pluginsfrom 1.6.0 before 1.9.0NVD

All scores

GitHub_M6.6medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H
GitHub6.6medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H
NVD3.6low CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N

Classification

CWE-200

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

The CNI portmap plugin allows containers to emulate opening a host port, forwarding that traffic to the container. Versions 1.6.0 through 1.8.0 inadvertently forward all traffic with the same destination port as the host port when the portmap plugin is configured with the nftables backend, thus ignoring the destination IP. This includes traffic not intended for the node itself, i.e. traffic to containers hosted on the node. Containers that request HostPort forwarding can intercept all traffic destined for that port. This requires that the portmap plugin be explicitly configured to use the nftables backend. This issue is fixed in version 1.9.0. To workaround, configure the portmap plugin to use the iptables backend. It does not have this vulnerability.

GitHub Advisory Database
Background

The CNI portmap plugin allows containers to emulate opening a host port, forwarding that traffic to the container. For example, if a host has the IP 198.51.100.42, a container may request that all packets to 198.51.100.42:53 be forwarded to the container's network.

Vulnerability

When the portmap plugin is configured with the nftables backend, it inadvertently forwards all traffic with the same destination port as the host port, ignoring the destination IP. This includes traffic not intended for the node itself, i.e. traffic to containers hosted on the node.

In the given example above, traffic destined to port 53 but for a separate container would still be captured and forwarded, even though it was not destined for the host.

Impact

Containers (i.e. kubernetes pods) that request HostPort forwarding can intercept all traffic destined for that port. This requires that the portmap plugin be explicitly configured to use the nftables backend. (The iptables backend is the default.)

Patches

This is fixed as of CNI plugins v1.9.0

Workarounds

Configure the portmap plugin to use the iptables backend. It does not have this vulnerability.

Go Vulnerability Database

CNA Plugins Portmap nftables backend can intercept non-local traffic in github.com/containernetworking/plugins

NVD (es)

El plugin CNI portmap permite a los contenedores emular la apertura de un puerto del host, reenviando ese tráfico al contenedor. Las versiones 1.6.0 a 1.8.0 reenvían inadvertidamente todo el tráfico con el mismo puerto de destino que el puerto del host cuando el plugin portmap está configurado con el backend nftables, ignorando así la IP de destino. Esto incluye tráfico no destinado al propio nodo, es decir, tráfico a contenedores alojados en el nodo. Los contenedores que solicitan el reenvío de HostPort pueden interceptar todo el tráfico destinado a ese puerto. Esto requiere que el plugin portmap esté configurado explícitamente para usar el backend nftables. Este problema está solucionado en la versión 1.9.0. Como solución alternativa, configure el plugin portmap para usar el backend iptables. No tiene esta vulnerabilidad.

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2025-67499 changed 2025-12-10CVE Terms of Use
GitHub Advisory DatabaseGHSA-jv3w-x3r3-g6rm changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2025-4222 changed 2026-02-04CC-BY-4.0
NVDCVE-2025-67499 changed 2026-10-14Public domain