Lucene search
+L

PostgreSQL 14.x < 14.25 / 15.x < 15.20 / 16.x < 16.16 / 17.x < 17.12 / 18.x < 18.7 Multiple Vulnerabilities

🗓️ 19 Nov 2026 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 6 Views

Multiple vulnerabilities in PostgreSQL allow arbitrary code execution as the OS user.

Related
Refs
Code
#%NASL_MIN_LEVEL 80900
##
# (C) Tenable, Inc.
#
# Portions Copyright (C) 1996-2019, The PostgreSQL Global Development Group
# Portions Copyright (C) 1994, The Regents of the University of California
# Permission to use, copy, modify, and distribute this software and its documentation for any purpose, without fee, and without a written agreement is hereby granted, provided that the above copyright notice and this paragraph and the following two paragraphs appear in all copies.
# IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
##

include('compat.inc');

if (description)
{
  script_id(383425);
  script_version("1.2");
  script_set_attribute(attribute:"plugin_modification_date", value:"2026/11/20");

  script_cve_id(
    "CVE-2026-6460",
    "CVE-2026-6467",
    "CVE-2026-14661",
    "CVE-2026-16237",
    "CVE-2026-16240",
    "CVE-2026-18447",
    "CVE-2026-116303",
    "CVE-2026-116304",
    "CVE-2026-116306",
    "CVE-2026-116307",
    "CVE-2026-116308",
    "CVE-2026-116309",
    "CVE-2026-116310",
    "CVE-2026-116311",
    "CVE-2026-116312",
    "CVE-2026-116313",
    "CVE-2026-116314",
    "CVE-2026-116315",
    "CVE-2026-116316",
    "CVE-2026-116317",
    "CVE-2026-116318",
    "CVE-2026-116319",
    "CVE-2026-116320",
    "CVE-2026-116321",
    "CVE-2026-116322",
    "CVE-2026-116323",
    "CVE-2026-116325",
    "CVE-2026-116326",
    "CVE-2026-116327",
    "CVE-2026-116328",
    "CVE-2026-116329",
    "CVE-2026-116330",
    "CVE-2026-116331",
    "CVE-2026-116332",
    "CVE-2026-116333",
    "CVE-2026-116335",
    "CVE-2026-116336",
    "CVE-2026-120139",
    "CVE-2026-120141",
    "CVE-2026-120142",
    "CVE-2026-120143",
    "CVE-2026-120144",
    "CVE-2026-120145",
    "CVE-2026-120146",
    "CVE-2026-120147",
    "CVE-2026-120148",
    "CVE-2026-120149",
    "CVE-2026-120150",
    "CVE-2026-120151",
    "CVE-2026-120152",
    "CVE-2026-120153",
    "CVE-2026-120154"
  );

  script_name(english:"PostgreSQL 14.x < 14.25 / 15.x < 15.20 / 16.x < 16.16 / 17.x < 17.12 / 18.x < 18.7 Multiple Vulnerabilities");

  script_set_attribute(attribute:"synopsis", value:
"The remote database server is affected by multiple vulnerabilities");
  script_set_attribute(attribute:"description", value:
"The version of PostgreSQL installed on the remote host is 14 prior to 14.25, 15 prior to 15.20,
16 prior to 16.16, 17 prior to 17.12, or 18 prior to 18.7. As such, it is potentially affected
by multiple vulnerabilities :

  - Missing authorization in PostgreSQL logical replication allows a compromised publisher to execute
    arbitrary code as the operating system user running the superuser-owned subscription, via naming a system
    catalog as a replication target. Only subscriptions owned by a superuser are vulnerable. Versions before
    PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected. (CVE-2026-120145)

  - Type confusion in PostgreSQL allows an object creator to execute arbitrary code as the operating system
    user running the database, via ALTER ... SET DATA TYPE primarily. Other DDL attack routes exist, such as
    ALTER TABLE ... ADD COLUMN; ROLLBACK; ALTER TABLE ... ADD COLUMN. The system had inadequate tracking of
    typed values, and values were not self-identifying. Stale values could appear in data dictionary entries,
    PL/pgSQL variables, and many other parts of the system. PostgreSQL Versions before PostgreSQL 18.7, 17.12,
    16.16, 15.20, and 14.25 are affected. (CVE-2026-6460)

  - Heap-based buffer overflow in PostgreSQL tsvector_delete() allows a database user to execute arbitrary
    code as the operating system user running the database, via a tsvector whose lexeme data uses a
    nonstandard but valid ordering that requires additional alignment padding in the result. Versions before
    PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected. (CVE-2026-116315)

Note that Nessus has not tested for these issues but has instead relied only on the application's
self-reported version number.");
  # https://www.postgresql.org/about/news/postgresql-187-1712-1616-1520-1425-and-19-rc-2-released-3442/
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?76d3cba4");
  script_set_attribute(attribute:"solution", value:
"Upgrade to PostgreSQL 14.25 / 15.20 / 16.16 / 17.12 / 18.7 or later");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:POC/RL:OF/RC:C");
  script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:P/RL:O/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2026-120145");
  script_set_attribute(attribute:"cvss3_score_source", value:"CVE-2026-6460");

  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2026/11/12");
  script_set_attribute(attribute:"patch_publication_date", value:"2026/11/12");
  script_set_attribute(attribute:"plugin_publication_date", value:"2026/11/19");

  script_set_attribute(attribute:"plugin_type", value:"combined");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:postgresql:postgresql");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Databases");

  script_copyright(english:"This script is Copyright (C) 2026 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("postgres_installed_windows.nbin", "postgres_installed_nix.nbin", "postgresql_version.nbin");
  script_require_ports("Services/postgresql", 5432, "installed_sw/PostgreSQL");

  exit(0);
}

include('vcf_extras_postgresql.inc');

var win_local = TRUE;
if (!get_kb_item('SMB/Registry/Enumerated'))
  win_local = FALSE;

var port = get_service(svc:'postgresql', default:5432);
var kb_base = 'database/' + port + '/postgresql/';
var kb_ver = NULL;
var kb_path = kb_base + 'version';
var ver = get_kb_item(kb_path);
if (!empty_or_null(ver)) kb_ver = kb_path;

var app_info = vcf::postgresql::get_app_info(app:'PostgreSQL', port:port, kb_ver:kb_ver, kb_base:kb_base, win_local:win_local);
vcf::check_granularity(app_info:app_info, sig_segments:2);

#  14.25 / 15.20 / 16.16 / 17.12 / 18.7
var constraints = [
  { 'min_version' : '14', 'fixed_version' : '14.25' },
  { 'min_version' : '15', 'fixed_version' : '15.20' },
  { 'min_version' : '16', 'fixed_version' : '16.16' },
  { 'min_version' : '17', 'fixed_version' : '17.12' },
  { 'min_version' : '18', 'fixed_version' : '18.7' }
];

vcf::postgresql::check_version_and_report(
    app_info:app_info,
    constraints:constraints,
    severity:SECURITY_HOLE,
    flags:{'sqli':TRUE}
);

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

20 Nov 2026 00:00Current
8.9High risk
Vulners AI Score8.9
CVSS 3.18.8
EPSS0.00638
SSVC
6