Skip to main content
CVE-2024-21587VulnerabilityPublished Updated

CVE-2024-21587: Juniper Networks Junos OS · Improper Handling of Exceptional Conditions

Affects Juniper Networks Junos OSSource CVE Database V5

0

Not known to be exploited · CVSS 6.5 Medium.

Data as of 26 Oct 2026, 06:26 UTC

CVSS 3.1 base score
6.5Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.2% chance of exploitation in 30 days – higher than 20% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 12 Jan 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.

What to do

Affected software

ProductAffectedFixed in
Juniper Networks Junos OSAffected
  • =0
  • =21.2
  • =21.3
  • =21.4
  • =22.1
  • =22.2
  • =22.3
  • =22.4
  • =23.2
Fixed in–

AI-suggested

1. Immediate mitigation involves disabling BFD liveness detection for DHCP subscribers if feasible, as systems without BFD enabled are not vulnerable. 2. Apply the latest Junos OS patches from Juniper Networks that address this vulnerability. Ensure all MX Series routers are updated to versions at or beyond the fixed releases (e.g., 20.4R3-S9, 21.2R3-S7, 21.3R3-S5, etc.). 3. Implement network segmentation and access controls to limit adjacency access to the MX Series routers, reducing the attack surface. 4. Monitor the memory usage of the bbe-smgd process regularly using 'show system processes extensive' to detect early signs of memory leaks. 5. Automate alerts for abnormal memory growth in bbe-smgd to enable proactive response before service degradation occurs. 6. Prepare operational procedures for rapid restart of the bbe-smgd daemon to restore service if memory exhaustion is detected. 7. Conduct configuration reviews to ensure that only necessary features are enabled and that BFD liveness detection is used judiciously. 8. Engage with Juniper support for guidance and to verify patch applicability in complex network environments.

Description

An Improper Handling of Exceptional Conditions vulnerability in the broadband edge subscriber management daemon (bbe-smgd) of Juniper Networks Junos OS on MX Series allows an attacker directly connected to the vulnerable system who repeatedly flaps DHCP subscriber sessions to cause a slow memory leak, ultimately leading to a Denial of Service (DoS). Memory can only be recovered by manually restarting bbe-smgd. This issue only occurs if BFD liveness detection for DHCP subscribers is enabled. Systems without BFD liveness detection enabled are not vulnerable to this issue. Indication of the issue can be observed by periodically executing the 'show system processes extensive' command, which will indicate an increase in memory allocation for bbe-smgd. A small amount of memory is leaked every time a DHCP subscriber logs in, which will become visible over time, ultimately leading to memory starvation.user@junos> show system processes extensive | match bbe-smgd 13071 root 24 0 415M 201M select 0 0:41 7.28% bbe-smgd{bbe-smgd} 13071 root 20 0 415M 201M select 1 0:04 0.00% bbe-smgd{bbe-smgd} ... user@junos> show system processes extensive | match bbe-smgd 13071 root 20 0 420M 208M select 0 4:33 0.10% bbe-smgd{bbe-smgd} 13071 root 20 0 420M 208M select 0 0:12 0.00% bbe-smgd{bbe-smgd} ... This issue affects Juniper Networks Junos OS on MX Series: * 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-S2; * 22.4 versions earlier than 22.4R2-S2, 22.4R3; * 23.2 versions earlier than 23.2R1-S1, 23.2R2.

References

Community reviews

Loading reviews…