Incorrect Privilege Assignment Affecting libpq package, versions [12.10,15.12)


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.09% (27th 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 Learn

Learn about Incorrect Privilege Assignment vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-CONAN-LIBPQ-10077284
  • published8 May 2025
  • disclosed14 Nov 2024
  • creditTom Lane

Introduced: 14 Nov 2024

CVE-2024-10978  (opens in a new tab)
CWE-266  (opens in a new tab)

How to fix?

Upgrade libpq to version 15.12 or higher.

Overview

Affected versions of this package are vulnerable to Incorrect Privilege Assignment due to the misuse of SET ROLE and SET SESSION AUTHORIZATION features. An attacker can view or modify data intended for different user roles by manipulating application queries that rely on user session settings. This is only exploitable if the application uses these features to control data access based on user roles.

CVSS Base Scores

version 4.0
version 3.1