Gentoo: mod_auth_pgsql Multiple format string vulnerabilities
Posted by Benjamin D. Thomas   
Gentoo Format string vulnerabilities in mod_auth_pgsql may lead to the execution of arbitrary code.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory                           GLSA 200601-05
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                            http://security.gentoo.org/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

  Severity: High
     Title: mod_auth_pgsql: Multiple format string vulnerabilities
      Date: January 10, 2006
      Bugs: #118096
        ID: 200601-05

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Synopsis
========

Format string vulnerabilities in mod_auth_pgsql may lead to the
execution of arbitrary code.

Background
==========

mod_auth_pgsql is an Apache2 module that allows user authentication
against a PostgreSQL database.

Affected packages
=================

    -------------------------------------------------------------------
     Package                 /  Vulnerable  /               Unaffected
    -------------------------------------------------------------------
  1  net-www/mod_auth_pgsql       < 2.0.3                     >= 2.0.3

Description
===========

The error logging functions of mod_auth_pgsql fail to validate certain
strings before passing them to syslog, resulting in format string
vulnerabilities.

Impact
======

An unauthenticated remote attacker could exploit these vulnerabilities
to execute arbitrary code with the rights of the user running the
Apache2 server by sending specially crafted login names.

Workaround
==========

There is no known workaround at this time.

Resolution
==========

All mod_auth_pgsql users should upgrade to the latest version:

    # emerge --sync
    # emerge --ask --oneshot --verbose ">=net-www/mod_auth_pgsql-2.0.3"

References
==========

  [ 1 ] CVE-2005-3656
        http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2005-3656
  [ 2 ] FrSIRT ADV-2006-0070
        http://www.frsirt.com/english/advisories/2006/0070

Availability
============

This GLSA and any updates to it are available for viewing at
the Gentoo Security Website:

  http://security.gentoo.org/glsa/glsa-200601-05.xml

Concerns?
=========

Security is a primary focus of Gentoo Linux and ensuring the
confidentiality and security of our users machines is of utmost
importance to us. Any security concerns should be addressed to
security@gentoo.org or alternatively, you may file a bug at
http://bugs.gentoo.org.

License
=======

Copyright 2006 Gentoo Foundation, Inc; referenced text
belongs to its owner(s).

The contents of this document are licensed under the
Creative Commons - Attribution / Share Alike license.

http://creativecommons.org/licenses/by-sa/2.0