Skip to main content
CVE-2025-0218VulnerabilityPublished Updated

CVE-2025-0218: pgAgent · Generation of Predictable Numbers or Identifiers

Affects pgAgentSource CVE Database V5

0

Not known to be exploited · CVSS 5.5 Medium : upgrade to 4.2.3 when convenient.

Data as of 26 Oct 2026, 06:26 UTC

CVSS 3.1 base score
5.5Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.1% chance of exploitation in 30 days – higher than 7% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 4.2.3
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. Weaponised: 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 2026-10-26.

What to do

Upgrade pgadmin-org/pgagent to 4.2.3.

Affected software

ProductAffectedFixed in
GitHubpgadmin-org/pgagentpkg:github/pgadmin-org/pgagentOther threatsAffected
  • <4.2.3
Fixed in
  • 4.2.3

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

AI-suggested

The primary mitigation is to upgrade pgAgent to version 4.2.3 or later, where the random number generator seeding issue has been resolved. Until patching is possible, organizations should restrict local user permissions to prevent unauthorized users from creating directories in the temporary locations used by pgAgent. Implement strict access controls and monitoring on systems running pgAgent to detect suspicious directory creation attempts. Consider isolating pgAgent execution environments to minimize the number of users with local access. Regularly audit scheduled job execution logs to identify failures potentially caused by this vulnerability. Additionally, review and harden the system's temporary directory permissions and consider using filesystem-level protections such as mandatory access controls (e.g., SELinux, AppArmor) to prevent unauthorized directory manipulation. Incorporating these measures will reduce the risk of exploitation and maintain job scheduling reliability.

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…