Weakness · Medium

CWE-1327: Binding to an Unrestricted IP Address

What it is

The product assigns the address 0.0.0.0 for a database server, a cloud service/instance, or any computing resource that communicates remotely.

MITRE CWE 4.19.1

Severity (our rating)
Medium
Likelihood of exploit
Not rated by MITRE
Introduced during
System Configuration
Exploited in the wild
No CVE in CISA's catalog

In more detail

When a server binds to the address 0.0.0.0, it allows connections from every IP address on the local machine, effectively exposing the server to every possible network. This might be much broader access than intended by the developer or administrator, who might only be expecting the server to be reachable from a single interface/network.

What an attacker can do

  • DoS: Amplification (Availability)

How to prevent it

System Configuration

  • Assign IP addresses that are not 0.0.0.0.
  • Unwanted connections to the configured server may be denied through a firewall or other packet filtering measures.

CWE-1327 on MITRE's CWE site

H2 Security

Found it in your code?

We review where it appears, fix it with your team, and check it was not already used against you.

Talk to our team

T Academy

Stop writing it in the first place

Learn to build software and systems without weaknesses like this one, with practice on real hosts in your browser, every objective checked on the machine.

Start free

Source: MITRE Common Weakness Enumeration, CWE version 4.19.1. CWE is a trademark of The MITRE Corporation.