Skip to main content
EPSS 4.4%top 9.3%

PostgreSQL PL/Perl environment variable changes execute arbitrary code (CVE-2024-10979)

0
High
Published: 11/16/2024 (11/16/2024, 07:16:38 UTC)
Source: GCVE Database
Product: postgresql

Description

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. Versions before PostgreSQL 17.1, 16.5, 15.9, 14.14, 13.17, and 12.21 are affected.

Affected software

redhat/postgresql
pkg:rpm/redhat/postgresql
Affected versions
=9.2.0 <=9.2.24

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/25/2026, 22:55:04 UTC

Technical Analysis

CVE-2024-10979 is a vulnerability in PostgreSQL where changes to environment variables in the PL/Perl procedural language environment can lead to arbitrary code execution. This vulnerability is rated as important by Red Hat Product Security and affects PostgreSQL packages in Red Hat Enterprise Linux 7 Extended Lifecycle Support. The issue is addressed by a security update released by Red Hat, which fixes the underlying problem. The advisory references Bugzilla 2326253 and provides updated package versions for PostgreSQL 9.2.24-9.el7_9.2.

Potential Impact

Successful exploitation of this vulnerability could allow an attacker to execute arbitrary code via environment variable manipulation in the PostgreSQL PL/Perl environment. This could lead to unauthorized code execution within the context of the database server, potentially compromising the affected system.

Mitigation Recommendations

Red Hat has released an official security update for PostgreSQL in Red Hat Enterprise Linux 7 Extended Lifecycle Support that addresses this vulnerability. Users should apply the update as described in the Red Hat advisory RHSA-2024:10882 and the referenced article https://access.redhat.com/articles/11258. Applying this update mitigates the vulnerability. No additional mitigation steps are indicated by the vendor advisory.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Csaf Category
csaf_security_advisory
Csaf Version
2.0
Publisher
Red Hat Product Security
Advisory Id
RHSA-2024:10882
Cve Count
1

Threat ID: 6a3da2004853345fc1836cbf

Added to database: 06/25/2026, 21:47:44 UTC

Last enriched: 06/25/2026, 22:55:04 UTC

Last updated: 09/10/2026, 19:24:53 UTC

Views: 99

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses