CVE-2013-1899: Code Injection

Published Mar 29, 2013
·
Updated

A denial of service flaw was found in the way command switch parsing logic of PostgreSQL, an advanced Object-Relational database management system, processed certain database names (a database name beginning with '-' character was interpreted as it if were a command line switch for a standalone backend). A remote attacker could issue a specially-crafted SQL query that, when processed by the PostgreSQL server would lead to unauthorized modification of the server's configuration file or attacker's ability to replace server's critical database / table with a junk file (of their choose), during the server's crash recovery process (denial of service).

Other sources

Argument injection vulnerability in PostgreSQL 9.2.x before 9.2.4, 9.1.x before 9.1.9, and 9.0.x before 9.0.13 allows remote attackers to cause a denial of service (file corruption), and allows remote authenticated users to modify configuration settings and execute arbitrary code, via a connection request using a database name that begins with a "-" (hyphen).

— MITRE

Affected Software

34 affected componentsFixes available
PostgreSQL postgresql=9.2
PostgreSQL postgresql=9.2.1
PostgreSQL postgresql=9.2.2
PostgreSQL postgresql=9.2.3
PostgreSQL postgresql=9.1
PostgreSQL postgresql=9.1.1
PostgreSQL postgresql=9.1.2
PostgreSQL postgresql=9.1.3
PostgreSQL postgresql=9.1.4
PostgreSQL postgresql=9.1.5
PostgreSQL postgresql=9.1.6
PostgreSQL postgresql=9.1.7
PostgreSQL postgresql=9.1.8
PostgreSQL postgresql=9.0
PostgreSQL postgresql=9.0.1
PostgreSQL postgresql=9.0.2
PostgreSQL postgresql=9.0.3
PostgreSQL postgresql=9.0.4
PostgreSQL postgresql=9.0.5
PostgreSQL postgresql=9.0.6
PostgreSQL postgresql=9.0.7
PostgreSQL postgresql=9.0.8
PostgreSQL postgresql=9.0.9
PostgreSQL postgresql=9.0.10
PostgreSQL postgresql=9.0.11
PostgreSQL postgresql=9.0.12
Canonical Ubuntu Linux=8.04
Canonical Ubuntu Linux=10.04
Canonical Ubuntu Linux=11.10
Canonical Ubuntu Linux=12.04
Canonical Ubuntu Linux=12.10
redhat/postgresql<9.0.13
9.0.13
redhat/postgresql<9.1.9
9.1.9
redhat/postgresql<9.2.4
9.2.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/PostgreSQL to a version that resolves this vulnerability.

    Fixed in 9.0.13
  2. Upgrade

    Upgrade redhat/PostgreSQL to a version that resolves this vulnerability.

    Fixed in 9.1.9
  3. Upgrade

    Upgrade redhat/PostgreSQL to a version that resolves this vulnerability.

    Fixed in 9.2.4
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 9.2.4
  5. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 9.1.9
  6. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 9.0.13

Event History

Mar 29, 2013
Data Sourced
via Red Hat·02:48 PM
DescriptionSeverityAffected Software
Apr 4, 2013
CVE Published
via MITRE·05:00 PM
Data Sourced
via MITRE·05:00 PM
Description
Data Sourced
05:55 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2013-1899?

CVE-2013-1899 has a severity rating that indicates it can lead to denial of service and potential arbitrary code execution.

2

How do I fix CVE-2013-1899?

To fix CVE-2013-1899, upgrade PostgreSQL to version 9.2.4 or later, 9.1.9 or later, or 9.0.13 or later.

3

What software is affected by CVE-2013-1899?

CVE-2013-1899 affects PostgreSQL versions 9.0.x, 9.1.x, and 9.2.x prior to their respective patched versions.

4

Can remote attackers exploit CVE-2013-1899?

Yes, CVE-2013-1899 allows remote attackers to cause denial of service or modify settings if they gain access.

5

What are the consequences of CVE-2013-1899?

Consequences of CVE-2013-1899 include file corruption, denial of service, and the ability for authenticated users to execute arbitrary code.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203