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 package | Versions | Reported by |
|---|---|---|
| pgAgent | from 4 before 4.2.3 | CVE List |
| pgadmin pgagent | before 4.2.3 | NVD |
All scores
| PostgreSQL | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 7.1high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H |
Classification
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-0218 changed 2025-11-03 | CVE Terms of Use |
| NVD | CVE-2025-0218 changed 2026-06-17 | Public domain |