CVE-2015-0244: SQL Injection

Published Feb 3, 2015
·
Updated

PostgreSQL before 9.0.19, 9.1.x before 9.1.15, 9.2.x before 9.2.10, 9.3.x before 9.3.6, and 9.4.x before 9.4.1 does not properly handle errors while reading a protocol message, which allows remote attackers to conduct SQL injection attacks via crafted binary data in a parameter and causing an error, which triggers the loss of synchronization and part of the protocol message to be treated as a new message, as demonstrated by causing a timeout or query cancellation.

Other sources

The PostgreSQL project reports the following issue:

If any error occurred while the server was in the middle of reading a protocol message from the client, it could lose synchronization and incorrectly try to interpret part of the message's data as a new protocol message. An attacker able to submit crafted binary data within a command parameter might succeed in injecting his own SQL commands this way. Statement timeout and query cancellation are the most likely sources of errors triggering this scenario. Particularly vulnerable are applications that use a timeout and also submit arbitrary user-crafted data as binary query parameters. Disabling statement timeout will reduce, but not eliminate, the risk of exploit.

Acknowledgements:

Red Hat would like to thank the PostgreSQL project for reporting this issue. Upstream acknowledges Emil Lenngren as the original reporter.

— Red Hat

Affected Software

12 affected componentsFixes available
PostgreSQL postgresql<9.0.19
PostgreSQL postgresql>=9.1.0<9.1.15
PostgreSQL postgresql>=9.2.0<9.2.10
PostgreSQL postgresql>=9.3.0<9.3.6
PostgreSQL postgresql>=9.4.0<9.4.1
Debian Debian Linux=7.0
Debian Debian Linux=8.0
redhat/postgresql<9.0.19
9.0.19
redhat/postgresql<9.1.15
9.1.15
redhat/postgresql<9.2.10
9.2.10
redhat/postgresql<9.3.6
9.3.6
redhat/postgresql<9.4.1
9.4.1

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.19
  2. Upgrade

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

    Fixed in 9.1.15
  3. Upgrade

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

    Fixed in 9.2.10
  4. Upgrade

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

    Fixed in 9.3.6
  5. Upgrade

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

    Fixed in 9.4.1
  6. Upgrade

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

    Fixed in 9.0.19
  7. Upgrade

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

    Fixed in 9.1.15
  8. Upgrade

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

    Fixed in 9.2.10
  9. Upgrade

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

    Fixed in 9.3.6
  10. Upgrade

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

    Fixed in 9.4.1
  11. Configuration

    Disable statement timeout to reduce, but not eliminate, the risk of exploit.

    PostgreSQL statement timeout

Event History

Feb 3, 2015
Data Sourced
via Red Hat·02:39 PM
DescriptionSeverityAffected Software
Jan 27, 2020
CVE Published
via MITRE·03:29 PM
Data Sourced
via MITRE·03:29 PM
DescriptionWeakness
Data Sourced
04:15 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2015-0244?

The severity of CVE-2015-0244 is critical with a severity value of 9.8.

2

How does CVE-2015-0244 affect PostgreSQL?

CVE-2015-0244 affects PostgreSQL versions before 9.0.19, 9.1.x before 9.1.15, 9.2.x before 9.2.10, 9.3.x before 9.3.6, and 9.4.x before 9.4.1.

3

What is SQL injection?

SQL injection is a type of security vulnerability that allows attackers to inject malicious SQL statements into an application's database, potentially gaining unauthorized access or manipulating data.

4

How can I fix the vulnerability in PostgreSQL?

To fix the vulnerability in PostgreSQL, upgrade to version 9.0.19 or later for PostgreSQL 9.0.x, upgrade to version 9.1.15 or later for PostgreSQL 9.1.x, upgrade to version 9.2.10 or later for PostgreSQL 9.2.x, upgrade to version 9.3.6 or later for PostgreSQL 9.3.x, and upgrade to version 9.4.1 or later for PostgreSQL 9.4.x.

5

Where can I find more information about CVE-2015-0244?

You can find more information about CVE-2015-0244 at the following references: [http://www.debian.org/security/2015/dsa-3155](http://www.debian.org/security/2015/dsa-3155), [http://www.postgresql.org/about/news/1569/](http://www.postgresql.org/about/news/1569/), [http://www.postgresql.org/docs/9.4/static/release-9-4-1.html](http://www.postgresql.org/docs/9.4/static/release-9-4-1.html).

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