Security Advisory postgresql security update

Advisory: RHSA-2003:314-08
Type: Security Advisory
Severity: Moderate
Issued on: 2003-11-12
Last updated on: 2003-11-12
Affected Products: Red Hat Enterprise Linux AS (v. 2.1)
Red Hat Enterprise Linux ES (v. 2.1)
Red Hat Enterprise Linux WS (v. 2.1)
Red Hat Linux Advanced Workstation 2.1 for the Itanium Processor
OVAL: N/A
CVEs (cve.mitre.org): CVE-2003-0901

Details

Updated PostgreSQL packages that correct a buffer overflow in the to_ascii
routines are now available.

PostgreSQL is an advanced Object-Relational database management system
(DBMS).

Two bugs that can lead to buffer overflows have been found in the
PostgreSQL abstract data type to ASCII conversion routines. A remote
attacker who is able to influence the data passed to the to_ascii functions
may be able to execute arbitrary code in the context of the PostgreSQL
server. The Common Vulnerabilities and Exposures project (cve.mitre.org)
has assigned the name CAN-2003-0901 to these issues.

In addition, a bug that can lead to leaks has been found in the string to
timestamp abstract data type conversion routine. If the input string to
the to_timestamp() routine is shorter than what the template string is
expecting, the routine will run off the end of the input string, resulting
in a leak and unstable behaviour.

Users of PostgreSQL are advised to upgrade to these erratum packages, which
contain a backported patch that corrects these issues.


Solution

Before applying this update, make sure all previously released errata
relevant to your system have been applied.

Please note that this update is available via Red Hat Network. To use Red
Hat Network, launch the Red Hat Update Agent with the following command:

up2date

This will start an interactive process that will result in the appropriate
RPMs being upgraded on your system.

Note that no initdb will be necessary from previous PostgreSQL packages.

Updated packages

Red Hat Enterprise Linux AS (v. 2.1)

SRPMS:
postgresql-7.1.3-5.rhel2.1AS.src.rpm     c28d917a7385a7c9ce21bc3497343707
 
IA-32:
postgresql-7.1.3-5.rhel2.1AS.i386.rpm
File outdated by:  RHBA-2005:240
    d2127cbd6ddb55152261b2de788d7edb
postgresql-contrib-7.1.3-5.rhel2.1AS.i386.rpm
File outdated by:  RHBA-2005:240
    df5d2b6ca580450547012e399f1fdddd
postgresql-devel-7.1.3-5.rhel2.1AS.i386.rpm
File outdated by:  RHBA-2005:240
    4f534b7b434769170c66a9f8be0e58c2
postgresql-docs-7.1.3-5.rhel2.1AS.i386.rpm
File outdated by:  RHBA-2005:240
    dae3170d0501002f0d1d82c959c968c2
postgresql-jdbc-7.1.3-5.rhel2.1AS.i386.rpm
File outdated by:  RHBA-2005:240
    f6f584cd85ca9b22e5e0c1026a9245ad
postgresql-libs-7.1.3-5.rhel2.1AS.i386.rpm
File outdated by:  RHBA-2005:240
    8d6c9c04a0443d7436cba148976bb026
postgresql-odbc-7.1.3-5.rhel2.1AS.i386.rpm
File outdated by:  RHBA-2005:240
    d4e848b03d329d304067f1949b5410e8
postgresql-perl-7.1.3-5.rhel2.1AS.i386.rpm
File outdated by:  RHBA-2005:240
    3a9cb25f8c5b43cfefa695c327ba3550
postgresql-python-7.1.3-5.rhel2.1AS.i386.rpm
File outdated by:  RHBA-2005:240
    775e7679e5ab4595ec56e8dbc96db22c
postgresql-server-7.1.3-5.rhel2.1AS.i386.rpm
File outdated by:  RHBA-2005:240
    8aceee96dc6041bb8122aa50ee37579e
postgresql-tcl-7.1.3-5.rhel2.1AS.i386.rpm
File outdated by:  RHBA-2005:240
    495e8142ef5c552853ca1bd81e009dd6
postgresql-test-7.1.3-5.rhel2.1AS.i386.rpm
File outdated by:  RHBA-2005:240
    05c3c4b3e77dd5bec3513dc998b396e4
postgresql-tk-7.1.3-5.rhel2.1AS.i386.rpm
File outdated by:  RHBA-2005:240
    847c506d7cf16259465ead0ce7574980
 
IA-64:
postgresql-7.1.3-5.rhel2.1AS.ia64.rpm
File outdated by:  RHBA-2005:240
    dfcf872a083fc54432cfcab0aef6e87a
postgresql-contrib-7.1.3-5.rhel2.1AS.ia64.rpm
File outdated by:  RHBA-2005:240
    fc14fb462aa5102a8c2d93241981f5f4
postgresql-devel-7.1.3-5.rhel2.1AS.ia64.rpm
File outdated by:  RHBA-2005:240
    1206054843ab236253c52e0bfe9e5ae4
postgresql-docs-7.1.3-5.rhel2.1AS.ia64.rpm
File outdated by:  RHBA-2005:240
    bf3d07ac537ba024df240ddbed3ad4c4
postgresql-jdbc-7.1.3-5.rhel2.1AS.ia64.rpm
File outdated by:  RHBA-2005:240
    6a47776491c4baa717014b1c47324d63
postgresql-libs-7.1.3-5.rhel2.1AS.ia64.rpm
File outdated by:  RHBA-2005:240
    1b6fccd15c0425a4638b933d94c048aa
postgresql-odbc-7.1.3-5.rhel2.1AS.ia64.rpm
File outdated by:  RHBA-2005:240
    2fe8bbb60a082f8a19e6f0fc05c0bafa
postgresql-perl-7.1.3-5.rhel2.1AS.ia64.rpm
File outdated by:  RHBA-2005:240
    308a02650c815c40c179c4b741ea65c9
postgresql-python-7.1.3-5.rhel2.1AS.ia64.rpm
File outdated by:  RHBA-2005:240
    c47bbe3e62e08d283c5253a3ec3747a4
postgresql-server-7.1.3-5.rhel2.1AS.ia64.rpm
File outdated by:  RHBA-2005:240
    b1b013e245b571e22e8f6c04ac949681
postgresql-tcl-7.1.3-5.rhel2.1AS.ia64.rpm
File outdated by:  RHBA-2005:240
    464f082aa1fc1be9032ca4cbcd856717
postgresql-test-7.1.3-5.rhel2.1AS.ia64.rpm
File outdated by:  RHBA-2005:240
    1bc34e28bdff372d74da9116c60a025c
postgresql-tk-7.1.3-5.rhel2.1AS.ia64.rpm
File outdated by:  RHBA-2005:240
    372f68542863801b6998d2aadd966f21
 
Red Hat Enterprise Linux ES (v. 2.1)

SRPMS:
postgresql-7.1.3-5.rhel2.1AS.src.rpm     c28d917a7385a7c9ce21bc3497343707
 
IA-32:
postgresql-7.1.3-5.rhel2.1AS.i386.rpm
File outdated by:  RHBA-2005:240
    d2127cbd6ddb55152261b2de788d7edb
postgresql-contrib-7.1.3-5.rhel2.1AS.i386.rpm
File outdated by:  RHBA-2005:240
    df5d2b6ca580450547012e399f1fdddd
postgresql-devel-7.1.3-5.rhel2.1AS.i386.rpm
File outdated by:  RHBA-2005:240
    4f534b7b434769170c66a9f8be0e58c2
postgresql-docs-7.1.3-5.rhel2.1AS.i386.rpm
File outdated by:  RHBA-2005:240
    dae3170d0501002f0d1d82c959c968c2
postgresql-jdbc-7.1.3-5.rhel2.1AS.i386.rpm
File outdated by:  RHBA-2005:240
    f6f584cd85ca9b22e5e0c1026a9245ad
postgresql-libs-7.1.3-5.rhel2.1AS.i386.rpm
File outdated by:  RHBA-2005:240
    8d6c9c04a0443d7436cba148976bb026
postgresql-odbc-7.1.3-5.rhel2.1AS.i386.rpm
File outdated by:  RHBA-2005:240
    d4e848b03d329d304067f1949b5410e8
postgresql-perl-7.1.3-5.rhel2.1AS.i386.rpm
File outdated by:  RHBA-2005:240
    3a9cb25f8c5b43cfefa695c327ba3550
postgresql-python-7.1.3-5.rhel2.1AS.i386.rpm
File outdated by:  RHBA-2005:240
    775e7679e5ab4595ec56e8dbc96db22c
postgresql-server-7.1.3-5.rhel2.1AS.i386.rpm
File outdated by:  RHBA-2005:240
    8aceee96dc6041bb8122aa50ee37579e
postgresql-tcl-7.1.3-5.rhel2.1AS.i386.rpm
File outdated by:  RHBA-2005:240
    495e8142ef5c552853ca1bd81e009dd6
postgresql-test-7.1.3-5.rhel2.1AS.i386.rpm
File outdated by:  RHBA-2005:240
    05c3c4b3e77dd5bec3513dc998b396e4
postgresql-tk-7.1.3-5.rhel2.1AS.i386.rpm
File outdated by:  RHBA-2005:240
    847c506d7cf16259465ead0ce7574980
 
Red Hat Enterprise Linux WS (v. 2.1)

SRPMS:
postgresql-7.1.3-5.rhel2.1AS.src.rpm     c28d917a7385a7c9ce21bc3497343707
 
IA-32:
postgresql-7.1.3-5.rhel2.1AS.i386.rpm
File outdated by:  RHBA-2005:240
    d2127cbd6ddb55152261b2de788d7edb
postgresql-contrib-7.1.3-5.rhel2.1AS.i386.rpm
File outdated by:  RHBA-2005:240
    df5d2b6ca580450547012e399f1fdddd
postgresql-devel-7.1.3-5.rhel2.1AS.i386.rpm
File outdated by:  RHBA-2005:240
    4f534b7b434769170c66a9f8be0e58c2
postgresql-docs-7.1.3-5.rhel2.1AS.i386.rpm
File outdated by:  RHBA-2005:240
    dae3170d0501002f0d1d82c959c968c2
postgresql-jdbc-7.1.3-5.rhel2.1AS.i386.rpm
File outdated by:  RHBA-2005:240
    f6f584cd85ca9b22e5e0c1026a9245ad
postgresql-libs-7.1.3-5.rhel2.1AS.i386.rpm
File outdated by:  RHBA-2005:240
    8d6c9c04a0443d7436cba148976bb026
postgresql-odbc-7.1.3-5.rhel2.1AS.i386.rpm
File outdated by:  RHBA-2005:240
    d4e848b03d329d304067f1949b5410e8
postgresql-perl-7.1.3-5.rhel2.1AS.i386.rpm
File outdated by:  RHBA-2005:240
    3a9cb25f8c5b43cfefa695c327ba3550
postgresql-python-7.1.3-5.rhel2.1AS.i386.rpm
File outdated by:  RHBA-2005:240
    775e7679e5ab4595ec56e8dbc96db22c
postgresql-server-7.1.3-5.rhel2.1AS.i386.rpm
File outdated by:  RHBA-2005:240
    8aceee96dc6041bb8122aa50ee37579e
postgresql-tcl-7.1.3-5.rhel2.1AS.i386.rpm
File outdated by:  RHBA-2005:240
    495e8142ef5c552853ca1bd81e009dd6
postgresql-test-7.1.3-5.rhel2.1AS.i386.rpm
File outdated by:  RHBA-2005:240
    05c3c4b3e77dd5bec3513dc998b396e4
postgresql-tk-7.1.3-5.rhel2.1AS.i386.rpm
File outdated by:  RHBA-2005:240
    847c506d7cf16259465ead0ce7574980
 
Red Hat Linux Advanced Workstation 2.1 for the Itanium Processor

SRPMS:
postgresql-7.1.3-5.rhel2.1AS.src.rpm     c28d917a7385a7c9ce21bc3497343707
 
IA-64:
postgresql-7.1.3-5.rhel2.1AS.ia64.rpm
File outdated by:  RHBA-2005:240
    dfcf872a083fc54432cfcab0aef6e87a
postgresql-contrib-7.1.3-5.rhel2.1AS.ia64.rpm
File outdated by:  RHBA-2005:240
    fc14fb462aa5102a8c2d93241981f5f4
postgresql-devel-7.1.3-5.rhel2.1AS.ia64.rpm
File outdated by:  RHBA-2005:240
    1206054843ab236253c52e0bfe9e5ae4
postgresql-docs-7.1.3-5.rhel2.1AS.ia64.rpm
File outdated by:  RHBA-2005:240
    bf3d07ac537ba024df240ddbed3ad4c4
postgresql-jdbc-7.1.3-5.rhel2.1AS.ia64.rpm
File outdated by:  RHBA-2005:240
    6a47776491c4baa717014b1c47324d63
postgresql-libs-7.1.3-5.rhel2.1AS.ia64.rpm
File outdated by:  RHBA-2005:240
    1b6fccd15c0425a4638b933d94c048aa
postgresql-odbc-7.1.3-5.rhel2.1AS.ia64.rpm
File outdated by:  RHBA-2005:240
    2fe8bbb60a082f8a19e6f0fc05c0bafa
postgresql-perl-7.1.3-5.rhel2.1AS.ia64.rpm
File outdated by:  RHBA-2005:240
    308a02650c815c40c179c4b741ea65c9
postgresql-python-7.1.3-5.rhel2.1AS.ia64.rpm
File outdated by:  RHBA-2005:240
    c47bbe3e62e08d283c5253a3ec3747a4
postgresql-server-7.1.3-5.rhel2.1AS.ia64.rpm
File outdated by:  RHBA-2005:240
    b1b013e245b571e22e8f6c04ac949681
postgresql-tcl-7.1.3-5.rhel2.1AS.ia64.rpm
File outdated by:  RHBA-2005:240
    464f082aa1fc1be9032ca4cbcd856717
postgresql-test-7.1.3-5.rhel2.1AS.ia64.rpm
File outdated by:  RHBA-2005:240
    1bc34e28bdff372d74da9116c60a025c
postgresql-tk-7.1.3-5.rhel2.1AS.ia64.rpm
File outdated by:  RHBA-2005:240
    372f68542863801b6998d2aadd966f21
 
(The unlinked packages above are only available from the Red Hat Network)

Bugs fixed (see bugzilla for more information)

108578 - CAN-2003-0901 PostgreSQL To_Ascii() Buffer Overflow Vulnerability
109067 - to_timestamp not stable if date string shorter than template


References



These packages are GPG signed by Red Hat for security. Our key and details on how to verify the signature are available from:
https://www.redhat.com/security/team/key/#package

The Red Hat security contact is secalert@redhat.com. More contact details at http://www.redhat.com/security/team/contact/