{"id":"CVE-2025-0218","aliases":["DEBIAN-CVE-2025-0218","DLA-4338-1","EUVD-2025-1553","GHSA-j2pc-4j53-q3ww","UBUNTU-CVE-2025-0218"],"status":"published","title":"pgAgent scheduled batch job scripts are created in a predictable temporary directory potentially allowing a denial of service","description":"When batch jobs are executed by pgAgent, a script is created in a temporary directory and then executed. In versions of pgAgent prior to 4.2.3, an insufficiently seeded random number generator is used when generating the directory name, leading to the possibility for a local attacker to pre-create the directory and thus prevent pgAgent from executing jobs, disrupting scheduled tasks.","severity":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.00175,"percentile":0.07129,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-330","CWE-340"],"published":"2025-01-07T19:18:02Z","modified":"2026-10-28T10:58:56Z","fixes":[{"ecosystem":"Debian:13","package":"pgagent","fixed_in":["4.2.3-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"pgagent","fixed_in":["4.2.3-1"],"sources":["osv"]},{"ecosystem":"Debian:11","package":"pgagent","fixed_in":["4.0.0-8+deb11u1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"pgagent","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.2.2-2","4.2.2-3","4.2.2-4","4.2.3-1","4.2.3-2","4.2.3-3","4.2.3-4","4.2.3-5"]},{"source":"osv","ecosystem":"Debian:13","package":"pgagent","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.2.3-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"pgagent","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.2.3-1"}]}]},{"source":"osv","ecosystem":"Debian:11","package":"pgagent","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.0.0-8+deb11u1"}]}],"versions":["4.0.0-8"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"pgagent","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.4.0-3build1","3.4.1-1","3.4.1-1build1","3.4.1-2"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"pgagent","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.4.1-4","3.4.1-5","3.4.1-5build1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"pgagent","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.0.0-5","4.0.0-6","4.0.0-6build1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"pgagent","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.0.0-8build1","4.2.1-2"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"pgagent","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.2.2-2build1","4.2.2-3","4.2.2-3build1","4.2.2-3build2"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"pgagent","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.2.3-2","4.2.3-2build2"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"pgagent","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.2.3-5"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"pgagent","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.2.3-2build2","4.2.3-4","4.2.3-4build1","4.2.3-5"]}],"products":[{"vendor":"pgadmin","product":"pgagent"}],"references":[{"url":"https://github.com/pgadmin-org/pgagent/commit/1ecd193a2be3a3dc9e98f369495e1a792e6d508c","tags":["Patch","fix","report"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00018.html","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-0218","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-j2pc-4j53-q3ww"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/0xxx/CVE-2025-0218.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2025-0218","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2025-0218","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-0218","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2025-0218","title":"pgAgent scheduled batch job scripts are created in a predictable temporary directory potentially allowing a denial of service","description":"When batch jobs are executed by pgAgent, a script is created in a temporary directory and then executed. In versions of pgAgent prior to 4.2.3, an insufficiently seeded random number generator is used when generating the directory name, leading to the possibility for a local attacker to pre-create the directory and thus prevent pgAgent from executing jobs, disrupting scheduled tasks.","status":"published","published":"2025-01-07T19:18:02.865Z","modified":"2025-11-03T17:31:33.459Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium","assessor":"cna"}],"cwes":["CWE-340"],"updated_at":"2026-11-02T14:32:53.81273Z"}],"euvd":[{"id":"EUVD-2025-1553","description":"When batch jobs are executed by pgAgent, a script is created in a temporary directory and then executed. In versions of pgAgent prior to 4.2.3, an insufficiently seeded random number generator is used when generating the directory name, leading to the possibility for a local attacker to pre-create the directory and thus prevent pgAgent from executing jobs, disrupting scheduled tasks.","status":"published","published":"2025-01-07T19:18:02Z","modified":"2025-11-03T17:31:33Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T19:49:35.000596Z"}],"ghsa":[{"id":"GHSA-j2pc-4j53-q3ww","title":"When batch jobs are executed by pgAgent, a script is created in a temporary directory and then...","description":"When batch jobs are executed by pgAgent, a script is created in a temporary directory and then executed. In versions of pgAgent prior to 4.2.3, an insufficiently seeded random number generator is used when generating the directory name, leading to the possibility for a local attacker to pre-create the directory and thus prevent pgAgent from executing jobs, disrupting scheduled tasks.","status":"published","published":"2025-01-07T21:30:55Z","modified":"2025-11-03T18:31:15Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium"}],"cwes":["CWE-330","CWE-340"],"updated_at":"2026-11-02T15:04:17.06099Z"}],"nvd":[{"id":"CVE-2025-0218","description":"When batch jobs are executed by pgAgent, a script is created in a temporary directory and then executed. In versions of pgAgent prior to 4.2.3, an insufficiently seeded random number generator is used when generating the directory name, leading to the possibility for a local attacker to pre-create the directory and thus prevent pgAgent from executing jobs, disrupting scheduled tasks.","status":"published","published":"2025-01-07T20:15:30.71Z","modified":"2026-06-17T08:26:06.147Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium","assessor":"secondary"},{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","level":"high","assessor":"primary"}],"cwes":["CWE-340","CWE-330"],"updated_at":"2026-11-02T14:10:48.373347Z"}],"osv":[{"id":"CVE-2025-0218","title":"pgAgent scheduled batch job scripts are created in a predictable temporary directory potentially allowing a denial of service","description":"When batch jobs are executed by pgAgent, a script is created in a temporary directory and then executed. In versions of pgAgent prior to 4.2.3, an insufficiently seeded random number generator is used when generating the directory name, leading to the possibility for a local attacker to pre-create the directory and thus prevent pgAgent from executing jobs, disrupting scheduled tasks.","status":"published","published":"2025-01-07T19:18:02.865Z","modified":"2026-10-28T10:58:56.050533654Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium"}],"cwes":["CWE-340"],"updated_at":"2026-11-02T15:44:45.712478Z"},{"id":"DEBIAN-CVE-2025-0218","description":"When batch jobs are executed by pgAgent, a script is created in a temporary directory and then executed. In versions of pgAgent prior to 4.2.3, an insufficiently seeded random number generator is used when generating the directory name, leading to the possibility for a local attacker to pre-create the directory and thus prevent pgAgent from executing jobs, disrupting scheduled tasks.","status":"published","published":"2025-01-07T20:15:30.71Z","modified":"2026-09-01T20:05:40.170423352Z","cvss":[{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:44.747956Z"},{"id":"UBUNTU-CVE-2025-0218","description":"When batch jobs are executed by pgAgent, a script is created in a temporary directory and then executed. In versions of pgAgent prior to 4.2.3, an insufficiently seeded random number generator is used when generating the directory name, leading to the possibility for a local attacker to pre-create the directory and thus prevent pgAgent from executing jobs, disrupting scheduled tasks.","status":"published","published":"2025-01-07T20:15:00Z","modified":"2026-10-17T12:56:47.300065105Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium"},{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T16:55:18.664792Z"},{"id":"DLA-4338-1","title":"pgagent - security update","status":"published","published":"2025-10-18T00:00:00Z","modified":"2026-03-09T02:11:05.4479Z","updated_at":"2026-11-02T15:46:12.7027Z"}]}}
