Skip to content
Heist/ feed
Back to feed
High

pgagent — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2025-0218

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.

Products
pgagent
Affected versions
3.4.0-3build1, 3.4.1-1, 3.4.1-1build1, 3.4.1-2, 3.4.1-4, 3.4.1-5, 3.4.1-5build1, 4.0.0-5, 4.0.0-6, 4.0.0-6build1, 4.0.0-8build1, 4.2.1-2, 4.2.2-2build1, 4.2.2-3, 4.2.2-3build1, 4.2.2-3build2, 4.2.3-2, 4.2.3-2build2, 4.2.3-4, 4.2.3-4build1, 4.2.3-5
Fixed versions
Not specified
CVEs
CVE-2025-0218
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:24 UTC · Revision 1

Source evidence

UBUNTU-CVE-2025-0218

core-osv · Original source

Published 7 Jan 2025, 20:15 UTC

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.

osv:UBUNTU-CVE-2025-0218

pgagent

Fixed versions: Not specified

pgagent

Fixed versions: Not specified

pgagent

Fixed versions: Not specified

pgagent

Fixed versions: Not specified

pgagent

Fixed versions: Not specified

pgagent

Fixed versions: Not specified

pgagent

Fixed versions: Not specified

pgagent

Fixed versions: Not specified

Complete source record
{
  "id": "8d35df01b05f893169dc40ffb48e25196396c1e9592a40cfa8bf96abe36f82f4",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2025-0218",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2025-0218",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2025-0218",
    "products": [
      {
        "name": {
          "value": "pgagent",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.4.0-3build1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.4.1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.4.1-1build1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.4.1-2",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "pgagent",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.4.1-4",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.4.1-5",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.4.1-5build1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "pgagent",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.0.0-5",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.0.0-6",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.0.0-6build1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "pgagent",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.0.0-8build1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "4.2.1-2",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "pgagent",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.2.2-2build1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "4.2.2-3",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "4.2.2-3build1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "4.2.2-3build2",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "pgagent",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.2.3-2",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "4.2.3-2build2",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "pgagent",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.2.3-5",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "pgagent",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.2.3-2build2",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "4.2.3-4",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "4.2.3-4build1",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "4.2.3-5",
            "evidence": "/affected/7/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2025-0218",
      "aliases": [
        "UBUNTU-CVE-2025-0218"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pgagent",
            "purl": "pkg:deb/ubuntu/pgagent?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "3.4.0-3build1",
            "3.4.1-1",
            "3.4.1-1build1",
            "3.4.1-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-0218.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "pgagent",
                "binary_version": "3.4.1-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pgagent",
            "purl": "pkg:deb/ubuntu/pgagent?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "3.4.1-4",
            "3.4.1-5",
            "3.4.1-5build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-0218.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "pgagent",
                "binary_version": "3.4.1-5build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pgagent",
            "purl": "pkg:deb/ubuntu/pgagent?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "4.0.0-5",
            "4.0.0-6",
            "4.0.0-6build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-0218.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "pgagent",
                "binary_version": "4.0.0-6build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pgagent",
            "purl": "pkg:deb/ubuntu/pgagent?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "4.0.0-8build1",
            "4.2.1-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-0218.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "pgagent",
                "binary_version": "4.2.1-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pgagent",
            "purl": "pkg:deb/ubuntu/pgagent?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "4.2.2-2build1",
            "4.2.2-3",
            "4.2.2-3build1",
            "4.2.2-3build2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-0218.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "pgagent",
                "binary_version": "4.2.2-3build2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pgagent",
            "purl": "pkg:deb/ubuntu/pgagent?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "4.2.3-2",
            "4.2.3-2build2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-0218.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "pgagent",
                "binary_version": "4.2.3-2build2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pgagent",
            "purl": "pkg:deb/ubuntu/pgagent?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "4.2.3-5"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-0218.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "pgagent",
                "binary_version": "4.2.3-5"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pgagent",
            "purl": "pkg:deb/ubuntu/pgagent?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "4.2.3-2build2",
            "4.2.3-4",
            "4.2.3-4build1",
            "4.2.3-5"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-0218.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "pgagent",
                "binary_version": "4.2.3-5"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:47.300065105Z",
      "provider": "osv",
      "upstream": [
        "CVE-2025-0218"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2025-0218",
        "https://www.cve.org/CVERecord?id=CVE-2025-0218",
        "https://github.com/pgadmin-org/pgagent/commit/1ecd193a2be3a3dc9e98f369495e1a792e6d508c"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2025-0218",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/1/score"
  },
  "source_id": "core-osv",
  "document_id": 356265,
  "published_at": "2025-01-07T20:15:00+00:00"
}