CVE-2021-23222

Source
https://cve.org/CVERecord?id=CVE-2021-23222
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-23222.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-23222
Aliases
Downstream
Related
Published
2022-03-02T23:15:08.517Z
Modified
2026-03-23T05:05:35.701327130Z
Severity
  • 5.9 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
[none]
Details

A man-in-the-middle attacker can inject false responses to the client's first few queries, despite the use of SSL certificate verification and encryption.

References

Affected packages

Git / github.com/postgres/postgres

Affected ranges

Type
GIT
Repo
https://github.com/postgres/postgres
Events
Database specific
{
    "versions": [
        {
            "introduced": "9.6"
        },
        {
            "fixed": "9.6.24"
        },
        {
            "introduced": "10.0"
        },
        {
            "fixed": "10.19"
        },
        {
            "introduced": "11.0"
        },
        {
            "fixed": "11.14"
        },
        {
            "introduced": "12.0"
        },
        {
            "fixed": "12.9"
        },
        {
            "introduced": "13.0"
        },
        {
            "fixed": "13.5"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "14.0"
        }
    ]
}

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-23222.json"
vanir_signatures
[
    {
        "signature_type": "Line",
        "id": "CVE-2021-23222-e1be026c",
        "source": "https://github.com/postgres/postgres/commit/160c0258802d10b0600d7671b1bbea55d8e17d45",
        "target": {
            "file": "src/interfaces/libpq/fe-connect.c"
        },
        "deprecated": false,
        "signature_version": "v1",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "10037443517696866748761392046871582022",
                "325675312630126864791861414191520860108",
                "248756423465337085234785710824740055381",
                "219130724463359041405235398817575440371",
                "18312600838351471896985731433715124179",
                "29813103265162816138856506205737681509",
                "248756423465337085234785710824740055381",
                "219130724463359041405235398817575440371"
            ]
        }
    },
    {
        "signature_type": "Function",
        "id": "CVE-2021-23222-f5ed594b",
        "source": "https://github.com/postgres/postgres/commit/160c0258802d10b0600d7671b1bbea55d8e17d45",
        "target": {
            "function": "PQconnectPoll",
            "file": "src/interfaces/libpq/fe-connect.c"
        },
        "deprecated": false,
        "signature_version": "v1",
        "digest": {
            "function_hash": "218920273742902448943626208937972612244",
            "length": 22472.0
        }
    }
]