Uncontrolled Recursion Affecting libpq package, versions [14.2,14.23)[15.3,15.18)[16.8,16.14)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.47% (37th 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-16691585
  • published14 May 2026
  • disclosed14 May 2026
  • creditCalif.io

Introduced: 14 May 2026

CVE-2026-6479  (opens in a new tab)
CWE-674  (opens in a new tab)

How to fix?

Upgrade libpq to version 14.23, 15.18, 16.14 or higher.

Overview

Affected versions of this package are vulnerable to Uncontrolled Recursion through the SSL or GSS negotiation process. An attacker can cause the service to become unresponsive by triggering uncontrolled recursion when connecting to an AF_UNIX socket. If both SSL and GSS are disabled, the same effect can be achieved via access to a TCP socket.

Workaround

This vulnerability can be mitigated by enabling SSL and/or GSS, or by disabling unix_socket_directories.

CVSS Base Scores

version 4.0
version 3.1