CVE-2023-31136
MEDIUM EPSS 38.4%
Published May 9, 20233y ago · Modified Jun 17, 20262w ago
5.9 CVSS 3.1
Published May 9, 2023 3y ago
Last Modified Jun 17, 2026 2w ago
Description
PostgresNIO is a Swift client for PostgreSQL. Any user of PostgresNIO prior to version 1.14.2 connecting to servers with TLS enabled is vulnerable to a man-in-the-middle attacker injecting false responses to the client's first few queries, despite the use of TLS certificate verification and encryption. The vulnerability is addressed in PostgresNIO versions starting from 1.14.2. There are no known workarounds for unpatched users.
CVSS Details
Base Score
Exploitability
Impact
Vector string
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N Attack Vector Network
Attack Complexity High
Privileges Required None
User Interaction None
Scope Unchanged
Confidentiality High
Integrity None
Availability None
Threat Intelligence
EPSS Exploit Probability
38.4% percentile
Exploit & Patch Status
No Known Exploit
Patch Available
Weaknesses 1
CWE-522
Affected Products 1
| Vendor | Product | Version | Range |
|---|---|---|---|
| vapor | postgresnio | * | <1.14.2 |
References 8
- github.com https://github.com/advisories/GHSA-467w-rrqc-395f
- github.com https://github.com/advisories/GHSA-735f-7qx4-jqq5
- github.com https://github.com/apple/swift-nio/pull/2419
- github.com https://github.com/vapor/postgres-nio/commit/2df54bc94607f44584ae6ffa74e3cd754fffafc7
- github.com https://github.com/vapor/postgres-nio/releases/tag/1.14.2
- github.com https://github.com/vapor/postgres-nio/security/advisories/GHSA-9cfh-vx93-84vv
- postgresql.org https://www.postgresql.org/support/security/CVE-2021-23214/
- postgresql.org https://www.postgresql.org/support/security/CVE-2021-23222/
Remediation
- github.com https://github.com/apple/swift-nio/pull/2419
- github.com https://github.com/vapor/postgres-nio/commit/2df54bc94607f44584ae6ffa74e3cd754fffafc7