CVE-2025-0218

published 7 Jan 2025 · updated 3 Nov 2025

pgAgent scheduled batch job scripts are created in a predictable temporary directory potentially allowing a denial of service

5.5MediumCVSS 5.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 4.2.3.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
>=4 <4.2.34.2.3

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-0218 severity on Zeptric[![CVE-2025-0218](https://zeptric.io/badge/cve/CVE-2025-0218.svg)](https://zeptric.io/cve/CVE-2025-0218)