{"id":"CVE-2023-31136","published":"2023-05-09T13:37:38Z","modified":"2025-01-28T17:05:03Z","title":"PostgresNIO processes unencrypted bytes from man-in-the-middle","vendor":"vapor","product":"postgres-nio","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.7,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00523,"percentile":0.37703,"provenance":"source"},"cwes":[{"id":"CWE-522","name":"Insufficiently Protected Credentials"}],"references":[{"url":"https://github.com/vapor/postgres-nio/security/advisories/GHSA-9cfh-vx93-84vv","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/apple/swift-nio/pull/2419","tags":["x_refsource_MISC"]},{"url":"https://github.com/vapor/postgres-nio/commit/2df54bc94607f44584ae6ffa74e3cd754fffafc7","tags":["x_refsource_MISC"]},{"url":"https://github.com/advisories/GHSA-467w-rrqc-395f","tags":["x_refsource_MISC"]},{"url":"https://github.com/advisories/GHSA-735f-7qx4-jqq5","tags":["x_refsource_MISC"]},{"url":"https://github.com/vapor/postgres-nio/releases/tag/1.14.2","tags":["x_refsource_MISC"]},{"url":"https://www.postgresql.org/support/security/CVE-2021-23214/","tags":["x_refsource_MISC"]},{"url":"https://www.postgresql.org/support/security/CVE-2021-23222/","tags":["x_refsource_MISC"]}],"priority":{"score":10.1,"factors":[{"name":"EPSS percentile","points":7.54},{"name":"CVSS severity","points":2.59}]},"vendorSlug":"vapor","affectedVersions":[{"vendor":"vapor","product":"postgres-nio","versions":["< 1.14.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-01-28T17:04:53.449827Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"SwiftURL","package":"github.com/vapor/postgres-nio","vulnerableRanges":["<1.14.2"],"patched":["1.14.2"],"from":["GHSA-9cfh-vx93-84vv"],"provenance":"source"}],"summary":{"text":"PostgresNIO, the Swift client library for PostgreSQL, accepts unencrypted bytes injected into the connection during TLS-enabled sessions, so the client can process false responses to its first few queries even though TLS certificate verification and encryption are in use. An attacker positioned as a man-in-the-middle on the network path can exploit this without authentication or user interaction, though the attack is difficult to carry out and affects only versions before 1.14.2.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:01:55Z"},"euvd":{"id":"EUVD-2023-1513","exploited":false,"provenance":"source"}}