Lucene search
+L

TencentOS Server 4: postgresql (TSSA-2026:1477)

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

PostgreSQL on TencentOS Server 4 allows arbitrary code execution and memory disclosure.

Related
Refs
Code
#%NASL_MIN_LEVEL 80900
##
# (C) Tenable, Inc.
#
# The descriptive text and package checks in this plugin were
# extracted from Tencent Linux Security Advisory TSSA-2026:1477.
##

include('compat.inc');

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

  script_cve_id(
    "CVE-2026-6460",
    "CVE-2026-6467",
    "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-116311",
    "CVE-2026-116312",
    "CVE-2026-116314",
    "CVE-2026-116315",
    "CVE-2026-116316",
    "CVE-2026-116317",
    "CVE-2026-116320",
    "CVE-2026-116321",
    "CVE-2026-116323",
    "CVE-2026-116326",
    "CVE-2026-116327",
    "CVE-2026-116330",
    "CVE-2026-116331",
    "CVE-2026-116332",
    "CVE-2026-116335",
    "CVE-2026-116336",
    "CVE-2026-120139",
    "CVE-2026-120141",
    "CVE-2026-120143",
    "CVE-2026-120146",
    "CVE-2026-120147",
    "CVE-2026-120148",
    "CVE-2026-120153",
    "CVE-2026-120154"
  );
  script_xref(name:"IAVA", value:"2026-A-1304");

  script_name(english:"TencentOS Server 4: postgresql (TSSA-2026:1477)");

  script_set_attribute(attribute:"synopsis", value:
"The remote TencentOS Server 4 host is missing one or more security updates.");
  script_set_attribute(attribute:"description", value:
"The version of Tencent Linux installed on the remote TencentOS Server 4 host is prior to tested version. It is,
therefore, affected by multiple vulnerabilities as referenced in the TSSA-2026:1477 advisory.

    Package updates are available for TencentOS Server 4 that fix the following vulnerabilities:

    CVE-2026-6467:
    Uncontrolled search path element in PostgreSQL CREATE EXTENSION allows an attacker with database-level
    CREATE privilege to execute arbitrary code as the bootstrap superuser, via ALTER SCHEMA ... RENAME or
    CREATE EXTENSION ... SCHEMA $user. ALTER EXTENSION was also affected. A trusted-extension script located
    the wrong object and executed arbitrary SQL of the attacker's choice. Versions before PostgreSQL 18.7,
    17.12, 16.16, 15.20, and 14.25 are affected.

    CVE-2026-6460:
    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-18447:
    Type confusion in PostgreSQL SQL-language functions allows an object creator to execute arbitrary code as
    the operating system user running the database, via an output parameter of type any. Versions before
    PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

    CVE-2026-16240:
    Use of externally-controlled format string in PostgreSQL pg_basebackup allows an attacker having already
    compromised a server to achieve disclosure from pg_basebackup memory, via backup manifest bytes. The
    vulnerability does not return the improperly-read bytes back to the attacker's server, so a successful
    attack would need separate implementation-specific secrets for that. Integrity impact is unlikely; in
    particular, the applicable formatter does not support %n. Versions before PostgreSQL 18.7, 17.12, 16.16,
    15.20, and 14.25 are affected.

    CVE-2026-120154:
    Improper protection in PostgreSQL INSERT ... ON CONFLICT allows an attacker having INSERT, UPDATE, and
    applicable SELECT privileges on the table to read every row despite row security policies, via iterated
    INSERT ... ON CONFLICT DO UPDATE. Unlike CVE-2026-16237, this does not facilitate improper writes.
    Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

    CVE-2026-120153:
    SQL injection in PostgreSQL extension-script substitutions allows an attacker with database-level CREATE
    privilege to execute arbitrary code as the bootstrap superuser, via a schema or owner name containing
    newlines or other special substrings. This is similar to CVE-2023-39417, but it requires a non-bundled
    extension with a vulnerable script pattern. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and
    14.25 are affected.

    CVE-2026-120148:
    Type confusion in PostgreSQL extended statistics allows an object creator to execute arbitrary code as the
    operating system user running the database, via a statistics expression of an anonymous RECORD type whose
    backend-local type identifier denotes a different row type in another session. Versions before PostgreSQL
    18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

    CVE-2026-120147:
    Use after free in the PostgreSQL dblink extension allows an object creator to execute arbitrary code as
    the operating system user running the database, via type conversion code that re-enters dblink and closes
    a connection whose results an outer dblink call is reading. Versions before PostgreSQL 18.7, 17.12, 16.16,
    15.20, and 14.25 are affected.

    CVE-2026-120146:
    Missing authorization in PostgreSQL REASSIGN OWNED allows a role granted INHERIT but not SET to transfer
    objects to the granted role. It also allows reassignment of database ownership without the CREATEDB
    privilege. The equivalent ALTER ... OWNER commands block this. Versions before PostgreSQL 18.7, 17.12,
    16.16, 15.20, and 14.25 are affected.

    CVE-2026-120143:
    Use after free in PostgreSQL trigger functions allows an object creator to execute arbitrary code as the
    operating system user running the database, via a cursor over a transition table. Versions before
    PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

    CVE-2026-120141:
    Type confusion in PostgreSQL materialized set-returning functions allows a database user to execute
    arbitrary code as the operating system user running the database, via returning rows having different
    dynamic RECORD return types. json_populate_recordset() is one affected function. Versions before
    PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

    CVE-2026-120139:
    Integer wraparound in PostgreSQL in-memory tuple-size calculations allows a database user to execute
    arbitrary code as the operating system user running the database, via oversized tuple data. Versions
    before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

    CVE-2026-116336:
    Operation on a dropped index in PostgreSQL REINDEX CONCURRENTLY allows an object creator to execute
    arbitrary code as the operating system user running the database, via an index expression that issues DROP
    INDEX. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

    CVE-2026-116335:
    Type confusion in PostgreSQL operator commutator and negator links allows an object creator to execute
    arbitrary code as the operating system user running the database, via linking operators having different
    result types or creating inconsistent reciprocal links. Versions before PostgreSQL 18.7, 17.12, 16.16,
    15.20, and 14.25 are affected.

    CVE-2026-116332:
    Use after free in PostgreSQL portal setup allows an object creator to execute arbitrary code as the
    operating system user running the database, via running user-defined code during planning or executor
    startup that closes the portal currently being prepared. Versions before PostgreSQL 18.7, 17.12, 16.16,
    15.20, and 14.25 are affected.

    CVE-2026-116331:
    Type confusion in PostgreSQL min/max aggregate optimization allows an object creator to execute arbitrary
    code as the operating system user running the database, via a user-defined aggregate whose SORTOP option
    causes the planner to treat the aggregate's input and result as the same type when they differ. Versions
    before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

    CVE-2026-116330:
    Untrusted data inclusion in PostgreSQL pg_dump tar-format restore.sql allows a compromised origin server
    to execute arbitrary code as the client operating system account running psql, via the predictable
    restriction key in restore.sql. This is a gap in the fix for CVE-2025-8714. restore.sql is undocumented.
    Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

    CVE-2026-116327:
    Exposure of sensitive information in PostgreSQL security_barrier processing allows a database user to
    infer values hidden by a security_barrier view, via applying a leaky function to a CASE test value or
    internal parameter that indirectly represents a protected column. Versions before PostgreSQL 18.7, 17.12,
    16.16, 15.20, and 14.25 are affected.

    CVE-2026-116326:
    Uncaught exceptions in PostgreSQL plperl allow an object creator to cause use of a stale sigjmp_buf, via a
    tied Perl object, or a Perl object whose overloaded conversion throws while plperl is handling another
    error. We have not ruled out arbitrary code execution on some platform. Versions before PostgreSQL 18.7,
    17.12, 16.16, 15.20, and 14.25 are affected.

    CVE-2026-116323:
    Use after free in PostgreSQL pltcl allows an object creator to execute arbitrary code as the operating
    system user running the database, via a domain CHECK that re-enters the Tcl interpreter and frees or
    changes a string still used by the outer result conversion. Versions before PostgreSQL 18.7, 17.12, 16.16,
    15.20, and 14.25 are affected.

    CVE-2026-116321:
    Improper null termination in PostgreSQL array element assignment allows a database user to disclose server
    memory, via changing the final byte of a fixed-length name value to a nonzero byte and passing it to code
    that treats the value as a C string. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are
    affected.

    CVE-2026-116320:
    Use after free in PostgreSQL plperl allows an object creator to execute arbitrary code as the operating
    system user running the database, via dropping the final reference to a Perl array or hash while
    PostgreSQL is converting that object. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are
    affected.

    CVE-2026-116317:
    Heap-based buffer overflow in PostgreSQL ts_rank_cd() may allow a database user to execute arbitrary code
    as the operating system user running the database, via an invalid tsvector containing duplicate positions.
    Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

    CVE-2026-116316:
    Improper protection of alternate path in PostgreSQL security-restricted operations allows an object
    creator to execute arbitrary SQL as the operation's caller, via a domain, enum, or range type created in
    pg_temp. The victim session must later run a query containing an unqualified type name, e.g. SELECT
    '1'::bigint; autovacuum and other common security-restricted operation users do not do so, so they are
    unaffected. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

    CVE-2026-116315:
    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-116314:
    Improper input validation in PostgreSQL pg_restore allows a non-plain archive provider to execute
    arbitrary code as the operating system user running pg_restore, via a crafted archive. Note a contrast:
    crafted archive data may legitimately cause arbitrary SQL to execute at the restore destination, but it
    does not legitimately confer arbitrary code execution in the pg_restore OS process. Versions before
    PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

    CVE-2026-116312:
    Inconsistent transition-capture state in PostgreSQL MERGE allows a table data modifier to make an AFTER
    trigger process the wrong new row, via a partitioned table MERGE that performs an INSERT before an UPDATE.
    Within major versions 15-18, minor versions before PostgreSQL 18.7, 17.12, 16.16, and 15.20 are affected.
    Versions before PostgreSQL 15 are unaffected.

    CVE-2026-116311:
    Missing authorization in PostgreSQL DROP OWNED allows a role to remove itself from restrictive row level
    security policies, thereby reading or modifying rows that the policy was intended to deny, via queries
    after the DROP OWNED. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

    CVE-2026-116309:
    Type confusion in PostgreSQL plperl may allow an object creator to execute arbitrary code, via blessing a
    non-hash reference into PostgreSQL::InServer::ARRAY.  We have not confirmed or ruled out a way to control
    the pointer sufficiently to achieve security impact, but we are proceeding as though that is possible.
    Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

    CVE-2026-116308:
    Buffer over-read in PostgreSQL dict_int allows a database user to disclose portions of server memory, via
    a zero-length token. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

    CVE-2026-116307:
    Use after free in PostgreSQL plperl allows an object creator to execute arbitrary code as the operating
    system user running the database, via re-entering plperl and freeing a prepared query while an outer
    invocation is executing it. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

    CVE-2026-116306:
    Type confusion in PostgreSQL composite-value field assignment allows an object creator to execute
    arbitrary code as the operating system user running the database, via changing a composite type between
    deforming and reforming a value. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are
    affected.

    CVE-2026-116304:
    Use after free in PostgreSQL coordination of anonymous RECORD type identifiers among parallel workers
    allows a database user to execute arbitrary code as the operating system user running the database, via
    causing one process to free a shared tuple descriptor while another process retains and later uses its
    address. Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

    CVE-2026-116303:
    Missing authorization in PostgreSQL type conversion allows a database user to invoke a cast function
    despite lacking EXECUTE privilege on that function, via foreign keys, to_json(), and others. A successful
    attack requires the attacker to search each database for access-restricted cast functions and identify
    confidentiality impact specific to each function implementation found. There are few or no practical
    examples of an access-restricted cast function or of a cast function having confidentiality impact.
    Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.

Tenable has extracted the preceding description block directly from the Tencent Linux security advisory.

Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version
number.");
  script_set_attribute(attribute:"see_also", value:"https://mirrors.tencent.com/tlinux/errata/tssa-20261477.xml");
  script_set_attribute(attribute:"solution", value:
"Update the affected packages.");
  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-116330");
  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/19");
  script_set_attribute(attribute:"plugin_publication_date", value:"2026/11/20");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:tencent:tencentos_server:4");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:tencent:tencentos_server:postgresql");
  script_set_attribute(attribute:"generated_plugin", value:"current");
  script_set_attribute(attribute:"stig_severity", value:"I");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Tencent Local Security Checks");

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

  script_dependencies("ssh_get_info2.nasl");
  script_require_keys("Host/local_checks_enabled", "Host/etc/os-release", "Host/TencentOS/rpm-list", "Host/cpu");

  exit(0);
}


include('rpm2.inc');

if (!get_kb_item('Host/local_checks_enabled')) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
var os_product = get_kb_item('installed_os/local/SSH/0/product');
if (isnull(os_product) || 'TencentOS' >!< os_product) audit(AUDIT_OS_NOT, 'TencentOS');
var os_version = get_kb_item('installed_os/local/SSH/0/version');
if (isnull(os_version)) audit(AUDIT_UNKNOWN_APP_VER, 'TencentOS');
if (! preg(pattern:"^4([^0-9]|$)", string:os_version)) audit(AUDIT_OS_NOT, 'TencentOS 4.x', 'TencentOS ' + os_version);

if (!get_kb_item('Host/TencentOS/rpm-list')) audit(AUDIT_PACKAGE_LIST_MISSING);

var cpu = get_kb_item('Host/cpu');
if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
if ('x86_64' >!< cpu && cpu !~ "^i[3-6]86$" && 's390' >!< cpu && 'aarch64' >!< cpu) audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, 'TencentOS', cpu);

var constraints = [
  {
    'release': '4',
    'pkgs': [
      {'reference':'postgresql-15.20-1.tl4', 'cpu':'aarch64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-15.20-1.tl4', 'cpu':'x86_64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-contrib-15.20-1.tl4', 'cpu':'aarch64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-contrib-15.20-1.tl4', 'cpu':'x86_64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-contrib-debuginfo-15.20-1.tl4', 'cpu':'aarch64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-contrib-debuginfo-15.20-1.tl4', 'cpu':'x86_64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-debuginfo-15.20-1.tl4', 'cpu':'aarch64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-debuginfo-15.20-1.tl4', 'cpu':'x86_64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-debugsource-15.20-1.tl4', 'cpu':'aarch64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-debugsource-15.20-1.tl4', 'cpu':'x86_64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-docs-15.20-1.tl4', 'cpu':'aarch64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-docs-15.20-1.tl4', 'cpu':'x86_64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-docs-debuginfo-15.20-1.tl4', 'cpu':'aarch64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-docs-debuginfo-15.20-1.tl4', 'cpu':'x86_64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-plperl-15.20-1.tl4', 'cpu':'aarch64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-plperl-15.20-1.tl4', 'cpu':'x86_64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-plperl-debuginfo-15.20-1.tl4', 'cpu':'aarch64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-plperl-debuginfo-15.20-1.tl4', 'cpu':'x86_64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-plpython3-15.20-1.tl4', 'cpu':'aarch64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-plpython3-15.20-1.tl4', 'cpu':'x86_64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-plpython3-debuginfo-15.20-1.tl4', 'cpu':'aarch64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-plpython3-debuginfo-15.20-1.tl4', 'cpu':'x86_64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-pltcl-15.20-1.tl4', 'cpu':'aarch64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-pltcl-15.20-1.tl4', 'cpu':'x86_64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-pltcl-debuginfo-15.20-1.tl4', 'cpu':'aarch64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-pltcl-debuginfo-15.20-1.tl4', 'cpu':'x86_64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-private-devel-15.20-1.tl4', 'cpu':'aarch64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-private-devel-15.20-1.tl4', 'cpu':'x86_64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-private-libs-15.20-1.tl4', 'cpu':'aarch64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-private-libs-15.20-1.tl4', 'cpu':'x86_64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-private-libs-debuginfo-15.20-1.tl4', 'cpu':'aarch64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-private-libs-debuginfo-15.20-1.tl4', 'cpu':'x86_64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-server-15.20-1.tl4', 'cpu':'aarch64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-server-15.20-1.tl4', 'cpu':'x86_64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-server-debuginfo-15.20-1.tl4', 'cpu':'aarch64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-server-debuginfo-15.20-1.tl4', 'cpu':'x86_64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-server-devel-15.20-1.tl4', 'cpu':'aarch64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-server-devel-15.20-1.tl4', 'cpu':'x86_64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-server-devel-debuginfo-15.20-1.tl4', 'cpu':'aarch64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-server-devel-debuginfo-15.20-1.tl4', 'cpu':'x86_64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-static-15.20-1.tl4', 'cpu':'aarch64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-static-15.20-1.tl4', 'cpu':'x86_64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-test-15.20-1.tl4', 'cpu':'aarch64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-test-15.20-1.tl4', 'cpu':'x86_64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-test-debuginfo-15.20-1.tl4', 'cpu':'aarch64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-test-debuginfo-15.20-1.tl4', 'cpu':'x86_64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-test-rpm-macros-15.20-1.tl4', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-upgrade-15.20-1.tl4', 'cpu':'aarch64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-upgrade-15.20-1.tl4', 'cpu':'x86_64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-upgrade-debuginfo-15.20-1.tl4', 'cpu':'aarch64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-upgrade-debuginfo-15.20-1.tl4', 'cpu':'x86_64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-upgrade-devel-15.20-1.tl4', 'cpu':'aarch64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-upgrade-devel-15.20-1.tl4', 'cpu':'x86_64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-upgrade-devel-debuginfo-15.20-1.tl4', 'cpu':'aarch64', 'rpm_spec_vers_cmp':TRUE},
      {'reference':'postgresql-upgrade-devel-debuginfo-15.20-1.tl4', 'cpu':'x86_64', 'rpm_spec_vers_cmp':TRUE}
    ]
  }
];

var os_release = get_one_kb_item('installed_os/local/SSH/0/release');
var os_sp = get_one_kb_item('Host/*/minor_release');

var flag = 0;
var reference;
var sp;
var _cpu;
var el_string;
var rpm_spec_vers_cmp;
var epoch;
var allowmaj;
var exists_check;
var cves;
foreach var constraint ( constraints ) {
  # Check that the target release is equal to the affected release
  if (!empty_or_null(constraint['release'])){
    if (constraint['release'] != os_release) continue;
  }
  if (!empty_or_null(constraint['sp'])){
    if (constraint['sp'] != os_sp) continue;
  }
  foreach var pkg ( constraint['pkgs'] ) {
    reference = NULL;
    sp = NULL;
    _cpu = NULL;
    el_string = NULL;
    rpm_spec_vers_cmp = NULL;
    epoch = NULL;
    allowmaj = NULL;
    exists_check = NULL;
    cves = NULL;
    if (!empty_or_null(pkg['reference'])) reference = pkg['reference'];
    if (!empty_or_null(pkg['sp'])) sp = pkg['sp'];
    if (!empty_or_null(pkg['cpu'])) _cpu = pkg['cpu'];
    if (!empty_or_null(pkg['el_string'])) el_string = pkg['el_string'];
    if (!empty_or_null(pkg['rpm_spec_vers_cmp'])) rpm_spec_vers_cmp = pkg['rpm_spec_vers_cmp'];
    if (!empty_or_null(pkg['epoch'])) epoch = pkg['epoch'];
    if (!empty_or_null(pkg['allowmaj'])) allowmaj = pkg['allowmaj'];
    if (!empty_or_null(pkg['exists_check'])) exists_check = pkg['exists_check'];
    if (!empty_or_null(pkg['cves'])) cves = pkg['cves'];
    if (reference &&
        ## (no known rpm to check OR known rpm_exists)
        (!exists_check || rpm_exists(rpm:exists_check)) &&
        rpm_check(sp:sp, cpu:_cpu, reference:reference, epoch:epoch, el_string:el_string, rpm_spec_vers_cmp:rpm_spec_vers_cmp, allowmaj:allowmaj, cves:cves)) flag++;
  }
}

if (flag)
{
  security_report_v4(
      port       : 0,
      severity   : SECURITY_HOLE,
      extra      : rpm_report_get()
  );
  exit(0);
}
else
{
  var tested = pkg_tests_get();
  if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
  else audit(AUDIT_PACKAGE_NOT_INSTALLED, 'postgresql / postgresql-contrib / postgresql-contrib-debuginfo / etc');
}

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.8High risk
Vulners AI Score8.8
CVSS 3.18.8
EPSS0.00635
SSVC
5