Every CVE Search/ Get API key

CVE-2016-0766

PostgreSQL before 9.1.20, 9.2.x before 9.2.15, 9.3.x before 9.3.11, 9.4.x before 9.4.6, and 9.5.x...

8.8 HighFix available

PostgreSQL before 9.1.20, 9.2.x before 9.2.15, 9.3.x before 9.3.11, 9.4.x before 9.4.6, and 9.5.x before 9.5.1 does not properly restrict access to unspecified custom configuration settings (GUCS) for PL/Java, which allows attackers to gain privileges via unspecified vectors.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
Low
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

4.11%Up 2.6 points since Feb 4, 2022
90%50%10%1%

What each source reports

NVD Score used 8.8

PostgreSQL before 9.1.20, 9.2.x before 9.2.15, 9.3.x before 9.3.11, 9.4.x before 9.4.6, and 9.5.x before 9.5.1 does not properly restrict access to unspecified custom configuration settings (GUCS) for PL/Java, which allows attackers to gain privileges via unspecified vectors.

Record
CVE-2016-0766
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
9.0 HighAV:N/AC:L/Au:S/C:C/I:C/A:C
Weakness
CWE-264
Updated
2026-11-02
CVE List No score

PostgreSQL before 9.1.20, 9.2.x before 9.2.15, 9.3.x before 9.3.11, 9.4.x before 9.4.6, and 9.5.x before 9.5.1 does not properly restrict access to unspecified custom configuration settings (GUCS) for PL/Java, which allows attackers to gain privileges via unspecified vectors.

Record
CVE-2016-0766
Updated
2026-11-02
EUVDEUVD-2016-0783 No score

PostgreSQL before 9.1.20, 9.2.x before 9.2.15, 9.3.x before 9.3.11, 9.4.x before 9.4.6, and 9.5.x before 9.5.1 does not properly restrict access to unspecified custom configuration settings (GUCS) for PL/Java, which allows attackers to gain privileges via unspecified vectors.

Record
EUVD-2016-0783
Updated
2026-11-03
GitHub AdvisoriesGHSA-cr7c-24h8-pv37 8.8

PostgreSQL before 9.1.20, 9.2.x before 9.2.15, 9.3.x before 9.3.11, 9.4.x before 9.4.6, and 9.5.x...

PostgreSQL before 9.1.20, 9.2.x before 9.2.15, 9.3.x before 9.3.11, 9.4.x before 9.4.6, and 9.5.x before 9.5.1 does not properly restrict access to unspecified custom configuration settings (GUCS) for PL/Java, which allows attackers to gain privileges via unspecified vectors.

Record
GHSA-cr7c-24h8-pv37
CVSS 3.0
8.8 HighCVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2016-0766 8.8

PostgreSQL before 9.1.20, 9.2.x before 9.2.15, 9.3.x before 9.3.11, 9.4.x before 9.4.6, and 9.5.x before 9.5.1 does not properly restrict access to unspecified custom configuration settings (GUCS) for PL/Java, which allows attackers to gain privileges via unspecified vectors.

Record
UBUNTU-CVE-2016-0766
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS 3.0
8.8 HighCVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVMGASA-2016-0085 No score

Updated postgresql packages fix security vulnerabilities

Updated postgresql packages fix security vulnerabilities:

PostgreSQL 9.3.x before 9.3.11 and 9.4.x before 9.4.6 does not properly restrict access to unspecified custom configuration settings (GUCS) for PL/Java, which allows attackers to gain privileges via unspecified vectors (CVE-2016-0766).

PostgreSQL 9.3.x before 9.3.11 and 9.4.x before 9.4.6 allows remote attackers to cause a denial of service (infinite loop or buffer overflow and crash) via a large Unicode character range in a regular expression (CVE-2016-0773).

Record
MGASA-2016-0085
Updated
2026-11-02
Show 7 moreShow less
OSVopenSUSE-SU-2024:10030-1 No score

postgresql94-9.4.10-1.1 on GA media

These are all security issues fixed in the postgresql94-9.4.10-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:10030-1
Updated
2026-11-02
OSVopenSUSE-SU-2024:10256-1 No score

postgresql93-9.3.15-1.1 on GA media

These are all security issues fixed in the postgresql93-9.3.15-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:10256-1
Updated
2026-11-02
OSVopenSUSE-SU-2024:10273-1 No score

libecpg6-32bit-9.5.4-1.2 on GA media

These are all security issues fixed in the libecpg6-32bit-9.5.4-1.2 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:10273-1
Updated
2026-11-02
OSVSUSE-SU-2016:0539-1 No score

Security update for postgresql93

This update for postgresql93 fixes the following issues:

  • Security and bugfix release 9.3.11:
    • Fix infinite loops and buffer-overrun problems in regular expressions (CVE-2016-0773, bsc#966436).
    • Fix regular-expression compiler to handle loops of constraint arcs (CVE-2007-4772).
    • Prevent certain PL/Java parameters from being set by non-superusers (CVE-2016-0766, bsc#966435).
    • Fix many issues in pg_dump with specific object types
    • Prevent over-eager pushdown of HAVING clauses for GROUPING SETS
    • Fix deparsing error with ON CONFLICT ... WHERE clauses
    • Fix tableoid errors for postgres_fdw
    • Prevent floating-point exceptions in pgbench
    • Make \det search Foreign Table names consistently
    • Fix quoting of domain constraint names in pg_dump
    • Prevent putting expanded objects into Const nodes
    • Allow compile of PL/Java on Windows
    • Fix 'unresolved symbol' errors in PL/Python execution
    • Allow Python2 and Python3 to be used in the same database
    • Add support for Python 3.5 in PL/Python
    • Fix issue with subdirectory creation during initdb
    • Make pg_ctl report status correctly on Windows
    • Suppress confusing error when using pg_receivexlog with older servers
    • Multiple documentation corrections and additions
    • Fix erroneous hash calculations in gin_extract_jsonb_path()
  • For the full release notse, see: http://www.postgresql.org/docs/9.3/static/release-9-3-11.html
Record
SUSE-SU-2016:0539-1
Updated
2026-11-02
OSVSUSE-SU-2016:0555-1 No score

Security update for postgresql94

This update for postgresql94 fixes the following issues:

  • Security and bugfix release 9.4.6:

    • *** IMPORTANT *** Users of version 9.4 will need to reindex any jsonb_path_ops indexes they have created, in order to fix a persistent issue with missing index entries.
    • Fix infinite loops and buffer-overrun problems in regular expressions (CVE-2016-0773, bsc#966436).
    • Fix regular-expression compiler to handle loops of constraint arcs (CVE-2007-4772).
    • Prevent certain PL/Java parameters from being set by non-superusers (CVE-2016-0766, bsc#966435).
    • Fix many issues in pg_dump with specific object types
    • Prevent over-eager pushdown of HAVING clauses for GROUPING SETS
    • Fix deparsing error with ON CONFLICT ... WHERE clauses
    • Fix tableoid errors for postgres_fdw
    • Prevent floating-point exceptions in pgbench
    • Make \det search Foreign Table names consistently
    • Fix quoting of domain constraint names in pg_dump
    • Prevent putting expanded objects into Const nodes
    • Allow compile of PL/Java on Windows
    • Fix 'unresolved symbol' errors in PL/Python execution
    • Allow Python2 and Python3 to be used in the same database
    • Add support for Python 3.5 in PL/Python
    • Fix issue with subdirectory creation during initdb
    • Make pg_ctl report status correctly on Windows
    • Suppress confusing error when using pg_receivexlog with older servers
    • Multiple documentation corrections and additions
    • Fix erroneous hash calculations in gin_extract_jsonb_path()
  • For the full release notse, see: http://www.postgresql.org/docs/9.4/static/release-9-4-6.html

  • PL/Perl still needs to be linked with rpath, so that it can find libperl.so at runtime. bsc#578053, postgresql-plperl-keep-rpath.patch

Record
SUSE-SU-2016:0555-1
Updated
2026-11-02
OSVSUSE-SU-2016:0677-1 No score

Security update for postgresql94

This update for postgresql94 fixes the following issues:

  • Security and bugfix release 9.4.6:

    • *** IMPORTANT *** Users of version 9.4 will need to reindex any jsonb_path_ops indexes they have created, in order to fix a persistent issue with missing index entries.
    • Fix infinite loops and buffer-overrun problems in regular expressions (CVE-2016-0773, bsc#966436).
    • Fix regular-expression compiler to handle loops of constraint arcs (CVE-2007-4772).
    • Prevent certain PL/Java parameters from being set by non-superusers (CVE-2016-0766, bsc#966435).
    • Fix many issues in pg_dump with specific object types
    • Prevent over-eager pushdown of HAVING clauses for GROUPING SETS
    • Fix deparsing error with ON CONFLICT ... WHERE clauses
    • Fix tableoid errors for postgres_fdw
    • Prevent floating-point exceptions in pgbench
    • Make \det search Foreign Table names consistently
    • Fix quoting of domain constraint names in pg_dump
    • Prevent putting expanded objects into Const nodes
    • Allow compile of PL/Java on Windows
    • Fix 'unresolved symbol' errors in PL/Python execution
    • Allow Python2 and Python3 to be used in the same database
    • Add support for Python 3.5 in PL/Python
    • Fix issue with subdirectory creation during initdb
    • Make pg_ctl report status correctly on Windows
    • Suppress confusing error when using pg_receivexlog with older servers
    • Multiple documentation corrections and additions
    • Fix erroneous hash calculations in gin_extract_jsonb_path()
  • For the full release notse, see: http://www.postgresql.org/docs/9.4/static/release-9-4-6.html

  • Security and bugfix release 9.4.5:

    • CVE-2015-5289, bsc#949670: json or jsonb input values constructed from arbitrary user input can crash the PostgreSQL server and cause a denial of service.
    • CVE-2015-5288, bsc#949669: The crypt() function included with the optional pgCrypto extension could be exploited to read a few additional bytes of memory. No working exploit for this issue has been developed.
  • For the full release notse, see: http://www.postgresql.org/docs/current/static/release-9-4-5.html

  • Relax dependency on libpq to major version.

Record
SUSE-SU-2016:0677-1
Updated
2026-11-02
OSVUSN-2894-1 No score

postgresql-9.1, postgresql-9.3, postgresql-9.4 vulnerabilities

It was discovered that PostgreSQL incorrectly handled certain regular expressions. A remote attacker could possibly use this issue to cause PostgreSQL to crash, resulting in a denial of service. (CVE-2016-0773)

It was discovered that PostgreSQL incorrectly handled certain configuration settings (GUCS) for users of PL/Java. A remote attacker could possibly use this issue to escalate privileges. (CVE-2016-0766)

Record
USN-2894-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
postgresql-9.1
Debian:7
From an advisory covering 3 CVEs
before 9.1.20-0+deb7u1, plus listed versions
9.1.10-0wheezy19.1.10-19.1.11-0wheezy19.1.11-19.1.11-1~bpo60+1
Show 21 moreShow less
9.1.11-29.1.12-0wheezy19.1.12-0wheezy1~bpo60+19.1.12-19.1.13-0wheezy19.1.13-0wheezy1~bpo60+19.1.13-19.1.14-0+deb7u19.1.14-0wheezy19.1.15-0+deb7u19.1.15-0+deb7u1~bpo60+19.1.16-0+deb7u19.1.16-0+deb7u29.1.17-0+deb7u19.1.18-0+deb7u19.1.19-0+deb7u19.1.9-19.1.9-29.1.9-39.1.9-49.1.9-5
9.1.20-0+deb7u1
postgresql-9.4
Debian:8
From an advisory covering 2 CVEs
before 9.4.6-0+deb8u1, plus listed versions
9.4.1-19.4.2-0+deb8u19.4.2-19.4.3-0+deb8u19.4.3-1
Show 8 moreShow less
9.4.4-0+deb8u19.4.4-19.4.4-29.4.5-0+deb8u19.4.5-0+deb8u1~bpo70+19.4.5-19.4.5-29.4.6-0+deb8u1~bpo70+1
9.4.6-0+deb8u1
postgresql9.3
Mageia:5
From an advisory covering 2 CVEs
before 9.3.11-1.mga5
9.3.11-1.mga5
postgresql9.4
Mageia:5
From an advisory covering 2 CVEs
before 9.4.6-1.mga5
9.4.6-1.mga5
postgresql93
SUSE:Linux Enterprise Desktop 12
From an advisory covering 3 CVEs
before 9.3.11-14.2
9.3.11-14.2
postgresql93-libs
SUSE:Linux Enterprise Software Development Kit 12
From an advisory covering 3 CVEs
before 9.3.11-14.1
9.3.11-14.1
postgresql93
SUSE:Linux Enterprise Server 12
From an advisory covering 3 CVEs
before 9.3.11-14.2
9.3.11-14.2
postgresql93
SUSE:Linux Enterprise Server for SAP Applications 12
From an advisory covering 3 CVEs
before 9.3.11-14.2
9.3.11-14.2
postgresql94
SUSE:Linux Enterprise Desktop 12
From an advisory covering 3 CVEs
before 9.4.6-7.2
9.4.6-7.2
postgresql94-libs
SUSE:Linux Enterprise Desktop 12
From an advisory covering 3 CVEs
before 9.4.6-7.1
9.4.6-7.1
Show 25 moreShow less
Affected packages
PackageAffectedFixed
postgresql94
SUSE:Linux Enterprise Desktop 12 SP1
From an advisory covering 3 CVEs
before 9.4.6-7.2
9.4.6-7.2
postgresql94-libs
SUSE:Linux Enterprise Desktop 12 SP1
From an advisory covering 3 CVEs
before 9.4.6-7.1
9.4.6-7.1
postgresql94-libs
SUSE:Linux Enterprise Software Development Kit 12
From an advisory covering 3 CVEs
before 9.4.6-7.1
9.4.6-7.1
postgresql94-libs
SUSE:Linux Enterprise Software Development Kit 12 SP1
From an advisory covering 3 CVEs
before 9.4.6-7.1
9.4.6-7.1
postgresql94
SUSE:Linux Enterprise Server 12
From an advisory covering 3 CVEs
before 9.4.6-7.2
9.4.6-7.2
postgresql94-libs
SUSE:Linux Enterprise Server 12
From an advisory covering 3 CVEs
before 9.4.6-7.1
9.4.6-7.1
postgresql94
SUSE:Linux Enterprise Server for SAP Applications 12
From an advisory covering 3 CVEs
before 9.4.6-7.2
9.4.6-7.2
postgresql94-libs
SUSE:Linux Enterprise Server for SAP Applications 12
From an advisory covering 3 CVEs
before 9.4.6-7.1
9.4.6-7.1
postgresql94
SUSE:Linux Enterprise Server 12 SP1
From an advisory covering 3 CVEs
before 9.4.6-7.2
9.4.6-7.2
postgresql94-libs
SUSE:Linux Enterprise Server 12 SP1
From an advisory covering 3 CVEs
before 9.4.6-7.1
9.4.6-7.1
postgresql94
SUSE:Linux Enterprise Server for SAP Applications 12 SP1
From an advisory covering 3 CVEs
before 9.4.6-7.2
9.4.6-7.2
postgresql94-libs
SUSE:Linux Enterprise Server for SAP Applications 12 SP1
From an advisory covering 3 CVEs
before 9.4.6-7.1
9.4.6-7.1
postgresql94-libs
SUSE:Linux Enterprise Software Development Kit 11 SP4
From an advisory covering 5 CVEs
before 9.4.6-0.14.3
9.4.6-0.14.3
postgresql94
SUSE:Linux Enterprise Desktop 11 SP4
From an advisory covering 5 CVEs
before 9.4.6-0.14.3
9.4.6-0.14.3
postgresql94-libs
SUSE:Linux Enterprise Desktop 11 SP4
From an advisory covering 5 CVEs
before 9.4.6-0.14.3
9.4.6-0.14.3
postgresql94
SUSE:Linux Enterprise Server 11 SP4
From an advisory covering 5 CVEs
before 9.4.6-0.14.3
9.4.6-0.14.3
postgresql94-libs
SUSE:Linux Enterprise Server 11 SP4
From an advisory covering 5 CVEs
before 9.4.6-0.14.3
9.4.6-0.14.3
postgresql94
SUSE:Linux Enterprise Server for SAP Applications 11 SP4
From an advisory covering 5 CVEs
before 9.4.6-0.14.3
9.4.6-0.14.3
postgresql94-libs
SUSE:Linux Enterprise Server for SAP Applications 11 SP4
From an advisory covering 5 CVEs
before 9.4.6-0.14.3
9.4.6-0.14.3
postgresql-9.1
Ubuntu:14.04:LTS
before 9.1.20-0ubuntu0.14.04, plus listed versions
9.1.10-19.1.10-1bzr19.1.11-19.1.11-29.1.12-1
Show 7 moreShow less
9.1.13-19.1.14-0ubuntu0.14.049.1.15-0ubuntu0.14.049.1.16-0ubuntu0.14.049.1.17-0ubuntu0.14.049.1.18-0ubuntu0.14.049.1.19-0ubuntu0.14.04
9.1.20-0ubuntu0.14.04
postgresql-9.3
Ubuntu:14.04:LTS
before 9.3.11-0ubuntu0.14.04, plus listed versions
9.3.1-19.3.2-19.3.2-1ubuntu19.3.2-1ubuntu29.3.3-1
Show 9 moreShow less
9.3.3-1bzr19.3.3-1bzr29.3.4-19.3.5-0ubuntu0.14.04.19.3.6-0ubuntu0.14.049.3.7-0ubuntu0.14.049.3.8-0ubuntu0.4.049.3.9-0ubuntu0.14.049.3.10-0ubuntu0.14.04
9.3.11-0ubuntu0.14.04
postgresql-9.3
Ubuntu:14.04:LTS
From an advisory covering 2 CVEs
before 9.3.11-0ubuntu0.14.04, plus listed versions
9.3.1-19.3.2-19.3.2-1ubuntu19.3.2-1ubuntu29.3.3-1
Show 9 moreShow less
9.3.3-1bzr19.3.3-1bzr29.3.4-19.3.5-0ubuntu0.14.04.19.3.6-0ubuntu0.14.049.3.7-0ubuntu0.14.049.3.8-0ubuntu0.4.049.3.9-0ubuntu0.14.049.3.10-0ubuntu0.14.04
9.3.11-0ubuntu0.14.04
postgresql94
openSUSE:Tumbleweed
From an advisory covering 35 CVEs
before 9.4.10-1.1
9.4.10-1.1
postgresql93
openSUSE:Tumbleweed
From an advisory covering 40 CVEs
before 9.3.15-1.1
9.3.15-1.1
postgresql95
openSUSE:Tumbleweed
From an advisory covering 37 CVEs
before 9.5.4-1.2
9.5.4-1.2

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2016-0766 is a high vulnerability (CVSS 8.8) in Postgresql, published February 11, 2016. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 4.11%, the 90th percentile. Fixed in postgresql-9.1 9.1.20-0ubuntu0.14.04.

References

Show 70 moreShow less
MoveEnter Open