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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | pgAgent | 4 – < 4.2.3 | 4.2.3 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | pgagent | 4.2.3-1 | — |
| Debian 13 | pgagent | 4.2.3-1 | — |
| Debian 12 | pgagent | No fix yet | — |
| Debian 11 | pgagent | 4.0.0-8+deb11u1 | DLA-4338-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | pgagent | No fix yet | — |
| Ubuntu 26.04 LTS | pgagent | No fix yet | — |
| Ubuntu 25.10 | pgagent | No fix yet | — |
| Ubuntu 24.04 LTS | pgagent | No fix yet | — |
| Ubuntu 22.04 LTS | pgagent | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | pgagent | No fix yet | — |
| Ubuntu 18.04 LTS | pgagent | No fix yet | — |
| Ubuntu 16.04 LTS | pgagent | No fix yet | — |
Advisories 1
- DLA-4338-1 pgagent - security update Debian Security (DSA / DLA) · Mar 9, 2026