Vulnerability advisory
CVE-2023-31136
PostgresNIO processes unencrypted bytes from man-in-the-middle
Also known as GHSA-9cfh-vx93-84vv
Severity
- CVSS 3.x
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
Affected versions
Repository
| Affected commits | Fixed by commit |
|---|---|
| GIT github.com/apple/swift-nio ↗ | |
| All commits before 8da5c5a4e6c5084c296b9f39dc54f00be146e0fa | 8da5c5a4e6c5084c296b9f39dc54f00be146e0fa |
| GIT github.com/vapor/postgres-nio ↗ | |
| All commits before 2df54bc94607f44584ae6ffa74e3cd754fffafc7 | 2df54bc94607f44584ae6ffa74e3cd754fffafc7 |
Also listed as affected (60)
| |
Description
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.
References
- Webgithub.com/vapor/postgres-nio/releases/tag/1.14.2 ↗
- Webwww.postgresql.org/support/security/CVE-2021-23214/ ↗
- Webwww.postgresql.org/support/security/CVE-2021-23222/ ↗
- Advisorygithub.com/CVEProject/cvelistV5/tree/main/cves/2023/31xxx/CVE-2023-31136.json ↗
- Advisorygithub.com/advisories/GHSA-467w-rrqc-395f ↗
- Advisorygithub.com/advisories/GHSA-735f-7qx4-jqq5 ↗
- Advisorygithub.com/vapor/postgres-nio/security/advisories/GHSA-9cfh-vx93-84vv ↗
- Advisorynvd.nist.gov/vuln/detail/CVE-2023-31136 ↗
- Fixgithub.com/apple/swift-nio/pull/2419 ↗
- Fixgithub.com/vapor/postgres-nio/commit/2df54bc94607f44584ae6ffa74e3cd754fffafc7 ↗