Lucene search
K

Juniper Junos OS Vulnerability (JSA100050)

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

Junos OS vulnerability allows Denial of Service via malformed AS PATH in BGP updates with traceoptions enabled.

Related
Refs
Code
#TRUSTED 1cbff19e3c6ad421275d142962604f131c39311b6d8307e7d2e1a66a43699538f2d67d8ad251dbeaa7395d95df1bfb318be6740d77c47ed5583c850a80b8a085bc43364891d67ec0d078ba181c32cdde49c8b1eddb7a486ef76d6a724cfed5b43822957df1a7302d89bffce0763e70fc8d8b8831987c17331780b7939c6162abaf5bb0c3c0152a90915ac41994c77c037521b7a89ae05fd968639b2af9bdf003d86090277542ded3e1f1efe2f447f00bdfd194790a8662feabb3af867fd17d859c009e112ff629c1e5bb1cb79c5ef29a4dbcad3a16429a94b13fcc6290fab1fbf6154fd530c2bf4cd8b17df89a04847f86a69c1c99240f763628d0a208a37f9913376f7bd2b7d40457736ac59d574711e6af110b3d91ffb29249d562b772ec5b99a9002a6c1ac8fe4bd82f21fee7d543983b653f0b362ac4495da1300072fd4dc32246f7a5a14e350d8f6fc8ccf5a4ff0ab48179c06d5f685ac391696d69531583464d1a07f87a80f8485b00209e35895af687a8f995434749672691344e6103e7c9dc950b3e3debbe92798b502bac5a9553742eb115d3276d678edc2cdb6553bdbd3adaba6024c5aa12f5c58fdd47cae1090e391100fcb72647fe71bdbfc97847ec5d9ed572341c9fa04841da3d8c7b2283e512c78136b15d0cd44322d3a09ea1e187a7826dc7e0b1bceaa397c95dd54127d7a6973beae4de8e61d584c18867
#TRUST-RSA-SHA256 42ced4a26538495999892bc2f92fb4d9807b7b303fbfdcc76b4dd11289c05620241101b8519ffe0b313fc640c406262d7dc80813d131e04d0a07cdf233494ea8a0b9ebb8d42c01d0852ffa7a3029384278e40f49e1781d6bcfdcff89cb870ea4450d8d467c25908fc7f9c84d017af1e9eb9eecff7fbb7e617ea7c831bcbf50087af8b9ff64912df9394dac47cabcff5e4c053270c3b648c2f9f39196bddebec25d05123e8ab499682d2612ea38aea9a5eb3e87e017527cb9b71aa00005db8253ec242be7de2076052f5d317799e759ebbbcb8780e35c196485eb287054cac3b738269e772607d8df547dd2c20461534b20a5b2090eddd16577eabc0d69f9d268b0a1f03719a242bb303281ba261659ec6e8c14284dd7a5d76f875de99551d6157f180b49b24c1746f0a2ce1c9cb3e3a65d466fa6e0926a10ba84a8432ee888ef4477ac98c94566e93c82eb7bc8241dc88881f23ba16b16412debf1f64e0cc371dab2185ca39c7550e37b354cc6f1de83ac189ee4483b69abcf3f54782c8b79af509e9810bc6b73bfe1fe5bf11b844a96cb090ff5e000dd06feb968fc8e49d4c606c42d0e6fa3b8b2d8d428bb366270e7f16f7da1c60423ed5660d5cd9328afea89c4e06d86b4456f3c1c449db3801f45b1ea58e21fa14fec9684efc601ef417e3228b9239ffaea0a0937ca1c736cac2df3c60a9841d70398b1256cacc555930b
#%NASL_MIN_LEVEL 80900
##
# (C) Tenable, Inc.
##

include('compat.inc');

if (description)
{
  script_id(243979);
  script_version("1.1");
  script_set_attribute(attribute:"plugin_modification_date", value:"2025/08/06");

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

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

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

  - A Use After Free vulnerability in the routing protocol daemon (rpd) of Juniper Networks Junos OS and 
    Juniper Networks Junos OS Evolved allows an attacker sending a BGP update with a specifically malformed 
    AS PATH to cause rpd to crash, resulting in a Denial of Service (DoS). Continuous receipt of the 
    malformed AS PATH attribute will cause a sustained DoS condition. On all Junos OS and Junos OS Evolved 
    platforms, the rpd process will crash and restart when a specifically malformed AS PATH is received 
    within a BGP update and traceoptions are enabled. This issue only affects systems with BGP traceoptions 
    enabled and requires a BGP session to be already established. Systems without BGP traceoptions enabled 
    are not impacted by this issue. (CVE-2025-52946)

Note that Nessus has not tested for these issues 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-With-traceoptions-enabled-receipt-of-malformed-AS-PATH-causes-RPD-crash-CVE-2025-52946
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?20973523");
  script_set_attribute(attribute:"solution", value:
"Apply the relevant Junos software release referenced in Juniper advisory JSA100050");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:N/I:N/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:N/S:U/C:N/I:N/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:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:L");
  script_set_attribute(attribute:"cvss4_supplemental", value:"CVSS:4.0/AU:Y/R:A/V:C/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-52946");

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

  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');
include('junos_kb_cmd_func.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-S5-EVO'},
  {'min_ver':'21.4', 'fixed_ver':'21.5.0', 'fixed_display':'See vendor advisory'},
  {'min_ver':'22.2', 'fixed_ver':'22.2R3-S6'},
  {'min_ver':'22.4', 'fixed_ver':'22.4R3-S5'},
  {'min_ver':'23.2', 'fixed_ver':'23.2R2-S3'},
  {'min_ver':'23.2-EVO', 'fixed_ver':'23.2R2-S3-EVO'},
  {'min_ver':'23.4', 'fixed_ver':'23.4R2-S4'},
  {'min_ver':'23.4-EVO', 'fixed_ver':'23.4R2-S4-EVO'},
  {'min_ver':'24.2', 'fixed_ver':'24.2R2'},
  {'min_ver':'24.2-EVO', 'fixed_ver':'24.2R2-EVO'}
];

var override = TRUE;
var buf = junos_command_kb_item(cmd:'show configuration | display set');
if (buf)
{
  var conf1 = junos_check_config(buf:buf, pattern:"^set protocols bgp traceoptions");
  var conf2 = junos_check_config(buf:buf, pattern:"^set protocols bgp group.*traceoptions");

  if (!(conf1 || conf2))
    audit(AUDIT_OS_CONF_NOT_VULN, 'Junos OS');
  override = FALSE;
}
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

06 Aug 2025 00:00Current
5.6Medium risk
Vulners AI Score5.6
CVSS 3.17.5
CVSS 48.7
EPSS0.00402
SSVC
4