CVE Vulnerabilities

CVE-2021-0282

Improper Check for Unusual or Exceptional Conditions

Published: Jul 15, 2021 | Modified: Jul 27, 2021
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
7.1 HIGH
AV:N/AC:M/Au:N/C:N/I:N/A:C
RedHat/V2
RedHat/V3
Ubuntu

On Juniper Networks Junos OS devices with Multipath or add-path feature enabled, processing a specific BGP UPDATE can lead to a routing process daemon (RPD) crash and restart, causing a Denial of Service (DoS). Continued receipt and processing of this UPDATE message will create a sustained Denial of Service (DoS) condition. This BGP UPDATE message can propagate to other BGP peers with vulnerable Junos versions on which Multipath or add-path feature is enabled, and cause RPD to crash and restart. This issue affects both IBGP and EBGP deployments in IPv4 or IPv6 network. Junos OS devices that do not have the BGP Multipath or add-path feature enabled are not affected by this issue. This issue affects: Juniper Networks Junos OS 12.3 versions prior to 12.3R12-S18; 15.1 versions prior to 15.1R7-S9; 17.3 versions prior to 17.3R3-S11; 17.4 versions prior to 17.4R2-S13, 17.4R3-S4; 18.1 versions prior to 18.1R3-S12; 18.2 versions prior to 18.2R3-S7; 18.3 versions prior to 18.3R3-S4; 18.4 versions prior to 18.4R2-S6, 18.4R3-S6; 19.1 versions prior to 19.1R3-S3;

Weakness

The product does not check or incorrectly checks for unusual or exceptional conditions that are not expected to occur frequently during day to day operation of the product.

Affected Software

Name Vendor Start Version End Version
Junos Juniper 12.3 (including) 12.3 (including)
Junos Juniper 12.3-r1 (including) 12.3-r1 (including)
Junos Juniper 12.3-r10 (including) 12.3-r10 (including)
Junos Juniper 12.3-r10-s1 (including) 12.3-r10-s1 (including)
Junos Juniper 12.3-r10-s2 (including) 12.3-r10-s2 (including)
Junos Juniper 12.3-r11 (including) 12.3-r11 (including)
Junos Juniper 12.3-r12 (including) 12.3-r12 (including)
Junos Juniper 12.3-r12-s1 (including) 12.3-r12-s1 (including)
Junos Juniper 12.3-r12-s10 (including) 12.3-r12-s10 (including)
Junos Juniper 12.3-r12-s11 (including) 12.3-r12-s11 (including)
Junos Juniper 12.3-r12-s12 (including) 12.3-r12-s12 (including)
Junos Juniper 12.3-r12-s13 (including) 12.3-r12-s13 (including)
Junos Juniper 12.3-r12-s14 (including) 12.3-r12-s14 (including)
Junos Juniper 12.3-r12-s15 (including) 12.3-r12-s15 (including)
Junos Juniper 12.3-r12-s16 (including) 12.3-r12-s16 (including)
Junos Juniper 12.3-r12-s17 (including) 12.3-r12-s17 (including)
Junos Juniper 12.3-r12-s3 (including) 12.3-r12-s3 (including)
Junos Juniper 12.3-r12-s4 (including) 12.3-r12-s4 (including)
Junos Juniper 12.3-r12-s6 (including) 12.3-r12-s6 (including)
Junos Juniper 12.3-r12-s8 (including) 12.3-r12-s8 (including)
Junos Juniper 12.3-r13 (including) 12.3-r13 (including)
Junos Juniper 12.3-r2 (including) 12.3-r2 (including)
Junos Juniper 12.3-r3 (including) 12.3-r3 (including)
Junos Juniper 12.3-r4 (including) 12.3-r4 (including)
Junos Juniper 12.3-r5 (including) 12.3-r5 (including)
Junos Juniper 12.3-r6 (including) 12.3-r6 (including)
Junos Juniper 12.3-r7 (including) 12.3-r7 (including)
Junos Juniper 12.3-r8 (including) 12.3-r8 (including)
Junos Juniper 12.3-r9 (including) 12.3-r9 (including)
Junos Juniper 15.1 (including) 15.1 (including)
Junos Juniper 15.1-a1 (including) 15.1-a1 (including)
Junos Juniper 15.1-f (including) 15.1-f (including)
Junos Juniper 15.1-f1 (including) 15.1-f1 (including)
Junos Juniper 15.1-f2 (including) 15.1-f2 (including)
Junos Juniper 15.1-f2-s1 (including) 15.1-f2-s1 (including)
Junos Juniper 15.1-f2-s2 (including) 15.1-f2-s2 (including)
Junos Juniper 15.1-f2-s3 (including) 15.1-f2-s3 (including)
Junos Juniper 15.1-f2-s4 (including) 15.1-f2-s4 (including)
Junos Juniper 15.1-f3 (including) 15.1-f3 (including)
Junos Juniper 15.1-f4 (including) 15.1-f4 (including)
Junos Juniper 15.1-f5 (including) 15.1-f5 (including)
Junos Juniper 15.1-f5-s7 (including) 15.1-f5-s7 (including)
Junos Juniper 15.1-f6 (including) 15.1-f6 (including)
Junos Juniper 15.1-f6-s1 (including) 15.1-f6-s1 (including)
Junos Juniper 15.1-f6-s10 (including) 15.1-f6-s10 (including)
Junos Juniper 15.1-f6-s12 (including) 15.1-f6-s12 (including)
Junos Juniper 15.1-f6-s2 (including) 15.1-f6-s2 (including)
Junos Juniper 15.1-f6-s3 (including) 15.1-f6-s3 (including)
Junos Juniper 15.1-f6-s4 (including) 15.1-f6-s4 (including)
Junos Juniper 15.1-f6-s5 (including) 15.1-f6-s5 (including)
Junos Juniper 15.1-f6-s6 (including) 15.1-f6-s6 (including)
Junos Juniper 15.1-f6-s7 (including) 15.1-f6-s7 (including)
Junos Juniper 15.1-f6-s8 (including) 15.1-f6-s8 (including)
Junos Juniper 15.1-f6-s9 (including) 15.1-f6-s9 (including)
Junos Juniper 15.1-f7 (including) 15.1-f7 (including)
Junos Juniper 15.1-r (including) 15.1-r (including)
Junos Juniper 15.1-r1 (including) 15.1-r1 (including)
Junos Juniper 15.1-r2 (including) 15.1-r2 (including)
Junos Juniper 15.1-r3 (including) 15.1-r3 (including)
Junos Juniper 15.1-r4 (including) 15.1-r4 (including)
Junos Juniper 15.1-r4-s7 (including) 15.1-r4-s7 (including)
Junos Juniper 15.1-r4-s8 (including) 15.1-r4-s8 (including)
Junos Juniper 15.1-r4-s9 (including) 15.1-r4-s9 (including)
Junos Juniper 15.1-r5 (including) 15.1-r5 (including)
Junos Juniper 15.1-r5-s1 (including) 15.1-r5-s1 (including)
Junos Juniper 15.1-r5-s3 (including) 15.1-r5-s3 (including)
Junos Juniper 15.1-r5-s5 (including) 15.1-r5-s5 (including)
Junos Juniper 15.1-r5-s6 (including) 15.1-r5-s6 (including)
Junos Juniper 15.1-r6 (including) 15.1-r6 (including)
Junos Juniper 15.1-r6-s1 (including) 15.1-r6-s1 (including)
Junos Juniper 15.1-r6-s2 (including) 15.1-r6-s2 (including)
Junos Juniper 15.1-r6-s3 (including) 15.1-r6-s3 (including)
Junos Juniper 15.1-r6-s4 (including) 15.1-r6-s4 (including)
Junos Juniper 15.1-r6-s6 (including) 15.1-r6-s6 (including)
Junos Juniper 15.1-r7 (including) 15.1-r7 (including)
Junos Juniper 15.1-r7-s1 (including) 15.1-r7-s1 (including)
Junos Juniper 15.1-r7-s2 (including) 15.1-r7-s2 (including)
Junos Juniper 15.1-r7-s3 (including) 15.1-r7-s3 (including)
Junos Juniper 15.1-r7-s4 (including) 15.1-r7-s4 (including)
Junos Juniper 15.1-r7-s5 (including) 15.1-r7-s5 (including)
Junos Juniper 15.1-r7-s6 (including) 15.1-r7-s6 (including)
Junos Juniper 15.1-r7-s7 (including) 15.1-r7-s7 (including)
Junos Juniper 15.1-r7-s8 (including) 15.1-r7-s8 (including)
Junos Juniper 17.3 (including) 17.3 (including)
Junos Juniper 17.3-r1 (including) 17.3-r1 (including)
Junos Juniper 17.3-r1-s1 (including) 17.3-r1-s1 (including)
Junos Juniper 17.3-r1-s4 (including) 17.3-r1-s4 (including)
Junos Juniper 17.3-r2 (including) 17.3-r2 (including)
Junos Juniper 17.3-r2-s1 (including) 17.3-r2-s1 (including)
Junos Juniper 17.3-r2-s2 (including) 17.3-r2-s2 (including)
Junos Juniper 17.3-r2-s3 (including) 17.3-r2-s3 (including)
Junos Juniper 17.3-r2-s4 (including) 17.3-r2-s4 (including)
Junos Juniper 17.3-r2-s5 (including) 17.3-r2-s5 (including)
Junos Juniper 17.3-r3 (including) 17.3-r3 (including)
Junos Juniper 17.3-r3-s1 (including) 17.3-r3-s1 (including)
Junos Juniper 17.3-r3-s10 (including) 17.3-r3-s10 (including)
Junos Juniper 17.3-r3-s2 (including) 17.3-r3-s2 (including)
Junos Juniper 17.3-r3-s3 (including) 17.3-r3-s3 (including)
Junos Juniper 17.3-r3-s4 (including) 17.3-r3-s4 (including)
Junos Juniper 17.3-r3-s5 (including) 17.3-r3-s5 (including)
Junos Juniper 17.3-r3-s6 (including) 17.3-r3-s6 (including)
Junos Juniper 17.3-r3-s7 (including) 17.3-r3-s7 (including)
Junos Juniper 17.3-r3-s8 (including) 17.3-r3-s8 (including)
Junos Juniper 17.3-r3-s9 (including) 17.3-r3-s9 (including)
Junos Juniper 17.4-r2-s2 (including) 17.4-r2-s2 (including)
Junos Juniper 17.4-r2-s3 (including) 17.4-r2-s3 (including)
Junos Juniper 17.4-r2-s4 (including) 17.4-r2-s4 (including)
Junos Juniper 17.4-r2-s5 (including) 17.4-r2-s5 (including)
Junos Juniper 17.4-r2-s6 (including) 17.4-r2-s6 (including)
Junos Juniper 17.4-r2-s7 (including) 17.4-r2-s7 (including)
Junos Juniper 17.4-r2-s8 (including) 17.4-r2-s8 (including)
Junos Juniper 17.4-r2-s9 (including) 17.4-r2-s9 (including)
Junos Juniper 17.4-r3 (including) 17.4-r3 (including)
Junos Juniper 17.4-r3-s1 (including) 17.4-r3-s1 (including)
Junos Juniper 17.4-r3-s2 (including) 17.4-r3-s2 (including)
Junos Juniper 17.4-r3-s3 (including) 17.4-r3-s3 (including)
Junos Juniper 18.1 (including) 18.1 (including)
Junos Juniper 18.1-r1 (including) 18.1-r1 (including)
Junos Juniper 18.1-r2 (including) 18.1-r2 (including)
Junos Juniper 18.1-r2-s1 (including) 18.1-r2-s1 (including)
Junos Juniper 18.1-r2-s2 (including) 18.1-r2-s2 (including)
Junos Juniper 18.1-r2-s4 (including) 18.1-r2-s4 (including)
Junos Juniper 18.1-r3 (including) 18.1-r3 (including)
Junos Juniper 18.1-r3-s1 (including) 18.1-r3-s1 (including)
Junos Juniper 18.1-r3-s10 (including) 18.1-r3-s10 (including)
Junos Juniper 18.1-r3-s11 (including) 18.1-r3-s11 (including)
Junos Juniper 18.1-r3-s2 (including) 18.1-r3-s2 (including)
Junos Juniper 18.1-r3-s3 (including) 18.1-r3-s3 (including)
Junos Juniper 18.1-r3-s4 (including) 18.1-r3-s4 (including)
Junos Juniper 18.1-r3-s5 (including) 18.1-r3-s5 (including)
Junos Juniper 18.1-r3-s6 (including) 18.1-r3-s6 (including)
Junos Juniper 18.1-r3-s7 (including) 18.1-r3-s7 (including)
Junos Juniper 18.1-r3-s8 (including) 18.1-r3-s8 (including)
Junos Juniper 18.1-r3-s9 (including) 18.1-r3-s9 (including)
Junos Juniper 18.2 (including) 18.2 (including)
Junos Juniper 18.2-r1 (including) 18.2-r1 (including)
Junos Juniper 18.2-r1-s2 (including) 18.2-r1-s2 (including)
Junos Juniper 18.2-r1-s3 (including) 18.2-r1-s3 (including)
Junos Juniper 18.2-r1-s4 (including) 18.2-r1-s4 (including)
Junos Juniper 18.2-r1-s5 (including) 18.2-r1-s5 (including)
Junos Juniper 18.2-r2 (including) 18.2-r2 (including)
Junos Juniper 18.2-r2-s1 (including) 18.2-r2-s1 (including)
Junos Juniper 18.2-r2-s2 (including) 18.2-r2-s2 (including)
Junos Juniper 18.2-r2-s3 (including) 18.2-r2-s3 (including)
Junos Juniper 18.2-r2-s4 (including) 18.2-r2-s4 (including)
Junos Juniper 18.2-r2-s5 (including) 18.2-r2-s5 (including)
Junos Juniper 18.2-r2-s6 (including) 18.2-r2-s6 (including)
Junos Juniper 18.2-r3 (including) 18.2-r3 (including)
Junos Juniper 18.2-r3-s1 (including) 18.2-r3-s1 (including)
Junos Juniper 18.2-r3-s2 (including) 18.2-r3-s2 (including)
Junos Juniper 18.2-r3-s3 (including) 18.2-r3-s3 (including)
Junos Juniper 18.2-r3-s4 (including) 18.2-r3-s4 (including)
Junos Juniper 18.2-r3-s5 (including) 18.2-r3-s5 (including)
Junos Juniper 18.2-r3-s6 (including) 18.2-r3-s6 (including)
Junos Juniper 18.3 (including) 18.3 (including)
Junos Juniper 18.3-r1 (including) 18.3-r1 (including)
Junos Juniper 18.3-r1-s1 (including) 18.3-r1-s1 (including)
Junos Juniper 18.3-r1-s2 (including) 18.3-r1-s2 (including)
Junos Juniper 18.3-r1-s3 (including) 18.3-r1-s3 (including)
Junos Juniper 18.3-r1-s4 (including) 18.3-r1-s4 (including)
Junos Juniper 18.3-r1-s5 (including) 18.3-r1-s5 (including)
Junos Juniper 18.3-r1-s6 (including) 18.3-r1-s6 (including)
Junos Juniper 18.3-r2 (including) 18.3-r2 (including)
Junos Juniper 18.3-r2-s1 (including) 18.3-r2-s1 (including)
Junos Juniper 18.3-r2-s2 (including) 18.3-r2-s2 (including)
Junos Juniper 18.3-r2-s3 (including) 18.3-r2-s3 (including)
Junos Juniper 18.3-r2-s4 (including) 18.3-r2-s4 (including)
Junos Juniper 18.3-r3 (including) 18.3-r3 (including)
Junos Juniper 18.3-r3-s1 (including) 18.3-r3-s1 (including)
Junos Juniper 18.3-r3-s2 (including) 18.3-r3-s2 (including)
Junos Juniper 18.3-r3-s3 (including) 18.3-r3-s3 (including)
Junos Juniper 18.4 (including) 18.4 (including)
Junos Juniper 18.4-r1 (including) 18.4-r1 (including)
Junos Juniper 18.4-r1-s1 (including) 18.4-r1-s1 (including)
Junos Juniper 18.4-r1-s2 (including) 18.4-r1-s2 (including)
Junos Juniper 18.4-r1-s3 (including) 18.4-r1-s3 (including)
Junos Juniper 18.4-r1-s4 (including) 18.4-r1-s4 (including)
Junos Juniper 18.4-r1-s5 (including) 18.4-r1-s5 (including)
Junos Juniper 18.4-r1-s6 (including) 18.4-r1-s6 (including)
Junos Juniper 18.4-r1-s7 (including) 18.4-r1-s7 (including)
Junos Juniper 18.4-r2 (including) 18.4-r2 (including)
Junos Juniper 18.4-r2-s1 (including) 18.4-r2-s1 (including)
Junos Juniper 18.4-r2-s2 (including) 18.4-r2-s2 (including)
Junos Juniper 18.4-r2-s3 (including) 18.4-r2-s3 (including)
Junos Juniper 18.4-r2-s4 (including) 18.4-r2-s4 (including)
Junos Juniper 18.4-r2-s5 (including) 18.4-r2-s5 (including)
Junos Juniper 18.4-r3 (including) 18.4-r3 (including)
Junos Juniper 18.4-r3-s1 (including) 18.4-r3-s1 (including)
Junos Juniper 18.4-r3-s2 (including) 18.4-r3-s2 (including)
Junos Juniper 18.4-r3-s3 (including) 18.4-r3-s3 (including)
Junos Juniper 18.4-r3-s4 (including) 18.4-r3-s4 (including)
Junos Juniper 18.4-r3-s5 (including) 18.4-r3-s5 (including)
Junos Juniper 19.1 (including) 19.1 (including)
Junos Juniper 19.1-r1 (including) 19.1-r1 (including)
Junos Juniper 19.1-r1-s1 (including) 19.1-r1-s1 (including)
Junos Juniper 19.1-r1-s2 (including) 19.1-r1-s2 (including)
Junos Juniper 19.1-r1-s3 (including) 19.1-r1-s3 (including)
Junos Juniper 19.1-r1-s4 (including) 19.1-r1-s4 (including)
Junos Juniper 19.1-r1-s5 (including) 19.1-r1-s5 (including)
Junos Juniper 19.1-r1-s6 (including) 19.1-r1-s6 (including)
Junos Juniper 19.1-r2 (including) 19.1-r2 (including)
Junos Juniper 19.1-r2-s1 (including) 19.1-r2-s1 (including)
Junos Juniper 19.1-r2-s2 (including) 19.1-r2-s2 (including)
Junos Juniper 19.1-r3 (including) 19.1-r3 (including)
Junos Juniper 19.1-r3-s1 (including) 19.1-r3-s1 (including)
Junos Juniper 19.1-r3-s2 (including) 19.1-r3-s2 (including)

Extended Description

The programmer may assume that certain events or conditions will never occur or do not need to be worried about, such as low memory conditions, lack of access to resources due to restrictive permissions, or misbehaving clients or components. However, attackers may intentionally trigger these unusual conditions, thus violating the programmer’s assumptions, possibly introducing instability, incorrect behavior, or a vulnerability. Note that this entry is not exclusively about the use of exceptions and exception handling, which are mechanisms for both checking and handling unusual or unexpected conditions.

Potential Mitigations

  • Use a language that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid.
  • Choose languages with features such as exception handling that force the programmer to anticipate unusual conditions that may generate exceptions. Custom exceptions may need to be developed to handle unusual business-logic conditions. Be careful not to pass sensitive exceptions back to the user (CWE-209, CWE-248).
  • Ensure that error messages only contain minimal details that are useful to the intended audience and no one else. The messages need to strike the balance between being too cryptic (which can confuse users) or being too detailed (which may reveal more than intended). The messages should not reveal the methods that were used to determine the error. Attackers can use detailed information to refine or optimize their original attack, thereby increasing their chances of success.
  • If errors must be captured in some detail, record them in log messages, but consider what could occur if the log messages can be viewed by attackers. Highly sensitive information such as passwords should never be saved to log files.
  • Avoid inconsistent messaging that might accidentally tip off an attacker about internal state, such as whether a user account exists or not.
  • Exposing additional information to a potential attacker in the context of an exceptional condition can help the attacker determine what attack vectors are most likely to succeed beyond DoS.
  • Assume all input is malicious. Use an “accept known good” input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does.
  • When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, “boat” may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as “red” or “blue.”
  • Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code’s environment changes. This can give attackers enough room to bypass the intended validation. However, denylists can be useful for detecting potential attacks or determining which inputs are so malformed that they should be rejected outright.

References