CVE-2022-41862 Information disclosure in postgresql

Low 3.7 Published Updated

A malicious server can cause libpq clients to leak uninitialized memory bytes during Kerberos authentication, potentially exposing sensitive data.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-41862?

CVE-2022-41862 is a low-severity vulnerability in Fedoraproject Fedora, published on 3 Mar 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

In PostgreSQL, a modified, unauthenticated server can send an unterminated string during the establishment of Kerberos transport encryption. In certain conditions a server can cause a libpq client to over-read and report an error message containing uninitialized bytes.

Weakness: CWE-200

Which versions are affected by CVE-2022-41862?

1 open source package ship an affected version, including postgresql. It affects 6 products.

PackageAffectedFixed in
postgresql BitnamiFrom 12.0.012.14.0, 13.10.0, 14.7.0, 15.2.0
Linux distribution packages (39)
libpq AlmaLinux:8All versions13.11-1.el8.alma.1
libpq-devel AlmaLinux:8All versions13.11-1.el8.alma.1
libpq AlmaLinux:9All versions13.11-1.el9
libpq-devel AlmaLinux:9All versions13.11-1.el9
libpq Red Hat:enterprise_linux:8::appstreamAll versions0:13.11-1.el8
libpq-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:13.11-1.el8
libpq-debugsource Red Hat:enterprise_linux:8::appstreamAll versions0:13.11-1.el8
libpq-devel Red Hat:enterprise_linux:8::appstreamAll versions0:13.11-1.el8
libpq-devel-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:13.11-1.el8
libpq Red Hat:enterprise_linux:9::appstreamAll versions0:13.11-1.el9
libpq-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:13.11-1.el9
libpq-debugsource Red Hat:enterprise_linux:9::appstreamAll versions0:13.11-1.el9
libpq-devel Red Hat:enterprise_linux:9::appstreamAll versions0:13.11-1.el9
libpq-devel-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:13.11-1.el9
libpq Rocky Linux:8All versions0:13.11-1.el8
postgresql12 SUSE:Enterprise Storage 7All versions12.14-150200.8.41.1
postgresql13 SUSE:Enterprise Storage 7All versions13.10-150200.5.37.1
postgresql14 SUSE:Enterprise Storage 7All versions14.7-150200.5.23.1
postgresql15 SUSE:Enterprise Storage 7All versions15.2-150200.5.6.1
postgresql12 SUSE:Enterprise Storage 7.1All versions12.14-150200.8.41.1
postgresql13 SUSE:Enterprise Storage 7.1All versions13.10-150200.5.37.1
postgresql14 SUSE:Enterprise Storage 7.1All versions14.7-150200.5.23.1
postgresql15 SUSE:Enterprise Storage 7.1All versions15.2-150200.5.6.1
postgresql12 SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSSAll versions12.14-150100.3.37.1
postgresql12 SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions12.14-150200.8.41.1
postgresql13 SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions13.10-150200.5.37.1
postgresql14 SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions14.7-150200.5.23.1
postgresql15 SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions15.2-150200.5.6.1
postgresql12 SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOSAll versions12.14-150200.8.41.1
postgresql13 SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOSAll versions13.10-150200.5.37.1
postgresql14 SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOSAll versions14.7-150200.5.23.1
postgresql15 SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOSAll versions15.2-150200.5.6.1
postgresql12 SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions12.14-150200.8.41.1
postgresql13 SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions13.10-150200.5.37.1
postgresql14 SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions14.7-150200.5.23.1
postgresql15 SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions15.2-150200.5.6.1
postgresql14 SUSE:Linux Enterprise Module for Basesystem 15 SP4All versions14.7-150200.5.23.1
postgresql15 SUSE:Linux Enterprise Module for Basesystem 15 SP4All versions15.2-150200.5.6.1
postgresql13 SUSE:Linux Enterprise Module for Legacy 15 SP4All versions13.10-150200.5.37.1

Products include Fedoraproject Fedora, Postgresql Postgresql, Redhat Enterprise Linux, Redhat Integration Camel K, Redhat Integration Camel Quarkus, Redhat Integration Service Registry.

How do I fix CVE-2022-41862?

Upgrade postgresql to a fixed version for your release line: 12.14.0, 13.10.0, 14.7.0 or 15.2.0.

Is CVE-2022-41862 being exploited?

There is no known exploitation of CVE-2022-41862 in the wild and no public exploit code.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as ALPINE-CVE-2022-41862, ALSA-2023:6429, ALSA-2023:7016, BIT-postgresql-2022-41862, CLEANSTART-2026-NR73555, CLSA-2026-1785316580 and 23 more.

Is CVE-2022-41862 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free