Vulnerabilities in pkg:maven/postgresql/pljava-public

PACKAGE
Advisory Identifier: GHSA-837x-xww6-7jqm
Advisory Summary

CVE-2016-0767 is a MODERATE (CVSS 6.5) postgresql pl/java improper privilege management vulnerability (CWE-269: Improper Privilege Management) affecting Pljava public libraries in the Maven ecosystem. The issue involves postgresql pl/java improper privilege management. Remediation is available by upgrading affected packages to version 1.5.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/postgresql/pljava-public

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/postgresql/pljava-public. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-837x-xww6-7jqm CVE-2016-0767 MODERATE PostgreSQL PL/Java Improper Privilege Management

CVE-2016-0767 at a Glance

CVE Identifier CVE-2016-0767
GHSA Identifier GHSA-837x-xww6-7jqm
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-269: Improper Privilege Management
Affected Product Pljava public
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2016-0767

To remediate this vulnerability, upgrade all affected Pljava public dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

postgresql:pljava-public fixed: 1.5.0
<dependency>
    <groupId>postgresql</groupId>
    <artifactId>pljava-public</artifactId>
    <version>1.5.0</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=postgresql

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2016-0767, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=postgresql

Analyze the terminal output to locate any version of Pljava public in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.5.0), your application is affected.

Note: The mvn dependency:tree -Dincludes=postgresql command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-269: Improper Privilege Management, where the product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor. In Pljava public, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

PostgreSQL PL/Java before 1.5.0 allows remote authenticated users with USAGE permission on the public schema to alter the public schema classpath.

CVE-2016-0767 Affected Pljava public Versions

1 component(s)
Fixed Versions:
1.5.0
Product / Package Ecosystem Affected Versions Fixed Version
postgresql:pljava-public
Maven
< 1.5.0
1.5.0

References

Frequently Asked Questions

What is CVE-2016-0767?
CVE-2016-0767 is a security vulnerability in Pljava public involving PostgreSQL PL/Java Improper Privilege Management under CWE-269: Improper Privilege Management.
Which Pljava public versions are affected?
Affected versions include releases prior to 1.5.0 across affected packages: postgresql:pljava-public.
What version fixes CVE-2016-0767?
Upgrading to 1.5.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is pljava-public affected?
Yes, postgresql:pljava-public is affected in releases prior to 1.5.0. Upgrade your dependency to 1.5.0 or later.
What is the CVSS score of CVE-2016-0767?
CVE-2016-0767 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2016-0767?
CVE-2016-0767 is classified under CWE-269: Improper Privilege Management (The product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor.).
How can I check Maven dependencies for CVE-2016-0767?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=postgresql'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-837x-xww6-7jqm",
  "modified" : "2023-07-28T18:44:32Z",
  "published" : "2022-05-13T01:06:11Z",
  "aliases" : [ "CVE-2016-0767" ],
  "summary" : "PostgreSQL PL/Java Improper Privilege Management",
  "details" : "PostgreSQL PL/Java before 1.5.0 allows remote authenticated users with USAGE permission on the public schema to alter the public schema classpath.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "postgresql:pljava-public"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.5.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2016-0767"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/tada/pljava"
  }, {
    "type" : "WEB",
    "url" : "https://tada.github.io/pljava/releasenotes-pre1_6.html#PL.2FJava_1.5.0_.2829_March_2016.29"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-269" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-07-28T18:44:32Z",
    "nvd_published_at" : "2017-06-06T18:29:00Z"
  }
}