Lucene search
K

Juniper Junos OS Vulnerability (JSA100095)

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

Junos OS has a vulnerability allowing local attackers to escalate privileges to root via CLI commands.

Related
Refs
Code
#TRUSTED 81591cd0b935c7239fffa4a2a55bbd35fbeb2f0c2afca55a2ec6efec45e79319682e5b130027a31b684da5380b03d71486cb1ffbc5a5977826c0351c253cf6c8ba0a5b0123e371eef6a169a2d44cb30be4393f13d4415d4db3664c45d849eed933a23d29131188f678eb345f8a6f6aac116ac844a17b349a4de3597690fdf721a70be105377f61f5888b8b4938ccf3cc773c70a50e982cb44611c0f6cc02e30a3dd046f75b762f299b263b475196770fbd0d356134b0c79b69e7340b17ac476e11f6e97036397cf7bc2eacbc2200b412248426761de119d1881d69af0d5c23113c11d75a36ddf8814c688396d3e4cc0c61a1863769269883a6d30da2b148def3192548e44462ad58de754f8f3c922ec9a481844258ceeaf29f70f816461f044aec6581c6547db2e92dbad81efe3fd49a8291e91e5346ed5b8f430f1677031559120fa438d610653ce932a3d89bab1bf33cdf3de25d4cd2404a09c3ff9595878bfb4307274d4fe5756797a009a0c17cb12a3f5de67d6e893b9f98ac2fc578d88020679ead650fcea4fef184515a67f025fe5cd9f8aeacce56bbf5cec762187e0caab85c84c92f5aadf718cc5061e952b594e731ee4dbb604819468427681d7a9907df2a79d463382a416463edc6f61d9818c83e3e61e8f06ff087013e8196077c18cd09cabd070985e2868cceda82d8c2c7226162cd31ceeccd1be4f1086e6ea5
#TRUST-RSA-SHA256 64b9c51b59f8f618e1ff2ed8b0e42f9fc7e9a847ea840266d520b928b02330ec935426eb49488a2efeabb729e5455e3bf125235532e32bd3b105453c6b144d45a38ca6046d5e735a4d085be2b5869314980630c01e0f3bcdd7010390eb055d5085dd51c3c25c7b281c819cbb6ef279977b041b3ab390e150780c7c58aa77dccf771b24944737b5c848a4ac1b9437eee456f0d5cfa40d73649b1711c86ec0698d6bc77b43ba691fedd8b57ecf237f96d3c69453f1554fd8f29a1884b3cc23b5b75ae5f9067c391e93dec2aad1287b4e921e8b3fea1e7a325c012956ffb426f31ddb79242284388159117cf1f980cba3c13c606ef33780d150a6ef03bee5dbafa308243efa99d1e81cb7337a6d0bfcfb700669fe234bdb0ff38d72cc353f1baca16f1a4775d5f20c3d5cbff25e6cba6df376f4e428682c07133f91f9fbaae07ec6ca1e859665819c35dafab1fd896c7f04397f2b1eb0d0527c6c44abb5110d6e4b4e44839ad58666ca0620a7259aa0a0fafe6ec88fe70da0a2f2bf1c695f163aea732c01ec8dd1da5c1e25642c572b12d50a8f0552184bd060530bf3b14bf17a3b662829e6082f94d320a75effbe2fa7bb04938d15ac09d93261957ca708417cb9deb37282ec5ae2adb9ac5d1c15eb956a6bcbea6213bd703818c36ae9d22341156a652d7f27dca7aa2c761f9ff0597c06ae086daf9b7eac885e636ac13b96371b
#%NASL_MIN_LEVEL 80900
##
# (C) Tenable, Inc.
##

include('compat.inc');

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

  script_cve_id("CVE-2025-52988");
  script_xref(name:"JSA", value:"JSA100095");
  script_xref(name:"IAVA", value:"2025-A-0510");

  script_name(english:"Juniper Junos OS Vulnerability (JSA100095)");

  script_set_attribute(attribute:"synopsis", value:
"The remote device is missing a vendor-supplied security patch.");
  script_set_attribute(attribute:"description", value:
"The version of Junos OS installed on the remote host is affected by a vulnerability as referenced in the JSA100095
advisory.

  - An Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
    vulnerability in the CLI of Juniper Networks Junos OS and Junos OS Evolved allows a high privileged, local
    attacker to escalated their privileges to root. When a user provides specifically crafted arguments to the
    'request system logout' command, these will be executed as root on the shell, which can completely
    compromise the device. This issue affects: Junos OS: * all versions before 21.2R3-S9, * 21.4 versions
    before 21.4R3-S8, * 22.2 versions before 22.2R3-S6, * 22.3 versions before 22.3R3-S3, * 22.4 versions
    before 22.4R3-S6, * 23.2 versions before 23.2R2-S1, * 23.4 versions before 23.4R1-S2, 23.4R2; Junos OS
    Evolved: * all versions before 22.4R3-S6-EVO, * 23.2-EVO versions before 23.2R2-S1-EVO, * 23.4-EVO
    versions before 23.4R1-S2-EVO, 23.4R2-EVO. (CVE-2025-52988)

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version
number.");
  # https://supportportal.juniper.net/s/article/2025-07-Security-Bulletin-Junos-OS-and-Junos-OS-Evolved-Privilege-escalation-via-CLI-command-request-system-logout-CVE-2025-52988
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?90b1f957");
  script_set_attribute(attribute:"solution", value:
"Apply the relevant Junos software release referenced in Juniper advisory JSA100095");
  script_set_cvss_base_vector("CVSS2#AV:L/AC:L/Au:M/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
  script_set_cvss3_base_vector("CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C");
  script_set_attribute(attribute:"cvss4_vector", value:"CVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N");
  script_set_attribute(attribute:"cvss4_supplemental", value:"CVSS:4.0/AU:Y/R:U/RE:M");
  script_set_attribute(attribute:"cvss4_threat_vector", value:"CVSS:4.0/E:U");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2025-52988");

  script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"false");

  script_set_attribute(attribute:"vuln_publication_date", value:"2025/07/09");
  script_set_attribute(attribute:"patch_publication_date", value:"2025/07/09");
  script_set_attribute(attribute:"plugin_publication_date", value:"2025/07/25");

  script_set_attribute(attribute:"plugin_type", value:"combined");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:juniper:junos");
  script_set_attribute(attribute:"stig_severity", value:"I");
  script_end_attributes();

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

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

  script_dependencies("junos_version.nasl");
  script_require_keys("Host/Juniper/JUNOS/Version");

  exit(0);
}

include('junos.inc');

var ver = get_kb_item_or_exit('Host/Juniper/JUNOS/Version');

var vuln_ranges = [
    {'min_ver':'0.0', 'fixed_ver':'21.2R3-S9'},
    {'min_ver':'0.0-EVO', 'fixed_ver':'22.4R3-S6-EVO'},
    {'min_ver':'21.4', 'fixed_ver':'21.4R3-S8'},
    {'min_ver':'22.2', 'fixed_ver':'22.2R3-S6'},
    {'min_ver':'22.3', 'fixed_ver':'22.3R3-S3'},
    {'min_ver':'22.4', 'fixed_ver':'22.4R3-S6'},
    {'min_ver':'23.2', 'fixed_ver':'23.2R2-S1'},
    {'min_ver':'23.2-EVO', 'fixed_ver':'23.2R2-S1-EVO'},
    {'min_ver':'23.4', 'fixed_ver':'23.4R1-S2', 'fixed_display':'23.4R1-S2, 23.4R2'},
    {'min_ver':'23.4-EVO', 'fixed_ver':'23.4R1-S2-EVO', 'fixed_display':'23.4R1-S2-EVO, 23.4R2-EVO'}
];

var fix = junos_compare_range(target_version:ver, vuln_ranges:vuln_ranges);
if (empty_or_null(fix)) audit(AUDIT_INST_VER_NOT_VULN, 'Junos OS', ver);
var report = get_report(ver:ver, fix:fix);
security_report_v4(severity:SECURITY_WARNING, port:0, extra:report);

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
5.7Medium risk
Vulners AI Score5.7
CVSS 3.16.7
CVSS 48.4
EPSS0.00135
SSVC
3