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.

Severity (CVSS 3.1)5.5Medium
Exploit odds (30 days)0.2%top 92.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Debian:12pgagentno fix listedDEBIAN-CVE-2025-0218
Debian:13pgagent4.2.3-1DEBIAN-CVE-2025-0218
Debian:14pgagent4.2.3-1DEBIAN-CVE-2025-0218
Ubuntu:22.04:LTSpgagentno fix listedUBUNTU-CVE-2025-0218
Ubuntu:24.04:LTSpgagentno fix listedUBUNTU-CVE-2025-0218
Ubuntu:25.10pgagentno fix listedUBUNTU-CVE-2025-0218
Ubuntu:26.04:LTSpgagentno fix listedUBUNTU-CVE-2025-0218
Ubuntu:26.10pgagentno fix listedUBUNTU-CVE-2025-0218

Affected products (as reported)

VendorProductVersions
n/a pgAgent 4 – before 4.2.3

Weakness: CWE-340 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

References