Vulnerabilities / CVE-2015-3166

critical

CVE-2015-3166

postgresql: unanticipated errors from the standard library

Published Modified CWE 119
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat4.0AV:N/AC:H/Au:N/C:P/I:N/A:P

Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Amazon (medium), Oracle (medium), Ubuntu (medium), Red Hat (low).

Description

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.

Affected packages and fixed versions

SourcePackageFixed in
amazon linux 1postgresql8, postgresql8-contrib, postgresql8-debuginfo and 8 more8.4.20-3.50.amzn1
debian 7postgresql-9.19.1.16-0+deb7u1
debian 8postgresql-9.1, postgresql-9.49.1.16-0+deb8u1 and 1 more
Oracle Linux 6postgresql, postgresql-contrib, postgresql-devel and 7 more8.4.20-3.el6_6
Oracle Linux 7postgresql, postgresql-contrib, postgresql-devel and 8 more9.2.13-1.el7_1
ubuntu 12.04postgresql-9.19.1.16-0ubuntu0.12.04
ubuntu 14.04postgresql-9.1, postgresql-9.39.1.16-0ubuntu0.14.04 and 1 more
ubuntu 14.04-ESMpostgresql-9.39.3.7-0ubuntu0.14.04
ubuntu 14.10postgresql-9.49.4.2-0ubuntu0.14.10
ubuntu 15.04postgresql-9.49.4.2-0ubuntu0.15.04
ubuntu 15.10postgresql-9.49.4.2-1
Show all 42 entries from 11 sources
SourcePackageFixed in
amazon linux 1postgresql88.4.20-3.50.amzn1
amazon linux 1postgresql8-contrib8.4.20-3.50.amzn1
amazon linux 1postgresql8-debuginfo8.4.20-3.50.amzn1
amazon linux 1postgresql8-devel8.4.20-3.50.amzn1
amazon linux 1postgresql8-docs8.4.20-3.50.amzn1
amazon linux 1postgresql8-libs8.4.20-3.50.amzn1
amazon linux 1postgresql8-plperl8.4.20-3.50.amzn1
amazon linux 1postgresql8-plpython8.4.20-3.50.amzn1
amazon linux 1postgresql8-pltcl8.4.20-3.50.amzn1
amazon linux 1postgresql8-server8.4.20-3.50.amzn1
amazon linux 1postgresql8-test8.4.20-3.50.amzn1
debian 7postgresql-9.19.1.16-0+deb7u1
debian 8postgresql-9.19.1.16-0+deb8u1
debian 8postgresql-9.49.4.2-0+deb8u1
Oracle Linux 6postgresql8.4.20-3.el6_6
Oracle Linux 6postgresql-contrib8.4.20-3.el6_6
Oracle Linux 6postgresql-devel8.4.20-3.el6_6
Oracle Linux 6postgresql-docs8.4.20-3.el6_6
Oracle Linux 6postgresql-libs8.4.20-3.el6_6
Oracle Linux 6postgresql-plperl8.4.20-3.el6_6
Oracle Linux 6postgresql-plpython8.4.20-3.el6_6
Oracle Linux 6postgresql-pltcl8.4.20-3.el6_6
Oracle Linux 6postgresql-server8.4.20-3.el6_6
Oracle Linux 6postgresql-test8.4.20-3.el6_6
Oracle Linux 7postgresql9.2.13-1.el7_1
Oracle Linux 7postgresql-contrib9.2.13-1.el7_1
Oracle Linux 7postgresql-devel9.2.13-1.el7_1
Oracle Linux 7postgresql-docs9.2.13-1.el7_1
Oracle Linux 7postgresql-libs9.2.13-1.el7_1
Oracle Linux 7postgresql-plperl9.2.13-1.el7_1
Oracle Linux 7postgresql-plpython9.2.13-1.el7_1
Oracle Linux 7postgresql-pltcl9.2.13-1.el7_1
Oracle Linux 7postgresql-server9.2.13-1.el7_1
Oracle Linux 7postgresql-test9.2.13-1.el7_1
Oracle Linux 7postgresql-upgrade9.2.13-1.el7_1
ubuntu 12.04postgresql-9.19.1.16-0ubuntu0.12.04
ubuntu 14.04postgresql-9.19.1.16-0ubuntu0.14.04
ubuntu 14.04postgresql-9.39.3.7-0ubuntu0.14.04
ubuntu 14.04-ESMpostgresql-9.39.3.7-0ubuntu0.14.04
ubuntu 14.10postgresql-9.49.4.2-0ubuntu0.14.10
ubuntu 15.04postgresql-9.49.4.2-0ubuntu0.15.04
ubuntu 15.10postgresql-9.49.4.2-1

References

All 15 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.