CVE-2025-0218
published medium CVSS 3.1 · 5.5pgAgent scheduled batch job scripts are created in a predictable temporary directory potentially allowing a denial of service
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | pgAgent4 to < 4.2.3 · Other versions: unaffected | Affected | Not stated | PostgreSQL |
| Debian | bullseye | pgagent | Advisory build | 4.0.0-8+deb11u1 | DLA-4338-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.5 / 10
- Severity
- medium
- Provider
- PostgreSQL · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | pgAgent | 4 to < 4.2.3 (affected · rpm)Default: unaffected | PostgreSQL · cna |
Weaknesses
1- CWE-340 Generation of Predictable Numbers or Identifiers
References
2Provider assertions
3PostgreSQL · cna
pgAgent scheduled batch job scripts are created in a predictable temporary directory potentially allowing a denial of service
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d5c8894adabbfd3e4dfb6ce70c3811cf991cd2877de299f9c55348386871c82c
- Ingested
- 23 Sep 2026, 08:35:13 UTC
- Source record
- Official CVE record