CVE-2024-10979: postgresql
Vulnerability summary
CVE-2024-10979 is a high (CVSS 8.8) vulnerability in postgresql. EPSS estimates a 4.39% chance of exploitation in the next 30 days, higher than 91.2% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 31 · Related 27Timeline
- 14-11-2024PublishedVulnerability first disclosed.
- 03-11-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
8 scores · 8 sources · 1 version- OSV · AlpineEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · Red hatEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · WolfiEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · ChainguardEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- NVDNIST8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
4.39%
Chance of exploitation in the next 30 days
Percentile
91%
Versus all other CVEs
30-day change
0.00 pp
From 4.39% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundPostgresql Env Vuln
Maturity: poc
Weaknesses
CWE · root cause- CWE-15External Control of System or Configuration SettingOne or more system settings or configuration elements can be externally controlled by a user.
- CWE-610Externally Controlled Reference to a Resource in Another SphereThe product uses an externally controlled name or reference that resolves to a resource that is outside of the intended control sphere.
Affected systems
Redhat40 products
- pg_repack< 0:1.4.8-1.module+el9.4.0+20427+07482b8c | < 0:1.4.6-3.module+el8.5.0+11357+bcc62552 | < 0:1.4.6-3.module+el8.5.0+11354+78b3c9c5 | < 0:1.4.8-1.module+el9.2.0+17405+aeb9ec60 | < 0:1.4.8-1.module+el8.8.0+17071+aaaceaa4
- pg_repack-debuginfo< 0:1.4.8-1.module+el9.4.0+20427+07482b8c | < 0:1.4.6-3.module+el8.5.0+11357+bcc62552 | < 0:1.4.6-3.module+el8.5.0+11354+78b3c9c5 | < 0:1.4.8-1.module+el9.2.0+17405+aeb9ec60 | < 0:1.4.8-1.module+el8.8.0+17071+aaaceaa4
- pg_repack-debugsource< 0:1.4.8-1.module+el9.4.0+20427+07482b8c | < 0:1.4.6-3.module+el8.5.0+11357+bcc62552 | < 0:1.4.6-3.module+el8.5.0+11354+78b3c9c5 | < 0:1.4.8-1.module+el9.2.0+17405+aeb9ec60 | < 0:1.4.8-1.module+el8.8.0+17071+aaaceaa4
- pgaudit< 0:16.0-1.module+el9.4.0+20427+07482b8c | < 0:1.5.0-1.module+el8.4.0+8873+b821c30a | < 0:1.4.0-5.module+el8.5.0+11354+78b3c9c5 | < 0:1.7.0-1.module+el9.2.0+17405+aeb9ec60 | < 0:1.4.0-4.module+el8.2.0+9043+1dbb5661 | < 0:1.4.0-6.module+el8.4.0+11288+c193d6d7 | < 0:1.7.0-1.module+el8.8.0+17071+aaaceaa4
- pgaudit-debuginfo< 0:16.0-1.module+el9.4.0+20427+07482b8c | < 0:1.5.0-1.module+el8.4.0+8873+b821c30a | < 0:1.4.0-5.module+el8.5.0+11354+78b3c9c5 | < 0:1.7.0-1.module+el9.2.0+17405+aeb9ec60 | < 0:1.4.0-4.module+el8.2.0+9043+1dbb5661 | < 0:1.4.0-6.module+el8.4.0+11288+c193d6d7 | < 0:1.7.0-1.module+el8.8.0+17071+aaaceaa4
Chainguard8 products
- postgresql-12< 12.21-r0
- postgresql-13< 13.17-r0
- postgresql-14< 14.14-r0
- postgresql-14-client< 14.24-r2 | All versions (No fix recorded)
- postgresql-15< 15.9-r0
Wolfi8 products
- postgresql-12< 12.21-r0
- postgresql-13< 13.17-r0
- postgresql-14< 14.14-r0
- postgresql-14-client< 14.24-r2 | All versions (No fix recorded)
- postgresql-15< 15.9-r0
Ubuntu6 products
- postgresql-10All versions (No fix recorded)
- postgresql-12< 12.22-0ubuntu0.20.04.1
- postgresql-14< 14.15-0ubuntu0.22.04.1
- postgresql-16< 16.6-0ubuntu0.24.04.1
- postgresql-9.3All versions (No fix recorded)
Alpine4 products
- postgresql14< 14.14-r0
- postgresql15< 15.9-r0
- postgresql16< 16.5-r0
- postgresql17< 17.1-r0
Debian2 products
- postgresql-15< 15.9-0+deb12u1
- postgresql-17< 17.1-1
Postgresql1 product
- postgresql≥ 12.0, < 12.21 | ≥ 13.0, < 13.17 | ≥ 14.0, < 14.14 | ≥ 15.0, < 15.9 | ≥ 16.0, < 16.5 | ≥ 17.0, < 17.1
7 vendors · 69 products
References
44 links- github.com/fmora50591/postgresql-env-vuln/blob/main/README.mdEVIDENCEExploitMitigationThird Party Advisory