# CVE-2023-31136: PostgresNIO processes unencrypted bytes from man-in-the-middle

- Severity: Low 3.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.49%, higher than 43% of CVEs (2026-12-01)
- Published: 2023-05-09T13:37:38.193Z
- Modified: 2026-06-17T05:56:21.343Z
- Also known as: GHSA-9cfh-vx93-84vv
- Weaknesses: CWE-522
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- vapor postgres-nio: < 1.14.2
- github.com/vapor/postgres-nio (SwiftURL): before 1.14.2
- vapor postgresnio: before 1.14.2

## Every score

- GitHub_M: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/vapor/postgres-nio/security/advisories/GHSA-9cfh-vx93-84vv> (vendor-advisory, web)
- <https://github.com/apple/swift-nio/pull/2419> (patch, web)
- <https://github.com/vapor/postgres-nio/commit/2df54bc94607f44584ae6ffa74e3cd754fffafc7> (patch, web)
- <https://github.com/advisories/GHSA-467w-rrqc-395f> (advisory, not-applicable)
- <https://github.com/advisories/GHSA-735f-7qx4-jqq5> (advisory, not-applicable)
- <https://github.com/vapor/postgres-nio/releases/tag/1.14.2> (release-notes, web)
- <https://www.postgresql.org/support/security/CVE-2021-23214/> (not-applicable)
- <https://www.postgresql.org/support/security/CVE-2021-23222/> (not-applicable)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-31136> (advisory)
- <https://github.com/vapor/postgres-nio> (package)
- <https://www.postgresql.org/support/security/CVE-2021-23214> (web)
- <https://www.postgresql.org/support/security/CVE-2021-23222> (web)

## Sources

- CVE List: [CVE-2023-31136](https://www.cve.org/CVERecord?id=CVE-2023-31136), CVE Terms of Use, modified 2025-01-28
- GitHub Advisory Database: [GHSA-9cfh-vx93-84vv](https://github.com/advisories/GHSA-9cfh-vx93-84vv), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2023-31136](https://nvd.nist.gov/vuln/detail/CVE-2023-31136), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-31136 · Whole record: https://cve.day/CVE-2023-31136.json · Rebuilt by cve.day 2026-11-25T22:58:24.003Z
