{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-10979","id":"CVE-2024-10979","title":"PostgreSQL PL/Perl environment variable changes execute arbitrary code","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.","descriptionLong":"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.","published":"2024-11-14T13:00:08.586Z","updated":"2026-06-17T06:56:49.347Z","reserved":"2024-11-07T19:27:04.476Z","status":"Modified","rejected":false,"assigner":"PostgreSQL","metric":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"PostgreSQL"},"metrics":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"PostgreSQL"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["PostgreSQL"],"affectedProducts":[{"vendor":"n/a","product":"PostgreSQL","defaultStatus":"unaffected","versions":[{"lessThan":"17.1","status":"affected","version":"17","versionType":"rpm"},{"lessThan":"16.5","status":"affected","version":"16","versionType":"rpm"},{"lessThan":"15.9","status":"affected","version":"15","versionType":"rpm"},{"lessThan":"14.14","status":"affected","version":"14","versionType":"rpm"},{"lessThan":"13.17","status":"affected","version":"13","versionType":"rpm"},{"lessThan":"12.21","status":"affected","version":"0","versionType":"rpm"}],"platforms":[]}],"packages":[],"cwes":["CWE-15","CWE-610"],"aliases":["BIT-postgresql-2024-10979"],"references":[{"url":"https://www.postgresql.org/support/security/CVE-2024-10979/","tags":["Vendor Advisory","advisory"]},{"url":"https://github.com/fmora50591/postgresql-env-vuln/blob/main/README.md","tags":["Exploit","Mitigation","Third Party Advisory","evidence"]},{"url":"https://security.netapp.com/advisory/ntap-20250110-0003/","tags":["Third Party Advisory","advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/11/msg00011.html","tags":["web"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.04393,"epssPercentile":0.91508,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-10979","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-10979","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-10979","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-10979","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["postgresql"],"critical":[],"attention":null}