Integer Overflow or Wraparound Affecting libpq package, versions [13.6,)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (17th 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-14038404
  • published17 Nov 2025
  • disclosed13 Nov 2025
  • creditUnknown

Introduced: 13 Nov 2025

NewCVE-2025-12818  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade libpq to version or higher.

Overview

Affected versions of this package are vulnerable to Integer Overflow or Wraparound via the libpq client library functions. An attacker can cause the client application to crash or experience a segmentation fault by sending specially crafted PostgreSQL protocol data that triggers integer wraparound and leads to an out-of-bounds write during connection establishment.

CVSS Base Scores

version 4.0
version 3.1