Hash: SHA1

                         AUSCERT Security Bulletin

               PostgreSQL: Unpatched Vulnerability Disclosed
                               30 April 2010


        AusCERT Security Bulletin Summary

Product:          PostgreSQL
Operating System: UNIX variants (UNIX, Linux, OSX)
Impact/Access:    Execute Arbitrary Code/Commands -- Existing Account
                  Increased Privileges            -- Existing Account
                  Denial of Service               -- Existing Account
Resolution:       Mitigation

Revision History: April   30 2010: Corrected impacts to reflect the requirement
                                   for an existing account
                  January 28 2010: Initial Release


        A security vulnerability has been reported in PostgreSQL.


        Security researcher Evgeny Legerov has published details of a 
        vulnerability reportedly affecting PostgreSQL 8.0.23:
        "PostgreSQL 8.0.23 bitsubstr overflow" [1]
        The current proof of concept will most likely cause a Denial of 
        Service, but could possibly be modified to execute arbitrary code
        and or increase account privileges. Existing access to the database, 
        either directly or via an application querying the database, is 
        required in order to use this exploit.


        At the time of this publication there was no response or patches 
        from PostgreSQL.
        Until a patch becomes available users should consider restricting 
        network access to the PostgreSQL database and monitor traffic and 
        system performance for unusual activity. In cases where an 
        external application queries the database, user input should be 
        sanitised before being run.


        [1] PostgreSQL 8.0.23 bitsubstr overflow

AusCERT has made every effort to ensure that the information contained
in this document is accurate.  However, the decision to use the information
described is the responsibility of each user or organisation. The decision to
follow or act on information or advice contained in this security bulletin is
the responsibility of each user or organisation, and should be considered in
accordance with your organisation's site policies and procedures. AusCERT
takes no responsibility for consequences which may arise from following or
acting on information or advice contained in this security bulletin.

If you believe that your computer system has been compromised or attacked in 
any way, we encourage you to let us know by completing the secure National IT 
Incident Reporting Form at:


Australian Computer Emergency Response Team
The University of Queensland
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours 
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.
Comment: http://www.auscert.org.au/render.html?it=1967