pgAgent versions prior to 4.2.3 use an insufficiently seeded random number generator to create temporary directory names for batch job scripts. This allows a local attacker to pre-create the directory, preventing pgAgent from executing scheduled jobs and causing disruption.