Bug 797917 - (CVE-2012-0868) CVE-2012-0868 postgresql: SQL injection due unsanitized newline characters in object names
CVE-2012-0868 postgresql: SQL injection due unsanitized newline characters in...
Status: CLOSED ERRATA
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
impact=moderate,public=20120227,repor...
: Security
Depends On: 797918 812070 812071 812077 812078 812081 812082
Blocks: 797940
  Show dependency treegraph
 
Reported: 2012-02-27 09:25 EST by Jan Lieskovsky
Modified: 2015-11-24 09:55 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-05-21 14:16:09 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Jan Lieskovsky 2012-02-27 09:25:54 EST
A security flaw was found in the way pg_dump utility of PostgreSQL extracted information about particular database into script or other archive file for database objects, containing new line '\n' character in their names. An unprivileged database user could create a specially-crafted database object and use this flaw to perform arbitrary SQL command (SQL injection), when an unsuspecting database administrator reloaded such (previously dumped) script or archive file.

References:
[1] http://www.postgresql.org/support/security/
Comment 1 Jan Lieskovsky 2012-02-27 09:28:57 EST
This issue affects the versions of the postgresql and postgresql84 package, as shipped with Red Hat Enterprise Linux 5.

--

This issue affects the version of the postgresql package, as shipped with Red Hat Enterprise Linux 6.

--

This issue affects the versions of the postgresql package, as shipped with Fedora release of 15 and 16. Please schedule an update.
Comment 2 Jan Lieskovsky 2012-02-27 09:32:47 EST
Created postgresql tracking bugs for this issue

Affects: fedora-all [bug 797918]
Comment 5 Fedora Update System 2012-03-06 15:40:47 EST
postgresql-9.1.3-1.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 6 Fedora Update System 2012-03-07 23:01:13 EST
postgresql-9.1.3-1.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 7 Fedora Update System 2012-03-07 23:51:51 EST
postgresql-9.0.7-1.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 8 Fedora Update System 2012-03-07 23:54:09 EST
postgresql-9.1.3-1.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 12 errata-xmlrpc 2012-05-21 10:55:38 EDT
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5

Via RHSA-2012:0677 https://rhn.redhat.com/errata/RHSA-2012-0677.html
Comment 13 errata-xmlrpc 2012-05-21 11:10:04 EDT
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5
  Red Hat Enterprise Linux 6

Via RHSA-2012:0678 https://rhn.redhat.com/errata/RHSA-2012-0678.html

Note You need to log in before you can comment on or make changes to this bug.