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 package | Versions | Reported by |
|---|---|---|
| containernetworking plugins | >= 1.6.0, < 1.9.0 | CVE List |
| github.com/containernetworking/plugins (Go) | from 1.6.0 before 1.9.0 | GitHub Advisory Database, Go Vulnerability Database |
| linuxfoundation cni_network_plugins | from 1.6.0 before 1.9.0 | NVD |
All scores
| GitHub_M | 6.6medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H |
| GitHub | 6.6medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H |
| NVD | 3.6low CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N |
Classification
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
| https://github.com/containernetworking/plugins/security/advisories/GHSA-jv3w-x3r3-g6rm | advisory, vendor-advisory, web | |
| https://github.com/containernetworking/plugins/pull/1210 | fix, issue-tracking, patch, web | |
| https://github.com/containernetworking/plugins/releases/tag/v1.9.0 | product, release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-67499 | advisory | |
| https://github.com/containernetworking/plugins/commit/9b3772e1a7abf93cbb7c6526a28bc0d27b830e02 | fix, web | |
| https://github.com/containernetworking/plugins | package | |
| https://pkg.go.dev/vuln/GO-2026-4222 | web | |
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-67499 changed 2025-12-10 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-jv3w-x3r3-g6rm changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2025-4222 changed 2026-02-04 | CC-BY-4.0 |
| NVD | CVE-2025-67499 changed 2026-10-14 | Public domain |