CVE-2025-0218
JSON

5.5medium

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

Severity
5.5medium CVSS:3.1 by PostgreSQL
Exploit likelihood
0.18% (higher than 7% of CVEs; EPSS, by FIRST)
Published
Last changed
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

Product or packageVersionsReported by
pgAgentfrom 4 before 4.2.3CVE List
pgadmin pgagentbefore 4.2.3NVD

All scores

PostgreSQL5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD7.1high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H

Classification

CWE-330CWE-340

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Cuando pgAgent ejecuta trabajos por lotes, se crea un script en un directorio temporal y luego se ejecuta. En versiones de pgAgent anteriores a la 4.2.3, se utiliza un generador de números aleatorios con una información insuficiente al generar el nombre del directorio, lo que genera la posibilidad de que un atacante local cree previamente el directorio y, de esta manera, impida que pgAgent ejecute trabajos, lo que interrumpiría las tareas programadas.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-0218 changed 2025-11-03CVE Terms of Use
NVDCVE-2025-0218 changed 2026-06-17Public domain