DEV Community

andreagomez
andreagomez

Posted on

Four million PostgreSQL service matches do not mean four million patched hosts

Four million PostgreSQL service matches do not mean four million patched hosts

A ZoomEye count-only query for app="PostgreSQL" returned 3,460,016 matches at 23:44 UTC on December 1, 2026. The query service="postgresql" returned 4,004,796. Both used page 1, page size 1, and sub_type=all.

The two totals measure related but different fields. An application fingerprint and a protocol service label can disagree because of proxying, version exposure, indexing coverage, and how a banner is classified. Neither query reads the server's minor version, authentication configuration, or database roles.

The patch question behind the count

CVE-2026-116328 is an integer-wraparound issue in PostgreSQL generation memory contexts. It affects major versions 16, 17, and 18 before 16.16, 17.12, and 18.7 respectively. An authenticated database user can exploit the defect after a large allocation is freed and reused. The outcome is arbitrary code as the operating-system user running PostgreSQL.

An externally visible PostgreSQL service is a useful contact point, but it is not proof of the flaw. The server may run a vendor backport, be outside the affected major versions, or sit behind controls that restrict the database role. A public count cannot show any of those facts.

Use the service population carefully

The 4,004,796 service matches are a broad exposure map. They can help an organization ask where PostgreSQL is reachable and whether an owner expects it to be there. They are not a patching queue by themselves.

Join the internet observation with CMDB and package data. For owned addresses, collect the server version, OS package, extension list, authentication method, and role model. Prefer the application owner's evidence over an unverified banner.

Do not test the memory bug against third-party systems. The issue requires specific memory behavior and is unsafe to probe blindly. Use a controlled lab with a supported server and vendor-approved test material.

Produce a defensible finding

Record both dorks and their counts. State that the observations were taken at the same time and scope, and explain why the service count is larger. Then attach owner-confirmed versions and role information.

A good result says: these are the approved PostgreSQL endpoints, these builds are affected, these roles need review, and this is the patch owner. A bad result says: millions of PostgreSQL services are exploitable because a public index returned a large total.

Verification steps

  • Keep application and service counts separate.
  • Attribute service matches to an owner before testing.
  • Confirm the exact major and minor server version.
  • Review database roles with object, extension, or procedural-language authority.
  • Retest externally visible services after the patch to confirm expected coverage.

References

Top comments (0)