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.
References (8)
Core 8
Core References
Vendor Advisory x_refsource_confirm
https://github.com/vapor/postgres-nio/security/advisories/GHSA-9cfh-vx93-84vv
Patch x_refsource_misc
https://github.com/apple/swift-nio/pull/2419
Patch x_refsource_misc
https://github.com/vapor/postgres-nio/commit/2df54bc94607f44584ae6ffa74e3cd754fffafc7
Not Applicable x_refsource_misc
https://github.com/advisories/GHSA-467w-rrqc-395f
Not Applicable x_refsource_misc
https://github.com/advisories/GHSA-735f-7qx4-jqq5
Release Notes x_refsource_misc
https://github.com/vapor/postgres-nio/releases/tag/1.14.2
Not Applicable x_refsource_misc
https://www.postgresql.org/support/security/CVE-2021-23214/
Not Applicable x_refsource_misc
https://www.postgresql.org/support/security/CVE-2021-23222/
Scores
CVSS v3
3.7
EPSS
0.0027
EPSS Percentile
50.9%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
partial
Details
CWE
CWE-522
Status
published
Products (2)
SwiftURL/github.com/vapor/postgres-nio
0 - 1.14.2SwiftURL
vapor/postgresnio
< 1.14.2
Published
May 09, 2023
Tracked Since
Feb 18, 2026