{"id":"UBUNTU-CVE-2025-0218","details":"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.","modified":"2026-05-20T16:20:17.812663049Z","published":"2025-01-07T20:15:00Z","upstream":["CVE-2025-0218"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-0218"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-0218"},{"type":"REPORT","url":"https://github.com/pgadmin-org/pgagent/commit/1ecd193a2be3a3dc9e98f369495e1a792e6d508c"}],"affected":[{"package":{"name":"pgagent","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/pgagent?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.4.0-3build1","3.4.1-1","3.4.1-1build1","3.4.1-2"],"ecosystem_specific":{"binaries":[{"binary_name":"pgagent","binary_version":"3.4.1-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-0218.json"}},{"package":{"name":"pgagent","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/pgagent?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.4.1-4","3.4.1-5","3.4.1-5build1"],"ecosystem_specific":{"binaries":[{"binary_name":"pgagent","binary_version":"3.4.1-5build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-0218.json"}},{"package":{"name":"pgagent","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/pgagent?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.0.0-5","4.0.0-6","4.0.0-6build1"],"ecosystem_specific":{"binaries":[{"binary_version":"4.0.0-6build1","binary_name":"pgagent"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-0218.json"}},{"package":{"name":"pgagent","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/pgagent?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.0.0-8build1","4.2.1-2"],"ecosystem_specific":{"binaries":[{"binary_name":"pgagent","binary_version":"4.2.1-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-0218.json"}},{"package":{"name":"pgagent","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/pgagent?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.2.2-2build1","4.2.2-3","4.2.2-3build1","4.2.2-3build2"],"ecosystem_specific":{"binaries":[{"binary_name":"pgagent","binary_version":"4.2.2-3build2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-0218.json"}},{"package":{"name":"pgagent","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/pgagent?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.2.3-2","4.2.3-2build2"],"ecosystem_specific":{"binaries":[{"binary_version":"4.2.3-2build2","binary_name":"pgagent"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-0218.json"}},{"package":{"name":"pgagent","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/pgagent?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.2.3-2build2","4.2.3-4","4.2.3-4build1","4.2.3-5"],"ecosystem_specific":{"binaries":[{"binary_name":"pgagent","binary_version":"4.2.3-5"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-0218.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}