Lucene search
+L

NewStart CGSL MAIN 7.02 : ghostscript Multiple Vulnerabilities (NS-SA-2025-0121)

🗓️ 25 Jul 2025 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 4 Views

NewStart CGSL MAIN 7.02 hosts vulnerable ghostscript packages with multiple security flaws.

Related
Refs
Code
ReporterTitlePublishedViews
Family
0day.today
Ghostscript Command Execution / Format String Exploit
22 Jul 202400:00
zdt
RedhatCVE
CVE-2023-36664
27 Jun 202306:47
redhatcve
RedhatCVE
CVE-2023-38559
1 Aug 202314:30
redhatcve
RedhatCVE
CVE-2023-39417
11 Aug 202306:19
redhatcve
RedhatCVE
CVE-2023-39418
11 Aug 202306:19
redhatcve
RedhatCVE
CVE-2023-43115
28 Sep 202306:54
redhatcve
RedhatCVE
CVE-2024-29509
3 Jul 202422:21
redhatcve
RedhatCVE
CVE-2024-29510
24 Jun 202415:52
redhatcve
RedhatCVE
CVE-2024-33869
24 Jun 202416:22
redhatcve
RedhatCVE
CVE-2024-33870
24 Jun 202416:23
redhatcve
Rows per page
#%NASL_MIN_LEVEL 80900
##
# (C) Tenable, Inc.
#
# The descriptive text and package checks in this plugin were
# extracted from ZTE advisory NS-SA-2025-0121. The text
# itself is copyright (C) ZTE, Inc.
##

include('compat.inc');

if (description)
{
  script_id(242730);
  script_version("1.1");
  script_set_attribute(attribute:"plugin_modification_date", value:"2025/07/25");

  script_cve_id(
    "CVE-2023-36664",
    "CVE-2023-38559",
    "CVE-2023-39417",
    "CVE-2023-39418",
    "CVE-2023-43115",
    "CVE-2024-29509",
    "CVE-2024-29510",
    "CVE-2024-33869",
    "CVE-2024-33870",
    "CVE-2024-33871",
    "CVE-2024-46951",
    "CVE-2024-46952",
    "CVE-2024-46953",
    "CVE-2024-46954",
    "CVE-2024-46956"
  );
  script_xref(name:"IAVB", value:"2023-B-0041-S");
  script_xref(name:"IAVB", value:"2023-B-0070-S");
  script_xref(name:"IAVB", value:"2024-B-0074-S");
  script_xref(name:"IAVB", value:"2024-B-0170-S");

  script_name(english:"NewStart CGSL MAIN 7.02 : ghostscript Multiple Vulnerabilities (NS-SA-2025-0121)");

  script_set_attribute(attribute:"synopsis", value:
"The remote NewStart CGSL host is affected by multiple vulnerabilities.");
  script_set_attribute(attribute:"description", value:
"The remote NewStart CGSL host, running version MAIN 7.02, has ghostscript packages installed that are affected by
multiple vulnerabilities:

  - Artifex Ghostscript before 10.03.0 has a heap-based overflow when PDFPassword (e.g., for runpdf) has a
    \000 byte in the middle. (CVE-2024-29509)

  - Artifex Ghostscript through 10.01.2 mishandles permission validation for pipe devices (with the %pipe%
    prefix or the | pipe character prefix). (CVE-2023-36664)

  - A buffer overflow flaw was found in base/gdevdevn.c:1973 in devn_pcx_write_rle() in ghostscript. This
    issue may allow a local attacker to cause a denial of service via outputting a crafted PDF file for a DEVN
    device with gs. (CVE-2023-38559)

  - IN THE EXTENSION SCRIPT, a SQL Injection vulnerability was found in PostgreSQL if it uses @extowner@,
    @extschema@, or @extschema:...@ inside a quoting construct (dollar quoting, '', or ). If an
    administrator has installed files of a vulnerable, trusted, non-bundled extension, an attacker with
    database-level CREATE privilege can execute arbitrary code as the bootstrap superuser. (CVE-2023-39417)

  - A vulnerability was found in PostgreSQL with the use of the MERGE command, which fails to test new rows
    against row security policies defined for UPDATE and SELECT. If UPDATE and SELECT policies forbid some
    rows that INSERT policies do not forbid, a user could store such rows. (CVE-2023-39418)

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://security.gd-linux.com/notice/NS-SA-2025-0121");
  script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2023-36664");
  script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2023-38559");
  script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2023-39417");
  script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2023-39418");
  script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2023-43115");
  script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2024-29509");
  script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2024-29510");
  script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2024-33869");
  script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2024-33870");
  script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2024-33871");
  script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2024-46951");
  script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2024-46952");
  script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2024-46953");
  script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2024-46954");
  script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2024-46956");
  script_set_attribute(attribute:"solution", value:
"Upgrade the vulnerable CGSL ghostscript packages. Note that updated packages may not be available yet. Please contact
ZTE for more information.");
  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:H/RL:OF/RC:C");
  script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:H/RL:O/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2024-29509");

  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:"2023/06/25");
  script_set_attribute(attribute:"patch_publication_date", value:"2025/07/25");
  script_set_attribute(attribute:"plugin_publication_date", value:"2025/07/25");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:zte:cgsl_main:ghostscript");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:zte:cgsl_main:ghostscript-tools-fonts");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:zte:cgsl_main:ghostscript-tools-printing");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:zte:cgsl_main:libgs");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:zte:cgsl_main:7");
  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:"NewStart CGSL Local Security Checks");

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

  script_dependencies("ssh_get_info2.nasl");
  script_require_keys("Host/local_checks_enabled", "Host/ZTE-CGSL/release", "Host/ZTE-CGSL/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_release = get_kb_item('Host/ZTE-CGSL/release');
if (isnull(os_release) || os_release !~ "^CGSL (MAIN|CORE)") audit(AUDIT_OS_NOT, 'NewStart Carrier Grade Server Linux');

if (os_release !~ "CGSL\sMAIN\s7\.02")
  audit(AUDIT_OS_NOT, 'NewStart CGSL MAIN 7.02');

if (!get_kb_item('Host/ZTE-CGSL/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$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, 'NewStart Carrier Grade Server Linux', cpu);

var flag = 0;

var pkgs = {
  'CGSL MAIN 7.02': [
    'ghostscript-10.02.1-1.zncgsl7.12',
    'ghostscript-tools-fonts-10.02.1-1.zncgsl7.12',
    'ghostscript-tools-printing-10.02.1-1.zncgsl7.12',
    'libgs-10.02.1-1.zncgsl7.12'
  ]
};
var pkg_list = pkgs[os_release];
var pkg;
foreach (pkg in pkg_list)
  if (rpm_check(reference:pkg, release:'ZTE ' + os_release, rpm_spec_vers_cmp:TRUE)) 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, 'ghostscript');
}

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

25 Jul 2025 00:00Current
7.9High risk
Vulners AI Score7.9
CVSS 3.18.8
EPSS0.27974
SSVC
4