pgAgent scheduled batch job scripts are created in a predictable temporary directory…
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | pgAgent | 4 to before 4.2.3 | 4.2.3 | Patch available | CNA |
- pgAgent Vendor— Affected 4 to before 4.2.3 Fixed in 4.2.3 Patch available CNA
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:pgadmin:pgagent:*:*:*:*:*:postgresql:*:* | before 4.2.3 | Vulnerable | pgadmin.org |
- cpe:2.3:a:pgadmin:pgagent:*:*:*:*:*:postgresql:*:* Versions before 4.2.3 Vulnerable ·pgadmin.org
Remediation
- Fix · CNA pgAgent Fixed in 4.2.3
Timeline
- 2026-10-02 Threatist record created from CVE-2025-0218
- 2026-10-03 Alias added: GHSA-j2pc-4j53-q3ww
References
Sources
- CVE-2025-0218 · CVE Program
- CVE-2025-0218 · NVD
- FIRST EPSS
- GHSA-j2pc-4j53-q3ww · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences