Gentoo Logo

Perl DBD-Pg Module: Arbitrary code execution


1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 201204-08 / DBD-Pg
Release Date April 17, 2012
Latest Revision April 17, 2012: 1
Impact normal
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
dev-perl/DBD-Pg < 2.19.0 >= 2.19.0 All supported architectures

Related bugreports: #407549


Two format string vulnerabilities have been found in the Perl DBD-Pg module, allowing a remote PostgreSQL servers to execute arbitrary code.

2.  Impact Information


DBD-Pg is a PostgreSQL interface module for Perl.


Format string vulnerabilities have been found in the the "pg_warn()" and "dbd_st_prepare()" functions in dbdimp.c.


A remote PostgreSQL server could send specially crafted database warnings or DBD statements, possibly resulting in execution of arbitrary code.

3.  Resolution Information


There is no known workaround at this time.


All users of the Perl DBD-Pg module should upgrade to the latest version:

Code Listing 3.1: Resolution

  # emerge --sync
  # emerge --ask --oneshot --verbose ">=dev-perl/DBD-Pg-2.19.0"

4.  References


Page updated April 17, 2012

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

Copyright 2001-2015 Gentoo Foundation, Inc. Questions, Comments? Contact us.