Skip to content

CVE-2023-31136 PostgresNIO processes unencrypted bytes from man-in-the-middle

MediumCVSS 5.9 EPSS 0.49%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

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.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
swifturl github.com/vapor/postgres-nio(SwiftURL) < 1.14.2 1.14.2 Fixed
vapor postgresnio < 1.14.2 1.14.2 Fixed
vapor postgres-nio = < 1.14.2 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
swifturl github.com/vapor/postgres-nio(SwiftURL) < 1.14.2 1.14.2
vapor postgres-nio = < 1.14.2 No fix listed
vapor postgresnio < 1.14.2 1.14.2

References