CVE-2025-0218

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

State
Published
Severity
5.5 Medium
Published
Jan 7, 2025
Updated
Nov 3, 2025
Reserved
Jan 4, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.15.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HPostgreSQL

Weaknesses

  • CWE-340 Generation of Predictable Numbers or Identifiers

Affected Products

ProductVersions
pgAgentn/a
  • 4 to before 4.2.3Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.