CVE-2023-31136
Vapor Postgresnio 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 workarounds for unpatched users.
Affected products
Postgresnio. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Vapor Postgresnio runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/vapor/postgres-nio/security/advisories/GHSA-9cfh-vx93-84vv · Vendor Advisory
- github.com/apple/swift-nio/pull/2419 · Patch
- github.com/vapor/postgres-nio/commit/2df54bc94607f44584ae6ffa74e3cd754fffafc7 · Patch
- github.com/advisories/GHSA-467w-rrqc-395f
- github.com/advisories/GHSA-735f-7qx4-jqq5
- github.com/vapor/postgres-nio/releases/tag/1.14.2
- www.postgresql.org/support/security/CVE-2021-23214/
- www.postgresql.org/support/security/CVE-2021-23222/
- nvd.nist.gov/vuln/detail/CVE-2023-31136
- cve.org/CVERecord?id=CVE-2023-31136
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.