CVE-2023-31136
MEDIUM 5.9CVSS 3.1PostgresNIO processes unencrypted bytes from man-in-the-middle
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.
- Published
- 9 May 2023
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-522
- Also known as
- GHSA-9cfh-vx93-84vv
- Sources
- NVDJSONOSV GHSA-9cfh-vx93-84vvJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | vapor | postgresniocpe:2.3:a:vapor:postgresnio:*:*:*:*:*:postgresql:*:* |
< 1.14.2 | 1.14.2 |
| OSV | SwiftURL | github.com/vapor/postgres-nio | < 1.14.2 | 1.14.2 |
References
- https://github.com/advisories/GHSA-467w-rrqc-395f · Not Applicable, ADVISORY
- https://github.com/advisories/GHSA-735f-7qx4-jqq5 · Not Applicable, ADVISORY
- https://github.com/apple/swift-nio/pull/2419 · Patch, WEB
- https://github.com/vapor/postgres-nio/commit/2df54bc94607f44584ae6ffa74e3cd754fffafc7 · Patch, WEB
- https://github.com/vapor/postgres-nio/releases/tag/1.14.2 · Release Notes, WEB
- https://github.com/vapor/postgres-nio/security/advisories/GHSA-9cfh-vx93-84vv · Vendor Advisory, WEB
- https://www.postgresql.org/support/security/CVE-2021-23214/ · Not Applicable, WEB
- https://www.postgresql.org/support/security/CVE-2021-23222/ · Not Applicable, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-31136 · ADVISORY
- https://github.com/vapor/postgres-nio · PACKAGE
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 9 May 2023)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 10 May 2023)