DEV Community

SloaneWinterbourne
SloaneWinterbourne

Posted on

PostgreSQL 5432 is not the log_fdw surface: finding database extensions and admin paths

PostgreSQL 5432 is not the log_fdw surface: finding database extensions and admin paths

CVE-2026-139820 affects log_fdw, a PostgreSQL extension that exposes log files as foreign tables. Counting PostgreSQL services cannot identify the extension. The useful measurement separates database exposure from the extension's application-specific evidence and then moves to internal catalog review.

Query results

Query Matching indexed assets
app="PostgreSQL" 3,462,711
http.body="log_fdw" 1
http.body="postgresql-logfdw" 1

The observations ran on 2026-12-02 between 17:54:50Z and 17:54:53Z with sub_type=all, page 1 and page size 1.

Reading the counts

The PostgreSQL application count is a broad service inventory. It says nothing about extensions, grants, or the database version. log_fdw is installed inside a database and normally has no web page, so a public service count cannot reveal it.

The two body terms each returned one matching indexed asset. Those matches may be project documentation or a public code page, not a database host. They do not establish that the extension is running.

Security use

Use the broad PostgreSQL count to find unapproved internet-facing database services, then use internal database inventory to identify extension installations. Query pg_extension on each database and list foreign tables owned by the log_fdw handler. Confirm that non-superuser roles with the extension privilege are intentional.

Version 1.5 fixes the path validation. After the upgrade, review existing foreign table names and recreate or alter any value that is not a plain file name in the configured log directory.

Limits

ZoomEye does not authenticate to PostgreSQL, enumerate extensions, inspect roles, or read foreign table definitions. Public body evidence is not a substitute for a catalog query.

Next steps

Find every database with log_fdw installed and record the extension version, granted roles, and foreign table names. Restrict network access to the database and remove the extension where log queries are not required. Validate the fixed path behavior with a non-production role.

References

Top comments (0)