Intrusion Prevention

PostgreSQL.Database.SET.ROLE.Security.Bypass

Description

This indicates an attack attempt to exploit a Security Bypass vulnerability in PostgreSQL database server.
The vulnerability is due to an error when handling a crafted grant role command. A remote attacker may be able to exploit this to execute arbitrary code within the context of the application.

Affected Products

PostgreSQL PostgreSQL prior to 8.4.20
PostgreSQL PostgreSQL prior to 9.0.16
PostgreSQL PostgreSQL prior to 9.1.12
PostgreSQL PostgreSQL prior to 9.2.7
PostgreSQL PostgreSQL prior to 9.3.3

Impact

System Compromise: Remote attackers can gain control of vulnerable systems.

Recommended Actions

Apply the most recent upgrade or patch from the vendor.
http://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=fea164a72a7bfd50d77ba5fb418d357f8f2bb7d0

CVE References

CVE-2014-0060

Other References

http://wiki.postgresql.org/wiki/20140220securityrelease# SET_ROLE_bypasses_lack_of_ADMIN_OPTION