5.9 Medium
CVSS3
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
NONE
Integrity Impact
NONE
Availability Impact
HIGH
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
7.4 High
AI Score
Confidence
High
0.0005 Low
EPSS
Percentile
17.7%
The version of Junos OS installed on the remote host is affected by a vulnerability as referenced in the JSA75723 advisory.
Note that Nessus has not tested for this issue but has instead relied only on the application’s self-reported version number.
#TRUSTED 9b9ae189ee4ebbd50008fe66c1564b6dff38f0e97e9e29094cfa3a0a15da206133e0e01be06f25df26d5bcfffd4e347dec5098af2f29ab20cf2216be4ae591c7b9d88ef78246c41ce9c4a855ddab0b0f394f9c4e1cb42699621fe8f5b2160481c974423cf9594f45abbf41ae488cb802eca4aa51a50837367709fadf74c47536f1b2f5c4bf06f3c2a7ac7b304bacc1d69ee786f120351ba715177bbc2808e36af589a862eef3a57da42351358458ca664977a50d1fb904de1b17ebc745408735bc24b5f49e2ade457e691dda62957f17ef4b94815c0618f0d7eb34fcc4c6d1476e7e8337153d3c2a56e9735b4cf216b95864f96091ddc108376e0cbfdd2d52240f0daba845448b5d521b0363a9b18d9e2236fed18b52252861b52d356b68dc91d5f051daadbd85f39108ff5996231376c99f783d6ada0caaa2e954f7dd7e89e9194663f7b0e6a9ec1a4236c4a6ac4d6ae2df133faabdaa9eb013d0e119e9771c1a2a17957bac0a0bbf7580e5eb08d85eb6662cbca972228f0965e01b4caa826527556997eb0d1621e15f60de1d6b581a6d317e9b32bf08201b3df7cf1ba977c7be847d8bf070959c729924d08fbc96e677aa316ba59d852aecedde33aabdd44ef56958041055e2c0f44130f30ea451111f6e330a7ab4757bf13e57d165b62d4c2742332be08edf0595ea646435b53e9c5b0a1ee51cd9148c2955241701f16bd5
#TRUST-RSA-SHA256 984686d11ec2c4113301ecef2a9033154c55928e99b50222cfc26e6dcc1047418fd7deeeeb029f1e28682a4b97908875a3003a84b846785e5b5c880529e5a41caff944b4970e8634d9b15b845c45eda726b6ee2798fd12c8eb089c717f4af9c2591346b4e94452bd127858612d494551d0c46c295523eb7d150ff97c1f9dd01f622bec2db13e11a0590d42fdb116b3d61bf7bec0b169e61126f5a4e8d6c619c34b3d435df1a221b80bf2139721f09b3d897bb54f50da30fd2d4aeca127b12d19621d1e3b3a3c7e7484e009ef9b6ca7417c9d669fbc05c505f365c6006fba78a10ede1357295e2ab873a762e2d680597a2d341b613638c3859a65067310f0a60144de9116df55a4c41fc8b51663e6069d3ad8ef48665f8ea6fd2a7246775d7c20c4e08f8c7f6dbf83793a16df96c4a242a491665f02f65c4ae488ed42ac3b7d991c097a792e4e694c5c518e8f0383c8ad328ece91048f2797beac12dcee1060e26ce65493a7db8f0f77808ff919f8deb38e0202b11552f890df27e0e1d365c1bea81dad41c4c0cf3114c78dac80fec8e7e02cb8a0df4104bb0b84b291bafd972140b1592aa34ff2825b670cc4d54feffb06c1c83ee5c794d06263c182bf3e665495a0f2ff749afc91c484733f2db51ac61788449677ddb4ff750bd695500f09df55ef66822ad5715a2c96b52df62b8e7192fe5c6b52b51610dc8922ca869e7d7f
#%NASL_MIN_LEVEL 80900
##
# (C) Tenable, Inc.
##
include('compat.inc');
if (description)
{
script_id(189740);
script_version("1.0");
script_set_attribute(attribute:"plugin_modification_date", value:"2024/01/29");
script_cve_id("CVE-2024-21585");
script_xref(name:"JSA", value:"JSA75723");
script_name(english:"Juniper Junos OS Vulnerability (JSA75723)");
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 JSA75723
advisory.
- An Improper Handling of Exceptional Conditions vulnerability in BGP session processing of Juniper Networks
Junos OS and Junos OS Evolved allows an unauthenticated network-based attacker, using specific timing
outside the attacker's control, to flap BGP sessions and cause the routing protocol daemon (rpd) process
to crash and restart, leading to a Denial of Service (DoS) condition. Continued BGP session flapping will
create a sustained Denial of Service (DoS) condition. This issue only affects routers configured with non-
stop routing (NSR) enabled. Graceful Restart (GR) helper mode, enabled by default, is also required for
this issue to be exploitable. Note: NSR is not supported on the SRX Series and is therefore not affected
by this vulnerability. When the BGP session flaps on the NSR-enabled router, the device enters GR-
helper/LLGR-helper mode due to the peer having negotiated GR/LLGR-restarter capability and the backup BGP
requests for replication of the GR/LLGR-helper session, master BGP schedules, and initiates replication of
GR/LLGR stale routes to the backup BGP. In this state, if the BGP session with the BGP peer comes up
again, unsolicited replication is initiated for the peer without cleaning up the ongoing GR/LLGR-helper
mode replication. This parallel two instances of replication for the same peer leads to the assert if the
BGP session flaps again. This issue affects: Juniper Networks Junos OS * All versions earlier than
20.4R3-S9; * 21.2 versions earlier than 21.2R3-S7; * 21.3 versions earlier than 21.3R3-S5; * 21.4 versions
earlier than 21.4R3-S5; * 22.1 versions earlier than 22.1R3-S4; * 22.2 versions earlier than 22.2R3-S3; *
22.3 versions earlier than 22.3R3-S1; * 22.4 versions earlier than 22.4R2-S2, 22.4R3; * 23.2 versions
earlier than 23.2R1-S1, 23.2R2. Juniper Networks Junos OS Evolved * All versions earlier than
21.3R3-S5-EVO; * 21.4 versions earlier than 21.4R3-S5-EVO; * 22.1 versions earlier than 22.1R3-S4-EVO; *
22.2 versions earlier than 22.2R3-S3-EVO; * 22.3 versions earlier than 22.3R3-S1-EVO; * 22.4 versions
earlier than 22.4R2-S2-EVO, 22.4R3-EVO; * 23.2 versions earlier than 23.2R1-S1-EVO, 23.2R2-EVO.
(CVE-2024-21585)
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/Overview-of-the-Juniper-Networks-SIRT-Quarterly-Security-Bulletin-Publication-Process?r=48&ui-knowledge-components-aura-actions.KnowledgeArticleVersionCreateDraftFromOnlineAction.createDraftFromOnlineArticle=1
script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?b7b42de6");
# https://supportportal.juniper.net/s/article/In-which-releases-are-vulnerabilities-fixed?r=48&ui-knowledge-components-aura-actions.KnowledgeArticleVersionCreateDraftFromOnlineAction.createDraftFromOnlineArticle=1
script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?a955bc93");
# https://supportportal.juniper.net/s/article/Common-Vulnerability-Scoring-System-CVSS-and-Juniper-s-Security-Advisories?r=48&ui-knowledge-components-aura-actions.KnowledgeArticleVersionCreateDraftFromOnlineAction.createDraftFromOnlineArticle=1
script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?e61f1a02");
# https://supportportal.juniper.net/s/article/MX-GR-and-LLGR-capability-and-compatibility-changes-after-15-1-release
script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?aca53db1");
# https://supportportal.juniper.net/s/article/2024-01-Security-Bulletin-Junos-OS-and-Junos-OS-Evolved-rpd-process-crash-due-to-BGP-flap-on-NSR-enabled-devices-CVE-2024-21585
script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?892978d8");
script_set_attribute(attribute:"solution", value:
"Apply the relevant Junos software release referenced in Juniper advisory JSA75723");
script_set_cvss_base_vector("CVSS2#AV:N/AC:H/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:H/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:"cvss_score_source", value:"CVE-2024-21585");
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/01/10");
script_set_attribute(attribute:"patch_publication_date", value:"2024/01/10");
script_set_attribute(attribute:"plugin_publication_date", value:"2024/01/29");
script_set_attribute(attribute:"plugin_type", value:"combined");
script_set_attribute(attribute:"cpe", value:"cpe:/o:juniper:junos");
script_end_attributes();
script_category(ACT_GATHER_INFO);
script_family(english:"Junos Local Security Checks");
script_copyright(english:"This script is Copyright (C) 2024 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':'20.4R3-S9'},
{'min_ver':'0.0', 'fixed_ver':'21.3R3-S5-EVO'},
{'min_ver':'21.2', 'fixed_ver':'21.2R3-S7'},
{'min_ver':'21.3', 'fixed_ver':'21.3R3-S5'},
{'min_ver':'21.4', 'fixed_ver':'21.4R3-S5'},
{'min_ver':'21.4', 'fixed_ver':'21.4R3-S5-EVO'},
{'min_ver':'22.1', 'fixed_ver':'22.1R3-S4'},
{'min_ver':'22.1', 'fixed_ver':'22.1R3-S4-EVO'},
{'min_ver':'22.2', 'fixed_ver':'22.2R3-S3'},
{'min_ver':'22.2', 'fixed_ver':'22.2R3-S3-EVO'},
{'min_ver':'22.3', 'fixed_ver':'22.3R3-S1'},
{'min_ver':'22.3', 'fixed_ver':'22.3R3-S1-EVO'},
{'min_ver':'22.4', 'fixed_ver':'22.4R2-S2', 'fixed_display':'22.4R2-S2, 22.4R3'},
{'min_ver':'22.4', 'fixed_ver':'22.4R2-S2-EVO', 'fixed_display':'22.4R2-S2-EVO, 22.4R3-EVO'},
{'min_ver':'23.2', 'fixed_ver':'23.2R1-S1', 'fixed_display':'23.2R1-S1, 23.2R2'},
{'min_ver':'23.2', 'fixed_ver':'23.2R1-S1-EVO', 'fixed_display':'23.2R1-S1-EVO, 23.2R2-EVO'}
];
var override = TRUE;
var buf = junos_command_kb_item(cmd:'show configuration | display set');
if (buf)
{
override = FALSE;
if (!preg(string:buf, pattern:"^set routing-options graceful-restart", multiline:TRUE))
audit(AUDIT_HOST_NOT, 'affected because the Graceful Restart (GR) feature is not enabled');
if (!preg(string:buf, pattern:"^set chassis redundancy graceful-switchover", multiline:TRUE))
audit(AUDIT_HOST_NOT, 'affected because the Graceful Routing Engine Switchover (GRES) feature is not enabled');
if (!preg(string:buf, pattern:"^set routing-options nonstop-routing", multiline:TRUE))
audit(AUDIT_HOST_NOT, 'affected because the Nonstop Active Routing (NSR) feature 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_WARNING);
5.9 Medium
CVSS3
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
NONE
Integrity Impact
NONE
Availability Impact
HIGH
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
7.4 High
AI Score
Confidence
High
0.0005 Low
EPSS
Percentile
17.7%