Skip to content
OpenAdvisories
Medium · 5.5 CVE-2025-0218 EUVD-2025-1553GHSA-j2pc-4j53-q3ww

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

Published Jan 7, 2025 · Updated Nov 3, 2025 · Assigned by PostgreSQL

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 products

VendorProductAffectedFixed
— pgAgent 4 – < 4.2.3 4.2.3

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 pgagent 4.2.3-1 —
Debian 13 pgagent 4.2.3-1 —
Debian 12 pgagent No fix yet —
Debian 11 pgagent 4.0.0-8+deb11u1 DLA-4338-1
ReleasePackageFixed inAdvisory
Ubuntu 26.10 pgagent No fix yet —
Ubuntu 26.04 LTS pgagent No fix yet —
Ubuntu 25.10 pgagent No fix yet —
Ubuntu 24.04 LTS pgagent No fix yet —
Ubuntu 22.04 LTS pgagent No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS pgagent No fix yet —
Ubuntu 18.04 LTS pgagent No fix yet —
Ubuntu 16.04 LTS pgagent No fix yet —

Advisories 1

References