pgEdge Control Planeで認証なしにデータベースを操作される脆弱性
Summary
pgEdge Control Planeの0.1.0から0.10.1までは、生成されるpg_hba.confの先頭に信頼(trust)の認証設定が固定で入り、ローカル接続から資格情報なしでPostgreSQLのスーパーユーザーを含むどのロールでも接続できる状態でした。systemdオーケストレーターでは、データベースホストの一般ユーザーでも、ホスト上のデータベースを完全に操作される可能性があります。修正版は0.11.0です。対象の環境では、速やかに0.11.0以降に更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
pgEdge Control Planeの0.1.0から0.10.1までは、生成されるpg_hba.confの先頭に信頼(trust)の認証設定が固定で入り、ローカル接続から資格情報なしでPostgreSQLのスーパーユーザーを含むどのロールでも接続できる状態でした。systemdオーケストレーターでは、データベースホストの一般ユーザーでも、ホスト上のデータベースを完全に操作される可能性があります。修正版は0.11.0です。対象の環境では、速やかに0.11.0以降に更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| pgEdgecontrol-plane | — | Not listed |
| gogithub.com/pgEdge/control-plane |
< 0.11.0→ 0.11.0 |
0.11.0 |
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- web github.com
- web github.com
- web github.com