#%NASL_MIN_LEVEL 80900
##
# (C) Tenable, Inc.
#
# The descriptive text and package checks in this plugin were
# extracted from ZTE advisory NS-SA-2025-0211. The text
# itself is copyright (C) ZTE, Inc.
##
include('compat.inc');
if (description)
{
script_id(266257);
script_version("1.3");
script_set_attribute(attribute:"plugin_modification_date", value:"2026/01/21");
script_cve_id(
"CVE-2006-2937",
"CVE-2006-2940",
"CVE-2006-3738",
"CVE-2006-4339",
"CVE-2006-4343",
"CVE-2007-3108",
"CVE-2007-4995",
"CVE-2007-5135",
"CVE-2008-0891",
"CVE-2008-1672",
"CVE-2009-1377",
"CVE-2009-1378",
"CVE-2009-1379",
"CVE-2009-3555",
"CVE-2009-4355",
"CVE-2010-0742",
"CVE-2010-1633",
"CVE-2010-3864",
"CVE-2010-4180",
"CVE-2011-0014",
"CVE-2011-3207",
"CVE-2012-0050",
"CVE-2012-2110",
"CVE-2013-4353",
"CVE-2013-6449",
"CVE-2013-6450",
"CVE-2014-0160",
"CVE-2014-0224",
"CVE-2015-0209",
"CVE-2015-0286",
"CVE-2015-0287",
"CVE-2015-0289",
"CVE-2015-0293",
"CVE-2019-1547",
"CVE-2019-1549",
"CVE-2019-1563",
"CVE-2020-1971",
"CVE-2021-3449",
"CVE-2021-3450",
"CVE-2022-1292",
"CVE-2022-2068"
);
script_xref(name:"CISA-KNOWN-EXPLOITED", value:"2022/05/25");
script_xref(name:"IAVA", value:"2010-A-0166-S");
script_xref(name:"IAVA", value:"2010-A-0167-S");
script_xref(name:"IAVA", value:"2011-A-0027-S");
script_xref(name:"IAVA", value:"2011-A-0122-S");
script_xref(name:"IAVA", value:"2012-A-0009-S");
script_xref(name:"IAVA", value:"2012-A-0070-S");
script_xref(name:"IAVA", value:"2014-A-0051-S");
script_xref(name:"IAVA", value:"2014-A-0083-S");
script_xref(name:"IAVA", value:"2015-A-0063-S");
script_xref(name:"IAVA", value:"2019-A-0303-S");
script_xref(name:"IAVA", value:"2020-A-0566-S");
script_xref(name:"IAVA", value:"2021-A-0149-S");
script_xref(name:"IAVA", value:"2022-A-0186-S");
script_xref(name:"IAVB", value:"2014-B-0092-S");
script_xref(name:"CEA-ID", value:"CEA-2021-0025");
script_xref(name:"CEA-ID", value:"CEA-2021-0004");
script_xref(name:"IAVA", value:"2022-A-0257-S");
script_name(english:"NewStart CGSL MAIN 6.06 : openssl Multiple Vulnerabilities (NS-SA-2025-0211)");
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 6.06, has openssl packages installed that are affected by multiple
vulnerabilities:
- In addition to the c_rehash shell command injection identified in CVE-2022-1292, further circumstances
where the c_rehash script does not properly sanitise shell metacharacters to prevent command injection
were found by code review. When the CVE-2022-1292 was fixed it was not discovered that there are other
places in the script where the file names of certificates being hashed were possibly passed to a command
executed through the shell. This script is distributed by some operating systems in a manner where it is
automatically executed. On such operating systems, an attacker could execute arbitrary commands with the
privileges of the script. Use of the c_rehash script is considered obsolete and should be replaced by the
OpenSSL rehash command line tool. Fixed in OpenSSL 3.0.4 (Affected 3.0.0,3.0.1,3.0.2,3.0.3). Fixed in
OpenSSL 1.1.1p (Affected 1.1.1-1.1.1o). Fixed in OpenSSL 1.0.2zf (Affected 1.0.2-1.0.2ze). (CVE-2022-2068)
- The (1) TLS and (2) DTLS implementations in OpenSSL 1.0.1 before 1.0.1g do not properly handle Heartbeat
Extension packets, which allows remote attackers to obtain sensitive information from process memory via
crafted packets that trigger a buffer over-read, as demonstrated by reading private keys, related to
d1_both.c and t1_lib.c, aka the Heartbleed bug. (CVE-2014-0160)
- OpenSSL 0.9.7 before 0.9.7l and 0.9.8 before 0.9.8d allows remote attackers to cause a denial of service
(infinite loop and memory consumption) via malformed ASN.1 structures that trigger an improperly handled
error condition. (CVE-2006-2937)
- OpenSSL 0.9.7 before 0.9.7l, 0.9.8 before 0.9.8d, and earlier versions allows attackers to cause a denial
of service (CPU consumption) via parasitic public keys with large (1) public exponent or (2) public
modulus values in X.509 certificates that require extra time to process when using RSA signature
verification. (CVE-2006-2940)
- Buffer overflow in the SSL_get_shared_ciphers function in OpenSSL 0.9.7 before 0.9.7l, 0.9.8 before
0.9.8d, and earlier versions has unspecified impact and remote attack vectors involving a long list of
ciphers. (CVE-2006-3738)
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-0211");
script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2006-2937");
script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2006-2940");
script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2006-3738");
script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2006-4339");
script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2006-4343");
script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2007-3108");
script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2007-4995");
script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2007-5135");
script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2008-0891");
script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2008-1672");
script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2009-1377");
script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2009-1378");
script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2009-1379");
script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2009-3555");
script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2009-4355");
script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2010-0742");
script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2010-1633");
script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2010-3864");
script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2010-4180");
script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2011-0014");
script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2011-3207");
script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2012-0050");
script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2012-2110");
script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2013-4353");
script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2013-6449");
script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2013-6450");
script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2014-0160");
script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2014-0224");
script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2015-0209");
script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2015-0286");
script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2015-0287");
script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2015-0289");
script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2015-0293");
script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2019-1547");
script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2019-1549");
script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2019-1563");
script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2020-1971");
script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2021-3449");
script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2021-3450");
script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2022-1292");
script_set_attribute(attribute:"see_also", value:"https://security.gd-linux.com/info/CVE-2022-2068");
script_set_attribute(attribute:"solution", value:
"Upgrade the vulnerable CGSL openssl 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:F/RL:OF/RC:C");
script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N");
script_set_cvss3_temporal_vector("CVSS:3.0/E:F/RL:O/RC:C");
script_set_attribute(attribute:"cvss_score_source", value:"CVE-2022-2068");
script_set_attribute(attribute:"cvss3_score_source", value:"CVE-2014-0160");
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:"2006/09/05");
script_set_attribute(attribute:"patch_publication_date", value:"2025/09/30");
script_set_attribute(attribute:"plugin_publication_date", value:"2025/09/30");
script_set_attribute(attribute:"plugin_type", value:"local");
script_set_attribute(attribute:"cpe", value:"p-cpe:/a:zte:cgsl_main:openssl");
script_set_attribute(attribute:"cpe", value:"p-cpe:/a:zte:cgsl_main:openssl-devel");
script_set_attribute(attribute:"cpe", value:"p-cpe:/a:zte:cgsl_main:openssl-libs");
script_set_attribute(attribute:"cpe", value:"cpe:/o:zte:cgsl_main:6");
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-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/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\s6\.06")
audit(AUDIT_OS_NOT, 'NewStart CGSL MAIN 6.06');
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 6.06': [
'openssl-1.1.1k-7.0.1.zncgsl6_6.t1.0',
'openssl-devel-1.1.1k-7.0.1.zncgsl6_6.t1.0',
'openssl-libs-1.1.1k-7.0.1.zncgsl6_6.t1.0'
]
};
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, 'openssl');
}
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