Descrizione
pgEdge Control Plane is a distributed application for managing and orchestrating Postgres databases across multiple hosts. From 0.1.0 to 0.10.1, generated pg_hba.conf files began with hard-coded trust entries for Unix-socket and loopback connections. Because PostgreSQL evaluates the file from top to bottom, those entries also preempted operator-supplied rules in the pg_hba_conf field. Under the systemd orchestrator, any unprivileged operating-system account on a database host could authenticate as any PostgreSQL role, including the superuser, without credentials and obtain full control of the host's databases. Under Docker Swarm, reaching the container-local socket or loopback interface required code execution inside the database container. Publishing the PostgreSQL port to the host did not expose these trust rules because host connections did not appear to originate from 127.0.0.1 or ::1. This issue is fixed in version 0.11.0.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.8, EPSS 0.1% (percentile 2).
Versioni da aggiornare
- pgEdge control-plane: vulnerabile la versione
< 0.11.0→ installare l'ultima release supportata dal vendor.
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Non esporre l'interfaccia di gestione su Internet: consentire l'accesso solo da reti fidate e verificare la presenza di account, sessioni o chiavi non autorizzate.
Verifica
- Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
- Confrontare la versione installata con quelle indicate sopra.
- Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
- Ripetere la scansione per confermare la correzione.
Configurazioni interessate
| Vendor | Prodotto | Versioni vulnerabili | Corretta in |
|---|---|---|---|
| pgEdge | control-plane | < 0.11.0 | — |
Riferimenti
- Riferimentohttps://github.com/pgEdge/control-plane/blob/main/changes/v0.11.0.md
- Riferimentohttps://github.com/pgEdge/control-plane/commit/88659f7388fc6c86125e60475aa83810171145b7
- Riferimentohttps://github.com/pgEdge/control-plane/pull/470
- Riferimentohttps://github.com/pgEdge/control-plane/releases/tag/v0.11.0
- Riferimentohttps://github.com/pgEdge/control-plane/security/advisories/GHSA-vq9p-w6wv-cr25