Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 956398 (CVE-2025-0218) - <dev-db/pgagent-4.2.3: Insecure temporary directory use
Summary: <dev-db/pgagent-4.2.3: Insecure temporary directory use
Status: IN_PROGRESS
Alias: CVE-2025-0218
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Security
URL:
Whiteboard: B3 [stable?]
Keywords:
Depends on: 884711
Blocks:
  Show dependency tree
 
Reported: 2025-05-21 20:24 UTC by Sam James
Modified: 2025-05-21 20:28 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-05-21 20:24:29 UTC
From https://github.com/pgadmin-org/pgagent/releases/tag/pgagent-4.2.3

"""
Fix for 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.

The pgAdmin project thanks Wolfgang Frisch from SUSE for reporting this issue.
"""
Comment 1 Larry the Git Cow gentoo-dev 2025-05-21 20:28:22 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a0a6922e746fcea02a151f9ee7fdf1c5ce680a3

commit 7a0a6922e746fcea02a151f9ee7fdf1c5ce680a3
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-05-21 20:24:55 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-05-21 20:27:44 +0000

    dev-db/pgagent: add 4.2.3
    
    Bug: https://bugs.gentoo.org/956398
    Closes: https://bugs.gentoo.org/884711
    Closes: https://bugs.gentoo.org/954002
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-db/pgagent/Manifest                          |  1 +
 dev-db/pgagent/files/pgagent-4.2.3-cmake-4.patch | 12 ++++++
 dev-db/pgagent/pgagent-4.2.3.ebuild              | 48 ++++++++++++++++++++++++
 3 files changed, 61 insertions(+)