CVE-2025-0218

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

Published Jan 7, 2025 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
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.

Remediation

Vendor Workaround

None.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4338-1 pgagent security update
EUVD EUVD EUVD-2025-1553 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.
History
Type Values Removed Values Added
First Time appeared Pgadmin
Pgadmin pgagent
Weaknesses CWE-330
CPEs cpe:2.3:a:pgadmin:pgagent:*:*:*:*:*:postgresql:*:*
Vendors & Products Pgadmin
Pgadmin pgagent
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title pgAgent scheduled batch job scripts are created in a predictable temporary directory potentially allowing a denial of service
Weaknesses CWE-340
References
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
PostgreSQL
Published
Updated
Nov 3, 2025, 5:31 PM
Reserved
Jan 4, 2025, 2:53 AM
Status
Modified
Published
Jan 7, 2025, 8:15 PM
Modified
Jun 17, 2026, 8:26 AM