CVE-2025-0218
pgAgent scheduled batch job scripts are created in a predictable temporary directory potentially allowing a denial of service
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
5.5
pgAgent scheduled batch job scripts are created in a predictable temporary directory potentially allowing a denial of service
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.
- Record
CVE-2025-0218- 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 - Weakness
- CWE-340
- Updated
- 2026-11-02
EUVDEUVD-2025-1553
5.5
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.
- Record
EUVD-2025-1553- 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 - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-j2pc-4j53-q3ww
5.5
When batch jobs are executed by pgAgent, a script is created in a temporary directory and then...
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.
- Record
GHSA-j2pc-4j53-q3ww- 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 - Weakness
- CWE-330, CWE-340
- Updated
- 2026-11-02
NVD
5.5
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.
- Record
CVE-2025-0218- 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 - 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 - Weakness
- CWE-340, CWE-330
- Updated
- 2026-11-02
OSV
5.5
pgAgent scheduled batch job scripts are created in a predictable temporary directory potentially allowing a denial of service
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.
- Record
CVE-2025-0218- 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 - Weakness
- CWE-340
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2025-0218
7.1
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.
- Record
DEBIAN-CVE-2025-0218- 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 - Updated
- 2026-11-02
OSVUBUNTU-CVE-2025-0218
5.5
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.
- Record
UBUNTU-CVE-2025-0218- 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 - 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 - Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
pgagentDebian:12 |
All versions, plus listed versions 4.2.2-24.2.2-34.2.2-44.2.3-14.2.3-24.2.3-34.2.3-44.2.3-5 |
None known |
pgagentDebian:13 |
before 4.2.3-1 | 4.2.3-1 |
pgagentDebian:14 |
before 4.2.3-1 | 4.2.3-1 |
pgagentDebian:11 |
before 4.0.0-8+deb11u1, plus listed versions 4.0.0-8 |
4.0.0-8+deb11u1 |
pgagentUbuntu:16.04:LTS |
All versions, plus listed versions 3.4.0-3build13.4.1-13.4.1-1build13.4.1-2 |
None known |
pgagentUbuntu:18.04:LTS |
All versions, plus listed versions 3.4.1-43.4.1-53.4.1-5build1 |
None known |
pgagentUbuntu:20.04:LTS |
All versions, plus listed versions 4.0.0-54.0.0-64.0.0-6build1 |
None known |
pgagentUbuntu:22.04:LTS |
All versions, plus listed versions 4.0.0-8build14.2.1-2 |
None known |
pgagentUbuntu:24.04:LTS |
All versions, plus listed versions 4.2.2-2build14.2.2-34.2.2-3build14.2.2-3build2 |
None known |
pgagentUbuntu:25.10 |
All versions, plus listed versions 4.2.3-24.2.3-2build2 |
None known |
pgagentUbuntu:26.10 |
All versions, plus listed versions 4.2.3-5 |
None known |
pgagentUbuntu:26.04:LTS |
All versions, plus listed versions 4.2.3-2build24.2.3-44.2.3-4build14.2.3-5 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2025-0218 is a medium vulnerability (CVSS 5.5) in Pgadmin Pgagent, published January 7, 2025. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.18%, the 7th percentile. Fixed in pgagent 4.2.3-1.
References
github.com/pgadmin-org/pgagent/commit/1ecd193a2be3a3dc9e98f369495e1a792e6d508c
lists.debian.org/debian-lts-announce/2025/10/msg00018.html
nvd.nist.gov/vuln/detail/CVE-2025-0218
github.com/advisories/GHSA-j2pc-4j53-q3ww
github.com/CVEProject/cvelistV5/tree/main/cves/2025/0xxx/CVE-2025-0218.json
security-tracker.debian.org/tracker/CVE-2025-0218
ubuntu.com/security/CVE-2025-0218
cve.org/CVERecord?id=CVE-2025-0218