Debian Security Advisory DSA 2657-1 (postgresql-8.4 - guessable random numbers)

Summary
A vulnerability was discovered in PostgreSQL database server. Random numbers generated by contrib/pgcrypto functions may be easy for another database user to guess.
Solution
For the stable distribution (squeeze), this problem has been fixed in version 8.4.17-0squeeze1. For the testing (wheezy) and unstable distribution (sid), postgresql-8.4 packages have been removed in those, this problem has been fixed in postgresql-9.1 9.1.9-0wheezy1 (wheezy), and 9.1.9-1 (sid) respectively. Note: postgresql-8.4 in Squeeze is not affected by CVE-2013-1899 (database files corruption) and CVE-2013-1901 (unprivileged user can interfere with in-progress backups). We recommend that you upgrade your postgresql-8.4 packages.
Insight
PostgreSQL is a fully featured object-relational database management system. It supports a large part of the SQL standard and is designed to be extensible by users in many aspects. Some of the features are: ACID transactions, foreign keys, views, sequences, subqueries, triggers, user-defined types and functions, outer joins, multiversion concurrency control. Graphical user interfaces and bindings for many programming languages are available as well.
Affected
postgresql-8.4 on Debian Linux
Detection
This check tests the installed software version using the apt package manager.
References