CVE-2025-0218 pgAgent scheduled batch job scripts are created in a predictable temporary directory potentially allowing a denial of service
HighCVSS 7.1
EPSS 0.18%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
8 packages: 3 fixed, 5 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/pgagent(Debian 12) | = 4.2.2-2; = 4.2.2-3; = 4.2.2-4; = 4.2.3-1 +5 more | No fix listed | No fix yet |
| ubuntu/pgagent(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/pgagent(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/pgagent(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/pgagent(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| debian/pgagent(Debian 13) | < 4.2.3-1 | 4.2.3-1 | Fixed |
| debian/pgagent(Debian 14) | < 4.2.3-1 | 4.2.3-1 | Fixed |
| pgadmin pgagent | < 4.2.3 | 4.2.3 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/pgagent(Debian:12) | All versions | No fix listed |
| debian/pgagent(Debian:12) | = 4.2.2-2 | No fix listed |
| debian/pgagent(Debian:12) | = 4.2.2-3 | No fix listed |
| debian/pgagent(Debian:12) | = 4.2.2-4 | No fix listed |
| debian/pgagent(Debian:12) | = 4.2.3-1 | No fix listed |
| debian/pgagent(Debian:12) | = 4.2.3-2 | No fix listed |
| debian/pgagent(Debian:12) | = 4.2.3-3 | No fix listed |
| debian/pgagent(Debian:12) | = 4.2.3-4 | No fix listed |
| debian/pgagent(Debian:12) | = 4.2.3-5 | No fix listed |
| debian/pgagent(Debian:13) | < 4.2.3-1 | 4.2.3-1 |
| debian/pgagent(Debian:14) | < 4.2.3-1 | 4.2.3-1 |
| ubuntu/pgagent(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/pgagent(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/pgagent(Ubuntu:26.04) | All versions | No fix listed |
| pgadmin pgagent | < 4.2.3 | 4.2.3 |
| ubuntu/pgagent(Ubuntu:26.10) | All versions | No fix listed |
References
- Debian Security Tracker CVE-2025-0218 vendor-advisory
- github.com patch
- lists.debian.org
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking