Every CVE Search/ Get API key

CVE-2025-0218

pgAgent scheduled batch job scripts are created in a predictable temporary directory potentially allowing a denial of service

5.5 MediumFix available

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

0.18%Up 0.1 points since Jan 8, 2025
90%50%10%1%

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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS 3.1
7.1 HighCVSS: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 MediumCVSS: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 HighCVSS: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 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS 3.1
7.1 HighCVSS: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

Affected packages
PackageAffectedFixed
pgagent
Debian: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
pgagent
Debian:13
before 4.2.3-1
4.2.3-1
pgagent
Debian:14
before 4.2.3-1
4.2.3-1
pgagent
Debian:11
before 4.0.0-8+deb11u1, plus listed versions
4.0.0-8
4.0.0-8+deb11u1
pgagent
Ubuntu:16.04:LTS
All versions, plus listed versions
3.4.0-3build13.4.1-13.4.1-1build13.4.1-2
None known
pgagent
Ubuntu:18.04:LTS
All versions, plus listed versions
3.4.1-43.4.1-53.4.1-5build1
None known
pgagent
Ubuntu:20.04:LTS
All versions, plus listed versions
4.0.0-54.0.0-64.0.0-6build1
None known
pgagent
Ubuntu:22.04:LTS
All versions, plus listed versions
4.0.0-8build14.2.1-2
None known
pgagent
Ubuntu:24.04:LTS
All versions, plus listed versions
4.2.2-2build14.2.2-34.2.2-3build14.2.2-3build2
None known
pgagent
Ubuntu:25.10
All versions, plus listed versions
4.2.3-24.2.3-2build2
None known
pgagent
Ubuntu:26.10
All versions, plus listed versions
4.2.3-5
None known
pgagent
Ubuntu:26.04:LTS
All versions, plus listed versions
4.2.3-2build24.2.3-44.2.3-4build14.2.3-5
None known

History

History
RecordedChangedSources
first indexedCVE 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

MoveEnter Open