Skip to main content
VulnerabilityPublished Updated

CVE-2025-0218: When batch jobs are executed by pgAgent, a script is created in a temporary directory and then executed

Affects pgagentSource GCVE Database

0
Compare
Authoritative record:CVE-2025-0218· Medium 5.5

Not known to be exploited · CVSS 5.5 Medium.

Data as of 24 Nov 2026, 19:43 UTC

CVSS 3.1 base score
5.5Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (PostgreSQL)CVSS 3.15.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 7 Jan 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 26.10pgagentpkg:deb/ubuntu/pgagent?arch=source&distro=stonkingOther threatsAffected
  • =4.2.3-5
Fixed in–
Ubuntu 26.04 LTSpgagentpkg:deb/ubuntu/pgagent?arch=source&distro=resoluteOther threatsAffected
  • 4.2.3-2build2 – 4.2.3-5
4 affected builds
Fixed in–
Ubuntu 25.10pgagentpkg:deb/ubuntu/pgagent?arch=source&distro=questingOther threatsAffected
  • =4.2.3-2
  • =4.2.3-2build2
Fixed in–
Ubuntu 24.04 LTSpgagentpkg:deb/ubuntu/pgagent?arch=source&distro=nobleOther threatsAffected
  • 4.2.2-2build1 – 4.2.2-3build2
4 affected builds
Fixed in–
Ubuntu 22.04 LTSpgagentpkg:deb/ubuntu/pgagent?arch=source&distro=jammyOther threatsAffected
  • =4.0.0-8build1
  • =4.2.1-2
Fixed in–
Ubuntu 20.04 LTSpgagentpkg:deb/ubuntu/pgagent?arch=source&distro=focalOther threatsAffected
  • =4.0.0-5
  • =4.0.0-6
  • =4.0.0-6build1
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…