{
    "data_version": "4.0",
    "data_type": "CVE",
    "data_format": "MITRE",
    "CVE_data_meta": {
        "ID": "CVE-2023-31136",
        "ASSIGNER": "security-advisories@github.com",
        "STATE": "PUBLIC"
    },
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "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."
            }
        ]
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-522: Insufficiently Protected Credentials",
                        "cweId": "CWE-522"
                    }
                ]
            }
        ]
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "vendor_name": "vapor",
                    "product": {
                        "product_data": [
                            {
                                "product_name": "postgres-nio",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_affected": "=",
                                            "version_value": "< 1.14.2"
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            ]
        }
    },
    "references": {
        "reference_data": [
            {
                "url": "https://github.com/vapor/postgres-nio/security/advisories/GHSA-9cfh-vx93-84vv",
                "refsource": "MISC",
                "name": "https://github.com/vapor/postgres-nio/security/advisories/GHSA-9cfh-vx93-84vv"
            },
            {
                "url": "https://github.com/apple/swift-nio/pull/2419",
                "refsource": "MISC",
                "name": "https://github.com/apple/swift-nio/pull/2419"
            },
            {
                "url": "https://github.com/vapor/postgres-nio/commit/2df54bc94607f44584ae6ffa74e3cd754fffafc7",
                "refsource": "MISC",
                "name": "https://github.com/vapor/postgres-nio/commit/2df54bc94607f44584ae6ffa74e3cd754fffafc7"
            },
            {
                "url": "https://github.com/advisories/GHSA-467w-rrqc-395f",
                "refsource": "MISC",
                "name": "https://github.com/advisories/GHSA-467w-rrqc-395f"
            },
            {
                "url": "https://github.com/advisories/GHSA-735f-7qx4-jqq5",
                "refsource": "MISC",
                "name": "https://github.com/advisories/GHSA-735f-7qx4-jqq5"
            },
            {
                "url": "https://github.com/vapor/postgres-nio/releases/tag/1.14.2",
                "refsource": "MISC",
                "name": "https://github.com/vapor/postgres-nio/releases/tag/1.14.2"
            },
            {
                "url": "https://www.postgresql.org/support/security/CVE-2021-23214/",
                "refsource": "MISC",
                "name": "https://www.postgresql.org/support/security/CVE-2021-23214/"
            },
            {
                "url": "https://www.postgresql.org/support/security/CVE-2021-23222/",
                "refsource": "MISC",
                "name": "https://www.postgresql.org/support/security/CVE-2021-23222/"
            }
        ]
    },
    "source": {
        "advisory": "GHSA-9cfh-vx93-84vv",
        "discovery": "UNKNOWN"
    },
    "impact": {
        "cvss": [
            {
                "attackComplexity": "HIGH",
                "attackVector": "NETWORK",
                "availabilityImpact": "NONE",
                "baseScore": 3.7,
                "baseSeverity": "LOW",
                "confidentialityImpact": "LOW",
                "integrityImpact": "NONE",
                "privilegesRequired": "NONE",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N",
                "version": "3.1"
            }
        ]
    }
}