CVE-2015-3166: Buffer Overflow

Published May 14, 2015
·
Updated

The PostgreSQL project reports the following issue:

The server regularly ignores the return value of certain standard library functions, such as sprintf() and putenv(), which can fail under memory exhaustion. This could, in principle, have a variety of security-relevant effects. For example, an unnoticed sprintf() error could permit disclosure of prior buffer contents. A particular putenv() failure could cause GSSAPI authentication to consult the wrong keytab file. Reducing such exploits to practice is expected to be impossible in most configurations, given the requirement for such an intricate coincidence of system state.

This flaw is fixed in upstream versions 9.4.2, 9.3.7, 9.2.11, 9.1.16, and 9.0.20 of PostgreSQL.

Acknowledgements:

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

Other sources

The snprintf implementation in PostgreSQL before 9.0.20, 9.1.x before 9.1.16, 9.2.x before 9.2.11, 9.3.x before 9.3.7, and 9.4.x before 9.4.2 does not properly handle system-call errors, which allows attackers to obtain sensitive information or have other unspecified impact via unknown vectors, as demonstrated by an out-of-memory error.

— MITRE

Affected Software

20 affected componentsFixes available
PostgreSQL postgresql<9.0.20
PostgreSQL postgresql>=9.1<9.1.16
PostgreSQL postgresql>=9.2<9.2.11
PostgreSQL postgresql>=9.3<9.3.7
PostgreSQL postgresql>=9.4<9.4.2
Debian Debian Linux=7.0
Debian Debian Linux=8.0
Debian Debian Linux=9.0
Canonical Ubuntu Linux=12.04
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=14.10
Canonical Ubuntu Linux=15.04
F5 BIG-IP=17.1.0
17.1.1
F5 BIG-IP>=16.1.0<=16.1.6
F5 BIG-IP>=15.1.0<=15.1.10
redhat/postgresql<9.4.2
9.4.2
redhat/postgresql<9.3.7
9.3.7
redhat/postgresql<9.2.11
9.2.11
redhat/postgresql<9.1.16
9.1.16
redhat/postgresql<9.0.20
9.0.20

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade F5 BIG-IP and BIG-IQ Centralized Management to a version that resolves this vulnerability.

    Fixed in 17.1.1
  2. Upgrade

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

    Fixed in 9.4.2
  3. Upgrade

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

    Fixed in 9.3.7
  4. Upgrade

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

    Fixed in 9.2.11
  5. Upgrade

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

    Fixed in 9.1.16
  6. Upgrade

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

    Fixed in 9.0.20
  7. Upgrade

    Upgrade PostgreSQL to a version that resolves this vulnerability.

    Fixed in 9.4.2
  8. Upgrade

    Upgrade PostgreSQL to a version that resolves this vulnerability.

    Fixed in 9.3.7
  9. Upgrade

    Upgrade PostgreSQL to a version that resolves this vulnerability.

    Fixed in 9.2.11
  10. Upgrade

    Upgrade PostgreSQL to a version that resolves this vulnerability.

    Fixed in 9.1.16
  11. Upgrade

    Upgrade PostgreSQL to a version that resolves this vulnerability.

    Fixed in 9.0.20

Event History

May 14, 2015
Data Sourced
via Red Hat·10:18 AM
DescriptionSeverityAffected Software
Nov 20, 2019
CVE Published
via MITRE·08:50 PM
Data Sourced
via MITRE·08:50 PM
DescriptionWeakness
Data Sourced
09:15 PM
DescriptionSeverityWeaknessAffected Software
Mar 3, 2025
Advisory Published
via F5·09:38 PM
Data Sourced
via F5·09:38 PM
DescriptionSeverityWeaknessAffected Software
Mar 24, 2025
Updated
via F5·09:45 AM
SeverityAffected Software
Apr 21, 2025
Updated
via F5·11:11 PM
Affected Software

Frequently Asked Questions

1

What is CVE-2015-3166?

CVE-2015-3166 is a vulnerability in PostgreSQL that allows attackers to obtain sensitive information or have other unspecified impact.

2

What versions of PostgreSQL are affected by CVE-2015-3166?

PostgreSQL versions before 9.0.20, 9.1.x before 9.1.16, 9.2.x before 9.2.11, 9.3.x before 9.3.7, and 9.4.x before 9.4.2 are affected by CVE-2015-3166.

3

What is the severity of CVE-2015-3166?

CVE-2015-3166 has a severity rating of 9.8 (critical).

4

How can I fix CVE-2015-3166?

To fix CVE-2015-3166, it is recommended to upgrade to PostgreSQL versions 9.0.20, 9.1.16, 9.2.11, 9.3.7, or 9.4.2.

5

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

More information about CVE-2015-3166 can be found at the following references: [1] [2] [3].

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