Arbitrary Code Execution Affecting libpq package, versions [,14.22)[15.3,15.12)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
4.42% (91st 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-10077283
  • published8 May 2025
  • disclosed13 Nov 2024
  • creditCoby Abrams

Introduced: 13 Nov 2024

CVE-2024-10979  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade libpq to version 14.22, 15.12 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Code Execution via trusted PL/Perl, due to missing checks in plperl/plc_trusted.pl. A user with USAGE privilege on the language can bypass protections and expected containment to modify environment variables in such a way as to execute arbitrary code.

CVSS Base Scores

version 4.0
version 3.1