Lucene search
K

Juniper Junos OS Vulnerability (JSA83023)

🗓️ 10 Jul 2024 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 11 Views

Vulnerability in Juniper Junos OS J-Web allows remote command execution

Related
Refs
Code
#TRUSTED 37e71b807bcaf824e7db4958c60050c4f392ffcdfa2619a4e4c3ead0286bb45d1c51df67881efb3fb8d25cc45a9e9bc7b0de7014f2253eecd9aa17b9845d2f5d030d33813ae839a79867294ff659bc35e0d4ef0aa2cfd6246fdbf7f588c16a50d22c5b24d66ccab33c3a2125b042139a1828c782608d07aa686dee5f3cad85a5168af5f8f6f9fa34e9a6979afdecd93a9cfe230a8af1e7a6e1f8e3029abfa8127aff567d466fefdd168d743df1a22c18d72e7a5407992e08ce6481ed109651931c26cf9732e2ef28a03957551fc91b9d639966001a439d214a45b93a42a246a97e9d498803963dc52e4c3ff2e685677b36f88dacb7a4acabcd5484948c55dac8ef85e6a777c8c4713ff43d44762eabf91969c76115ac66d299dc9024e90f275a9ed5d775d44b1eab21c3ec842b57ce950837df47b6544272ec384c304f714bdffa33af9cada41f8fad89c9344cd131c8a85098c134bd5d5f6732dcbd8d90e511fd7c2925a83e3b1e6627b6e1f90773229ea5d2a4bc3db14eb10621515b92aabc1f666040a6c216768fbb365bd9e8bf3b0e64b82beffa5333d8af6f70a233a0907ba86e2009a0a698349cec5331bddb286fda3f7b905fce3fbd9c5e51e6b629dbd49535ca76bbf34864a63ed237b62336e82a00ddc620bf2cc238d0a03b8a8fce4363181c07ae13325ba31f113e73885ea125754de9ece66df97431bff1982883
#TRUST-RSA-SHA256 3a910bea31e3e1290e37a45fdb6d4ae8df4b8947928f3dcefb4098678a27841bbbc06f819acd0678f0b66d98e44132c2e3d9978708d8b18b307db7bb44649faf5648a9ba3cbaf874c10c6c3b69ee25966848fc14ab315dc25318f6524d1baa3990dadc6ed7eb616d98dc503121d7f7a11b31eb408fddc037089ae4bd8d1a96d625f4fb9d1df14f8103d252b26918c4cf4f3a1b43c07b903db20efb450df1c9831f736fed340679706e140b140260729f35ca224e2fbfe5a695ac1f74bbb7f35c9114cda1ba6a6d7005923b19d567eb398b81311dae2a604a4b970a8773031de80b70c424c29565ef7e17d9363815cc48cbc297013acb2d5824f0030680c2d72c93717c91d1287692ede61c2b37569c7c795753fc296e8953960b788d11cb067e0a72fcfd018fe552adc4c5462235c21d7d0fa1d6647da1b82cdff9a12199cf1916af79879fbd42de774e1ddbb834d10cf154d1f4fa11c908315fa511283cbd04b7cb0515846315e448466574b8dca2ca25da63a12a916c321d49e373f2ffbcfb96b63e6bbda912d71714658dea545f7bcdcd03e3e77abeb62a6e5100cb9fe6ba7a863e62dca5cf67f8f7ef84406cf16901a28cd3b3c686743a59873156921325e5818df13a08317c903b6af341012336923bee6c58e027523957d9792b9aa34f2b11a57f1e0583fc87fa6b0c012cd80e5a1337afc1d09b33aa4d9db331747295
#%NASL_MIN_LEVEL 80900
##
# (C) Tenable, Inc.
##

include('compat.inc');

if (description)
{
  script_id(202121);
  script_version("1.5");
  script_set_attribute(attribute:"plugin_modification_date", value:"2026/04/22");

  script_cve_id("CVE-2024-39565");
  script_xref(name:"JSA", value:"JSA83023");

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

  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 JSA83023
advisory.

  - An Improper Neutralization of Data within XPath Expressions ('XPath Injection') vulnerability in J-Web
    shipped with Juniper Networks Junos OS allows an unauthenticated, network-based attacker to execute remote
    commands on the target device. (CVE-2024-39565)

Note: Nessus found J-Web enabled [set system services web-management http(s)] on this device.");
  script_set_attribute(attribute:"see_also", value:"https://support.juniper.net/support/downloads/?p=283");
  # https://www.first.org/cvss/calculator/v4-0#CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/AU:Y/R:I/V:C/RE:L/U:Amber
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?e33ab8cf");
  # https://supportportal.juniper.net/s/article/2024-07-Security-Bulletin-Junos-OS-SRX-Series-EX-Series-J-Web-An-unauthenticated-network-based-attacker-can-perform-XPATH-injection-attack-against-a-device-CVE-2024-39565
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?f120ed69");
  script_set_attribute(attribute:"solution", value:
"- Disable J-Web and using only alternate options such as Netconf over SSH for device management.
- Restricting the use of J-Web to low-privileged accounts only.
- Deploying the appropriate IDP Signature on devices which do not have J-Web enabled which protect the device downstream which requires J-Web to be enabled.

When remediating, please also refer to Juniper advisory JSA83023.");
  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:U/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:U/RL:O/RC:C");
  script_set_attribute(attribute:"cvss4_vector", value:"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/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:I/V:C/RE:L/U:Amber");
  script_set_attribute(attribute:"cvss4_threat_vector", value:"CVSS:4.0/E:P");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2024-39565");

  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:"2024/07/10");
  script_set_attribute(attribute:"patch_publication_date", value:"2024/07/10");
  script_set_attribute(attribute:"plugin_publication_date", value:"2024/07/10");

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

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

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

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

  exit(0);
}

include('junos.inc');
include('junos_kb_cmd_func.inc');

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

if (model !~ "^(EX|SRX)")
  audit(AUDIT_DEVICE_NOT_VULN, model);

var vuln_ranges = [
  {'min_ver':'0.0', 'fixed_ver':'21.2R3-S8', 'model':'^(EX|SRX)'},
  {'min_ver':'21.4', 'fixed_ver':'21.4R3-S7', 'model':'^(EX|SRX)'},
  {'min_ver':'22.2', 'fixed_ver':'22.2R3-S4', 'model':'^(EX|SRX)'},
  {'min_ver':'22.3', 'fixed_ver':'22.3R3-S3', 'model':'^(EX|SRX)'},
  {'min_ver':'22.4', 'fixed_ver':'22.4R3-S2', 'model':'^(EX|SRX)'},
  {'min_ver':'23.2', 'fixed_ver':'23.2R2', 'model':'^(EX|SRX)'},
  {'min_ver':'23.4', 'fixed_ver':'23.4R1-S1', 'model':'^(EX|SRX)', 'fixed_display':'23.4R1-S1, 23.4R2'}
];

var override = TRUE;
var buf = junos_command_kb_item(cmd:"show configuration | display set");
if (!empty_or_null(buf))
{
  override = FALSE;
  if(!junos_check_config(buf:buf, pattern:"^set system services web-management http(s)?")) 
    audit(AUDIT_HOST_NOT, 'vulnerable as J-Web is not enabled');
}

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);
junos_report(ver:ver, fix:fix, override:override, severity:SECURITY_HOLE);

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

22 Apr 2026 00:00Current
6Medium risk
Vulners AI Score6
CVSS 47.7
CVSS 3.18.8
EPSS0.00637
SSVC
11