Name | CVE-2024-10979 |
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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-3954-1, DSA-5812-1 |
Vulnerable and fixed packages
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|
postgresql-11 (PTS) | buster, buster (lts) | 11.22-0+deb10u3 | vulnerable |
| buster (security) | 11.22-0+deb10u2 | vulnerable |
postgresql-13 (PTS) | bullseye | 13.16-0+deb11u1 | vulnerable |
| bullseye (security) | 13.18-0+deb11u1 | fixed |
postgresql-15 (PTS) | bookworm | 15.8-0+deb12u1 | vulnerable |
| bookworm (security) | 15.10-0+deb12u1 | fixed |
postgresql-16 (PTS) | sid, trixie | 16.4-3 | vulnerable |
postgresql-17 (PTS) | trixie | 17.0-1 | vulnerable |
| sid | 17.2-1 | fixed |
postgresql-9.4 (PTS) | jessie, jessie (lts) | 9.4.26-0+deb8u10 | vulnerable |
postgresql-9.6 (PTS) | stretch (security) | 9.6.24-0+deb9u1 | vulnerable |
| stretch (lts), stretch | 9.6.24-0+deb9u7 | vulnerable |
The information below is based on the following data on fixed versions.
Notes
https://www.postgresql.org/support/security/CVE-2024-10979/
Fixed by: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=3ebcfa54db3309651d8f1d3be6451a8449f6c6ec (v17.2, 1 of 3)
Fixed by: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=4cd4f3b97492c1b38115d0563a2e55b136eb542a (v17.2, 2 of 3)
Fixed by: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=8d19f3fea003b1f744516b84cbdb0097ae7b2912 (v17.2, 3 of 3)
Fixed by: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=8fe3e697a1a83a722b107c7cb9c31084e1f4d077 (v16.6, 1 of 4)
Fixed by: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=88269df4da032bb1536d4291a13f3af4e1e599ba (v16.6, 2 of 4)
Fixed by: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=168579e23bdbeda1a140440c0272b335d53ad061 (v16.6, 3 of 4)
Fixed by: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=64df8870097aa286363a5d81462802783abbfa61 (v16.6, 4 of 4)
Fixed by: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=e530835c6cc5b2dbf330ebe6b0a7fb9f19f5a54c (v15.10, 1 of 2)
Fixed by: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=c834b375a6dc36ff92f9f738ef1d7af09d91165f (v15.10, 2 of 2)
Fixed by: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=d15ec27c977100037ae513ab7fe1a214bfc2507b (v14.15, 1 of 3)
Fixed by: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=f89bd92c963c3be30a1cf26960aa86aaad117235 (v14.15, 2 of 3)
Fixed by: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=256e34653aadd3582b98411d7d26f4fbb865e0ec (v14.15, 3 of 3)
Fixed by: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=e428cd058f0bebb5782b0c263565b0ad088e9650 (v13.18, 1 of 3)
Fixed by: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=6bccd7b037d09b91ce272c68f43705e2fecd4cca (v13.18, 2 of 3)
Fixed by: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=0bd9560d964abc09e446e4c5e264bb7a0886e5ea (v13.18, 3 of 3)
Fixed by: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=2ab12d860e51e468703a2777b3759b7a61639df2 (v12.21, 1 of 3)
Fixed by: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=b1e58defb6a43fe35511eaa80858293b07c8b512 (v12.21, 2 of 3)
Fixed by: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=9fc1c3a02ddc4cf2a34550c0f985288cea7094bd (v12.21, 3 of 3)