Vulnerability · Published Jan 7, 2025 · Assigned by PostgreSQL
CVE-2025-0218pgAgent scheduled batch job scripts are created in a predictable temporary directory potentially allowing a denial of service
Medium 5.5
In plain English
A medium-severity security flaw in pgAgent. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 7% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | pgagent | no fix listed | DEBIAN-CVE-2025-0218 |
| Debian:13 | pgagent | 4.2.3-1 | DEBIAN-CVE-2025-0218 |
| Debian:14 | pgagent | 4.2.3-1 | DEBIAN-CVE-2025-0218 |
| Ubuntu:22.04:LTS | pgagent | no fix listed | UBUNTU-CVE-2025-0218 |
| Ubuntu:24.04:LTS | pgagent | no fix listed | UBUNTU-CVE-2025-0218 |
| Ubuntu:25.10 | pgagent | no fix listed | UBUNTU-CVE-2025-0218 |
| Ubuntu:26.04:LTS | pgagent | no fix listed | UBUNTU-CVE-2025-0218 |
| Ubuntu:26.10 | pgagent | no fix listed | UBUNTU-CVE-2025-0218 |
Affected products (as reported)
Weakness: CWE-340 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H