FreeBSD : PostgreSQL -- PL/Perl environment variable changes execute arbitrary code (a03636f4-a29f-11ef-af48-6cc21735f730)

high Nessus Plugin ID 211381

Language:

Synopsis

The remote FreeBSD host is missing one or more security-related updates.

Description

The version of FreeBSD installed on the remote host is prior to tested version. It is, therefore, affected by a vulnerability as referenced in the a03636f4-a29f-11ef-af48-6cc21735f730 advisory.

PostgreSQL project reports:

Incorrect control of environment variables in PostgreSQL PL/Perl allows an unprivileged database user to change sensitive process environment variables (e.g. PATH).
That often suffices to enable arbitrary code execution, even if the attacker lacks a database server operating system user.


Tenable has extracted the preceding description block directly from the FreeBSD security advisory.

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Update the affected packages.

See Also

https://www.postgresql.org/support/security/CVE-2024-10979/

http://www.nessus.org/u?90e7c5a9

Plugin Details

Severity: High

ID: 211381

File Name: freebsd_pkg_a03636f4a29f11efaf486cc21735f730.nasl

Version: 1.2

Type: local

Published: 11/14/2024

Updated: 11/22/2024

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: High

Score: 7.4

CVSS v2

Risk Factor: High

Base Score: 9

Temporal Score: 6.7

Vector: CVSS2#AV:N/AC:L/Au:S/C:C/I:C/A:C

CVSS Score Source: CVE-2024-10979

CVSS v3

Risk Factor: High

Base Score: 8.8

Temporal Score: 7.7

Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:freebsd:freebsd:postgresql13-plperl, p-cpe:/a:freebsd:freebsd:postgresql12-plperl, p-cpe:/a:freebsd:freebsd:postgresql16-plperl, p-cpe:/a:freebsd:freebsd:postgresql14-plperl, cpe:/o:freebsd:freebsd, p-cpe:/a:freebsd:freebsd:postgresql15-plperl, p-cpe:/a:freebsd:freebsd:postgresql17-plperl

Required KB Items: Host/local_checks_enabled, Host/FreeBSD/release, Host/FreeBSD/pkg_info

Exploit Ease: No known exploits are available

Patch Publication Date: 11/14/2024

Vulnerability Publication Date: 11/14/2024

Reference Information

CVE: CVE-2024-10979

IAVB: 2024-B-0175