# CVE-2025-0218: pgAgent scheduled batch job scripts are created in a predictable temporary directory potentially allowing a denial of service

- Severity: Medium 5.5 (CVSS:3.1, scored by PostgreSQL) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2025-01-07T19:18:02.865Z
- Modified: 2026-06-17T08:26:06.147Z
- Weaknesses: CWE-330, CWE-340
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- pgAgent: from 4 before 4.2.3
- pgadmin pgagent: before 4.2.3

## Every score

- PostgreSQL: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`

## References

- <https://github.com/pgadmin-org/pgagent/commit/1ecd193a2be3a3dc9e98f369495e1a792e6d508c> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00018.html>

## Sources

- CVE List: [CVE-2025-0218](https://www.cve.org/CVERecord?id=CVE-2025-0218), CVE Terms of Use, modified 2025-11-03
- NVD: [CVE-2025-0218](https://nvd.nist.gov/vuln/detail/CVE-2025-0218), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-0218 · Whole record: https://cve.day/CVE-2025-0218.json · Rebuilt by cve.day 2026-11-25T22:58:53.164Z
