Information Exposure Affecting libpq package, versions [,11.21)[12.10,12.16)[13.6,13.12)[14.2,14.7)


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.2% (42nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-CONAN-LIBPQ-10077271
  • published8 May 2025
  • disclosed9 Feb 2023
  • creditJacob Champion

Introduced: 9 Feb 2023

CVE-2022-41862  (opens in a new tab)
CWE-200  (opens in a new tab)

How to fix?

Upgrade libpq to version 11.21, 12.16, 13.12, 14.7 or higher.

Overview

Affected versions of this package are vulnerable to Information Exposure such that a modified, unauthenticated server can send an unterminated string during the establishment of Kerberos transport encryption. When a libpq client application has a Kerberos credential cache and doesn't explicitly disable gssencmode option, a server can cause libpq to over-read and report an error message containing uninitialized bytes from and following its receive buffer.

CVSS Base Scores

version 3.1