{"schemaVersion":3,"id":"CVE-2021-23222","aliases":["ALPINE-CVE-2021-23222","RHSA-2022:1891","UBUNTU-CVE-2021-23222","USN-5765-1","DEBIAN-CVE-2021-23222"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2022-03-02T00:00:00.000Z","modified":"2024-08-03T19:05:54.487Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.9,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":5.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":5.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Red hat","score":3.7,"severity":"low","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","exploitability":5.6,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":5.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":5.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":5.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":5.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":4.3,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:P/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01501,"percentile":0.73905,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.01501},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01501,"percentile":0.73905}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01501,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01501,"percentile":0.73905}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-522","name":"Insufficiently Protected Credentials","description":"The product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval.","type":"weakness","status":"Incomplete","abstraction":"Class","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/522.html"}],"affected":[{"vendor":"alpine","product":"postgresql","name":"postgresql","label":"postgresql","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/postgresql","purlType":"apk","versions":[{"text":"≥ 9.6, < 12.9-r0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 9.6, < 13.5-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 9.6, < 12.9-r0 | ≥ 9.6, < 13.5-r0","eol":null,"hubHref":null},{"vendor":"alpine","product":"postgresql13","name":"postgresql13","label":"postgresql13","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/postgresql13","purlType":"apk","versions":[{"text":"< 13.5-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 13.5-r0","eol":null,"hubHref":null},{"vendor":"alpine","product":"postgresql14","name":"postgresql14","label":"postgresql14","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/postgresql14","purlType":"apk","versions":[{"text":"< 14.1-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 14.1-r0","eol":null,"hubHref":null},{"vendor":"alpine","product":"postgresql15","name":"postgresql15","label":"postgresql15","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/postgresql15","purlType":"apk","versions":[{"text":"< 14.1-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 14.1-r0","eol":null,"hubHref":null},{"vendor":"debian","product":"postgresql-13","name":"postgresql-13","label":"postgresql-13","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/postgresql-13","purlType":"deb","versions":[{"text":"< 13.5-0+deb11u1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 13.5-0+deb11u1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"postgresql-10","name":"postgresql-10","label":"postgresql-10","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/postgresql-10","purlType":"deb","versions":[{"text":"< 10.19-0ubuntu0.18.04.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 10.19-0ubuntu0.18.04.1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"postgresql-12","name":"postgresql-12","label":"postgresql-12","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/postgresql-12","purlType":"deb","versions":[{"text":"< 12.9-0ubuntu0.20.04.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 12.9-0ubuntu0.20.04.1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"postgresql-9.3","name":"postgresql-9.3","label":"postgresql-9.3","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/postgresql-9.3","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"postgresql-9.5","name":"postgresql-9.5","label":"postgresql-9.5","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/postgresql-9.5","purlType":"deb","versions":[{"text":"< 9.5.25-0ubuntu0.16.04.1+esm3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 9.5.25-0ubuntu0.16.04.1+esm3","eol":null,"hubHref":null},{"vendor":"postgresql","product":"postgresql","name":"postgresql","label":"postgresql","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 9.6, < 9.6.24","noFixRecorded":false,"fixedIn":null},{"text":"≥ 10.0, < 10.19","noFixRecorded":false,"fixedIn":null},{"text":"≥ 11.0, < 11.14","noFixRecorded":false,"fixedIn":null},{"text":"≥ 12.0, < 12.9","noFixRecorded":false,"fixedIn":null},{"text":"≥ 13.0, < 13.5","noFixRecorded":false,"fixedIn":null},{"text":"14.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 9.6, < 9.6.24 | ≥ 10.0, < 10.19 | ≥ 11.0, < 11.14 | ≥ 12.0, < 12.9 | ≥ 13.0, < 13.5 | 14.0","eol":{"isEol":false,"eolDate":"2026-11-12T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"14","label":"14","eolFrom":"2026-11-12T00:00:00.000Z","isLts":false,"isMaintained":true,"latestVersion":"14.24"},"product":{"name":"postgresql","label":"PostgreSQL","category":"database"}},"hubHref":"/vendor/postgresql/postgresql"},{"vendor":"redhat","product":"libpq","name":"libpq","label":"libpq","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/libpq","purlType":"rpm","versions":[{"text":"< 0:13.5-1.el8","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:13.5-1.el8","eol":null,"hubHref":null},{"vendor":"redhat","product":"libpq-debuginfo","name":"libpq-debuginfo","label":"libpq-debuginfo","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/libpq-debuginfo","purlType":"rpm","versions":[{"text":"< 0:13.5-1.el8","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:13.5-1.el8","eol":null,"hubHref":null},{"vendor":"redhat","product":"libpq-debugsource","name":"libpq-debugsource","label":"libpq-debugsource","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/libpq-debugsource","purlType":"rpm","versions":[{"text":"< 0:13.5-1.el8","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:13.5-1.el8","eol":null,"hubHref":null},{"vendor":"redhat","product":"libpq-devel","name":"libpq-devel","label":"libpq-devel","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/libpq-devel","purlType":"rpm","versions":[{"text":"< 0:13.5-1.el8","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:13.5-1.el8","eol":null,"hubHref":null},{"vendor":"redhat","product":"libpq-devel-debuginfo","name":"libpq-devel-debuginfo","label":"libpq-devel-debuginfo","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/libpq-devel-debuginfo","purlType":"rpm","versions":[{"text":"< 0:13.5-1.el8","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:13.5-1.el8","eol":null,"hubHref":null}],"affectedCount":15,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2022675","label":"bugzilla.redhat.com/show_bug.cgi?id=2022675","hostname":"bugzilla.redhat.com","tags":["REPORT","Issue Tracking","Third Party Advisory"]},{"url":"https://www.postgresql.org/support/security/CVE-2021-23222/","label":"www.postgresql.org/support/security/CVE-2021-23222/","hostname":"www.postgresql.org","tags":["Release Notes","Vendor Advisory"]},{"url":"https://git.postgresql.org/gitweb/?p=postgresql.git%3Ba=commitdiff%3Bh=d83cdfdca9d918bbbd6bb209139b94c954da7228","label":"git.postgresql.org/gitweb","hostname":"git.postgresql.org","tags":[]},{"url":"https://github.com/postgres/postgres/commit/160c0258802d10b0600d7671b1bbea55d8e17d45","label":"github.com/postgres/postgres/commit/160c0258802d10b0600d7671b1bbea55d8e17d45","hostname":"github.com","tags":["Patch","Third Party Advisory"]},{"url":"https://security.gentoo.org/glsa/202211-04","label":"security.gentoo.org/glsa/202211-04","hostname":"security.gentoo.org","tags":["Vendor Advisory","Third Party Advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2021-23222","label":"security.alpinelinux.org/vuln/CVE-2021-23222","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2022:1891","label":"access.redhat.com/errata/RHSA-2022:1891","hostname":"access.redhat.com","tags":["Advisory"]},{"url":"https://access.redhat.com/security/updates/classification/#low","label":"access.redhat.com/security/updates/classification/","hostname":"access.redhat.com","tags":["ARTICLE"]},{"url":"https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/8.6_release_notes/","label":"access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/8.6_release_notes/","hostname":"access.redhat.com","tags":["ARTICLE"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2022/rhsa-2022_1891.json","label":"security.access.redhat.com/data/csaf/v2/advisories/2022/rhsa-2022_1891.json","hostname":"security.access.redhat.com","tags":["Advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-23222","label":"access.redhat.com/security/cve/CVE-2021-23222","hostname":"access.redhat.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-23222","label":"www.cve.org/CVERecord?id=CVE-2021-23222","hostname":"www.cve.org","tags":["Advisory","REPORT"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23222","label":"nvd.nist.gov/vuln/detail/CVE-2021-23222","hostname":"nvd.nist.gov","tags":["Advisory","Oval"]},{"url":"https://ubuntu.com/security/CVE-2021-23222","label":"ubuntu.com/security/CVE-2021-23222","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.postgresql.org/about/news/postgresql-141-135-129-1114-1019-and-9624-released-2349/","label":"www.postgresql.org/about/news/postgresql-141-135-129-1114-1019-and-9624-released-2349/","hostname":"www.postgresql.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-5145-1","label":"ubuntu.com/security/notices/USN-5145-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/notices/USN-5765-1","label":"ubuntu.com/security/notices/USN-5765-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-23222","label":"security-tracker.debian.org/tracker/CVE-2021-23222","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-2817-1","DSA-5006-1","DSA-5007-1","MGASA-2021-0523","OPENSUSE-SU-2021:1584-1","OPENSUSE-SU-2021:3758-1","OPENSUSE-SU-2021:3759-1","OPENSUSE-SU-2021:3762-1","OPENSUSE-SU-2021:4058-1","OPENSUSE-SU-2024:11625-1","OPENSUSE-SU-2024:11626-1","OPENSUSE-SU-2024:11627-1","OPENSUSE-SU-2024:11628-1","OPENSUSE-SU-2024:11629-1","OPENSUSE-SU-2024:13243-1","OPENSUSE-SU-2024:14360-1","OPENSUSE-SU-2025:15580-1","RHSA-2021:5179","RHSA-2021:5197","SUSE-SU-2021:3755-1","SUSE-SU-2021:3757-1","SUSE-SU-2021:3758-1","SUSE-SU-2021:3759-1","SUSE-SU-2021:3760-1","SUSE-SU-2021:3761-1","SUSE-SU-2021:3762-1","SUSE-SU-2021:4058-1","SUSE-SU-2022:2893-1","SUSE-SU-2022:2958-1","USN-5145-1"],"duplicates":[],"related":["OPENSUSE-SU-2021:1584-1","OPENSUSE-SU-2021:3758-1","OPENSUSE-SU-2021:3759-1","OPENSUSE-SU-2021:3762-1","OPENSUSE-SU-2021:4058-1","OPENSUSE-SU-2024:11625-1","OPENSUSE-SU-2024:11626-1","OPENSUSE-SU-2024:11627-1","OPENSUSE-SU-2024:11628-1","OPENSUSE-SU-2024:11629-1","OPENSUSE-SU-2024:13243-1","OPENSUSE-SU-2024:14360-1","OPENSUSE-SU-2025:15580-1","SUSE-SU-2021:3755-1","SUSE-SU-2021:3757-1","SUSE-SU-2021:3758-1","SUSE-SU-2021:3759-1","SUSE-SU-2021:3760-1","SUSE-SU-2021:3761-1","SUSE-SU-2021:3762-1","SUSE-SU-2021:4058-1","SUSE-SU-2022:2893-1","SUSE-SU-2022:2958-1","USN-5145-1"]},"timeline":[{"kind":"published","date":"2022-03-02T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T19:05:54.487Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":24,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T15:49:39.975Z","stale":false,"partial":false}}