{
  "id": "CVE-2025-0218",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-0218",
  "published_at": "2025-01-07T19:18:02.865Z",
  "title": "pgAgent scheduled batch job scripts are created in a predictable temporary directory potentially allowing a denial of service",
  "product": "pgAgent",
  "cvss": {
    "score": 7.1,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-340",
  "cpes": [
    "cpe:2.3:a:pgadmin:pgagent:*:*:*:*:*:postgresql:*:*"
  ],
  "cvss_by_source": {
    "cna": 5.5,
    "nvd": 7.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "n/a",
        "product": "pgAgent",
        "ranges": [
          "\u003e= 4, \u003c 4.2.3"
        ],
        "fixed_in": [
          "4.2.3"
        ]
      }
    ],
    "upgrade": [
      "Upgrade pgAgent to 4.2.3 or later."
    ],
    "workarounds": [
      "None."
    ],
    "references": [
      {
        "kind": "Patch",
        "url": "https://github.com/pgadmin-org/pgagent/commit/1ecd193a2be3a3dc9e98f369495e1a792e6d508c"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
