CVE-2023-31136 — PostgresNIO is a Swift client for PostgreSQL
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
Published
2023-05-09T13:37:38.193Z
Last modified
2025-01-28T17:05:03.749Z
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
01What is this vulnerability?
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…
02Affected products
| Vendor | Product | Versions |
|---|
| vapor | postgres | nio — < 1.14.2 |
03Active exploitation status
Not currently listed on the CISA Known Exploited Vulnerabilities (KEV) catalog. EPSS is the best forward-looking signal — see the EPSS row above.
04Recommended remediation
- Patch to a fixed version listed in the vendor advisory (see references below).
- Mitigate with WAF rules, network egress filters, or feature flags where the patch is not yet available.
- Hunt historical logs for exploitation indicators — see Detection signatures below.
05Technical details
For the full vendor write-up, exploit chains, and reference implementations, see the references list in section 09.
06Detection signatures
Ask SARA in chat to draft a starting detection for this CVE in your stack of choice.
07Related CVEs
08Timeline
- Published: 2023-05-09T13:37:38.193Z
- Last modified: 2025-01-28T17:05:03.749Z
09References
- github.com — https://github.com/vapor/postgres-nio/security/advisories/GHSA-9cfh-vx93-84vv
- github.com — https://github.com/apple/swift-nio/pull/2419
- github.com — https://github.com/vapor/postgres-nio/commit/2df54bc94607f44584ae6ffa74e3cd754ff…
- github.com — https://github.com/advisories/GHSA-467w-rrqc-395f
- github.com — https://github.com/advisories/GHSA-735f-7qx4-jqq5
- github.com — https://github.com/vapor/postgres-nio/releases/tag/1.14.2
- www.postgresql.org — https://www.postgresql.org/support/security/CVE-2021-23214/
- www.postgresql.org — https://www.postgresql.org/support/security/CVE-2021-23222/
Want this in your SOAR or SIEM?
SARA's API returns EPSS, CVSS, KEV, and an analyst-grade summary in one call.
Read the API reference →