PostgresNIO processes unencrypted bytes from man-in-the-middle
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-522.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| vapor | postgres-nio | before 1.14.2 | 1.14.2 | Patch available | CNA |
| — | github.com/vapor/postgres-nio (SwiftURL) | before 1.14.2 | 1.14.2 | Patch available | GHSA-9cfh-vx93-84vv |
- postgres-nio Vendorvapor Affected before 1.14.2 Fixed in 1.14.2 Patch available CNA
- github.com/vapor/postgres-nio (SwiftURL) Vendor— Affected before 1.14.2 Fixed in 1.14.2 Patch available GHSA-9cfh-vx93-84vv
Remediation
- Fix · CNA postgres-nio (vapor) Fixed in 1.14.2
- Fix · GHSA-9cfh-vx93-84vv github.com/vapor/postgres-nio (SwiftURL) Fixed in 1.14.2 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2023-31136
- 2026-10-03 Alias added: GHSA-9cfh-vx93-84vv
References
Patch 2
Advisory 4
Other 6
- https://github.com/vapor/postgres-nio/releases/tag/1.14.2
- https://www.postgresql.org/support/security/CVE-2021-23214/
- https://www.postgresql.org/support/security/CVE-2021-23222/
- https://github.com/vapor/postgres-nio
- https://www.postgresql.org/support/security/CVE-2021-23214
- https://www.postgresql.org/support/security/CVE-2021-23222
Sources
- CVE-2023-31136 · CVE Program
- CVE-2023-31136 · NVD
- FIRST EPSS
- GHSA-9cfh-vx93-84vv · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences