CVE-2021-0243

Junos OS: EX4300: Stateless firewall policer fails to discard traffic

AllVuln state: AFFECTED

MEDIUM
CVSS
4.7
3.1
EPSS
0.39%
Percentile 35.21%
CISA KEV
Not listed
Published
April 22, 2021
Updated September 17, 2024

Description

Improper Handling of Unexpected Data in the firewall policer of Juniper Networks Junos OS on EX4300 switches allows matching traffic to exceed set policer limits, possibly leading to a limited Denial of Service (DoS) condition. When the firewall policer discard action fails on a Layer 2 port, it will allow traffic to pass even though it exceeds set policer limits. Traffic will not get discarded, and will be forwarded even though a policer discard action is configured. When the issue occurs, traffic is not discarded as desired, which can be observed by comparing the Input bytes with the Output bytes using the following command: user@junos> monitor interface traffic Interface Link Input bytes (bps) Output bytes (bps) ge-0/0/0 Up 37425422 (82616) 37425354 (82616) <<<< egress ge-0/0/1 Up 37425898 (82616) 37425354 (82616) <<<< ingress The expected output, with input and output counters differing, is shown below: Interface Link Input bytes (bps) Output bytes (bps) ge-0/0/0 Up 342420570 (54600) 342422760 (54600) <<<< egress ge-0/0/1 Up 517672120 (84000) 342420570 (54600) <<<< ingress This issue only affects IPv4 policing. IPv6 traffic and firewall policing actions are not affected by this issue. This issue affects Juniper Networks Junos OS on the EX4300: All versions prior to 17.3R3-S10; 17.4 versions prior to 17.4R3-S3; 18.1 versions prior to 18.1R3-S11; 18.2 versions prior to 18.2R3-S6; 18.3 versions prior to 18.3R3-S4; 18.4 versions prior to 18.4R3-S6; 19.1 versions prior to 19.1R3-S3; 19.2 versions prior to 19.2R3-S1; 19.3 versions prior to 19.3R3-S1; 19.4 versions prior to 19.4R3; 20.1 versions prior to 20.1R2; 20.2 versions prior to 20.2R2.

Risk details

CVSS vector
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L
attack vector
A
attack complexity
L
privileges required
N
user interaction
N
scope
C
CWE
CWE-241, Denial of Service (DoS)

What should I do?

Review the vendor remediation for fixed or recommended release 17.3R3-S10.

Supported product evidence

Juniper Networks · Junos OS
Confirmed affected by authoritative structured evidence · Juniper Networks CNA / CVE List V5
Vendor advisory ↗

Applicability

AFFECTED · RANGE
17.3R3-S10
NOT_AFFECTED · EXACT
17.3R3-S10
AFFECTED · RANGE
17.4R3-S3
NOT_AFFECTED · EXACT
17.4R3-S3
AFFECTED · RANGE
18.1R3-S11
NOT_AFFECTED · EXACT
18.1R3-S11
AFFECTED · RANGE
18.2R3-S6
NOT_AFFECTED · EXACT
18.2R3-S6
AFFECTED · RANGE
18.3R3-S4
NOT_AFFECTED · EXACT
18.3R3-S4
AFFECTED · RANGE
18.4R3-S6
NOT_AFFECTED · EXACT
18.4R3-S6
AFFECTED · RANGE
19.1R3-S3
NOT_AFFECTED · EXACT
19.1R3-S3
AFFECTED · RANGE
19.2R3-S1
NOT_AFFECTED · EXACT
19.2R3-S1
AFFECTED · RANGE
19.3R3-S1
NOT_AFFECTED · EXACT
19.3R3-S1
AFFECTED · RANGE
19.4R3
NOT_AFFECTED · EXACT
19.4R3
AFFECTED · RANGE
20.1R2
NOT_AFFECTED · EXACT
20.1R2
AFFECTED · RANGE
20.2R2
NOT_AFFECTED · EXACT
20.2R2
UNKNOWN · DEFAULT
{"defaultStatus": null}

Remediation

FIX_AVAILABLE
Release train: 17.3
First fixed: 17.3R3-S10
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 17.4
First fixed: 17.4R3-S3
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 18.1
First fixed: 18.1R3-S11
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 18.2
First fixed: 18.2R3-S6
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 18.3
First fixed: 18.3R3-S4
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 18.4
First fixed: 18.4R3-S6
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 19.1
First fixed: 19.1R3-S3
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 19.2
First fixed: 19.2R3-S1
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 19.3
First fixed: 19.3R3-S1
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 19.4
First fixed: 19.4R3
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 20.1
First fixed: 20.1R2
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 20.2
First fixed: 20.2R2
Vendor recommended: Not supplied
Remediation source ↗
Juniper Networks · Junos OS
Referenced / metadata only · CVE List V5
Vendor advisory ↗

Applicability

AFFECTED · RANGE
unspecified → 17.3R3-S10
Platform: EX4300
Required configuration: A sample affected firewall policer configuration is shown below: set interfaces ge-0/0/1 unit 0 family ethernet-switching filter input TEST-Policer set firewall family ethernet-switching filter TEST-Policer term 1 from ip-source-address 10.1.1.0/24 set firewall family ethernet-switching filter TEST-Policer term 1 then accept set firewall family ethernet-switching filter TEST-Policer term 1 then policer TEST-Policer-Bandwidth set firewall policer TEST-Policer-Bandwidth if-exceeding bandwidth-limit 50k set firewall policer TEST-Policer-Bandwidth if-exceeding burst-size-limit 1500 set firewall policer TEST-Policer-Bandwidth then discard
AFFECTED · RANGE
17.4 → 17.4R3-S3
Platform: EX4300
Required configuration: A sample affected firewall policer configuration is shown below: set interfaces ge-0/0/1 unit 0 family ethernet-switching filter input TEST-Policer set firewall family ethernet-switching filter TEST-Policer term 1 from ip-source-address 10.1.1.0/24 set firewall family ethernet-switching filter TEST-Policer term 1 then accept set firewall family ethernet-switching filter TEST-Policer term 1 then policer TEST-Policer-Bandwidth set firewall policer TEST-Policer-Bandwidth if-exceeding bandwidth-limit 50k set firewall policer TEST-Policer-Bandwidth if-exceeding burst-size-limit 1500 set firewall policer TEST-Policer-Bandwidth then discard
AFFECTED · RANGE
18.1 → 18.1R3-S11
Platform: EX4300
Required configuration: A sample affected firewall policer configuration is shown below: set interfaces ge-0/0/1 unit 0 family ethernet-switching filter input TEST-Policer set firewall family ethernet-switching filter TEST-Policer term 1 from ip-source-address 10.1.1.0/24 set firewall family ethernet-switching filter TEST-Policer term 1 then accept set firewall family ethernet-switching filter TEST-Policer term 1 then policer TEST-Policer-Bandwidth set firewall policer TEST-Policer-Bandwidth if-exceeding bandwidth-limit 50k set firewall policer TEST-Policer-Bandwidth if-exceeding burst-size-limit 1500 set firewall policer TEST-Policer-Bandwidth then discard
AFFECTED · RANGE
18.2 → 18.2R3-S6
Platform: EX4300
Required configuration: A sample affected firewall policer configuration is shown below: set interfaces ge-0/0/1 unit 0 family ethernet-switching filter input TEST-Policer set firewall family ethernet-switching filter TEST-Policer term 1 from ip-source-address 10.1.1.0/24 set firewall family ethernet-switching filter TEST-Policer term 1 then accept set firewall family ethernet-switching filter TEST-Policer term 1 then policer TEST-Policer-Bandwidth set firewall policer TEST-Policer-Bandwidth if-exceeding bandwidth-limit 50k set firewall policer TEST-Policer-Bandwidth if-exceeding burst-size-limit 1500 set firewall policer TEST-Policer-Bandwidth then discard
AFFECTED · RANGE
18.3 → 18.3R3-S4
Platform: EX4300
Required configuration: A sample affected firewall policer configuration is shown below: set interfaces ge-0/0/1 unit 0 family ethernet-switching filter input TEST-Policer set firewall family ethernet-switching filter TEST-Policer term 1 from ip-source-address 10.1.1.0/24 set firewall family ethernet-switching filter TEST-Policer term 1 then accept set firewall family ethernet-switching filter TEST-Policer term 1 then policer TEST-Policer-Bandwidth set firewall policer TEST-Policer-Bandwidth if-exceeding bandwidth-limit 50k set firewall policer TEST-Policer-Bandwidth if-exceeding burst-size-limit 1500 set firewall policer TEST-Policer-Bandwidth then discard
AFFECTED · RANGE
18.4 → 18.4R3-S6
Platform: EX4300
Required configuration: A sample affected firewall policer configuration is shown below: set interfaces ge-0/0/1 unit 0 family ethernet-switching filter input TEST-Policer set firewall family ethernet-switching filter TEST-Policer term 1 from ip-source-address 10.1.1.0/24 set firewall family ethernet-switching filter TEST-Policer term 1 then accept set firewall family ethernet-switching filter TEST-Policer term 1 then policer TEST-Policer-Bandwidth set firewall policer TEST-Policer-Bandwidth if-exceeding bandwidth-limit 50k set firewall policer TEST-Policer-Bandwidth if-exceeding burst-size-limit 1500 set firewall policer TEST-Policer-Bandwidth then discard
AFFECTED · RANGE
19.1 → 19.1R3-S3
Platform: EX4300
Required configuration: A sample affected firewall policer configuration is shown below: set interfaces ge-0/0/1 unit 0 family ethernet-switching filter input TEST-Policer set firewall family ethernet-switching filter TEST-Policer term 1 from ip-source-address 10.1.1.0/24 set firewall family ethernet-switching filter TEST-Policer term 1 then accept set firewall family ethernet-switching filter TEST-Policer term 1 then policer TEST-Policer-Bandwidth set firewall policer TEST-Policer-Bandwidth if-exceeding bandwidth-limit 50k set firewall policer TEST-Policer-Bandwidth if-exceeding burst-size-limit 1500 set firewall policer TEST-Policer-Bandwidth then discard
AFFECTED · RANGE
19.2 → 19.2R3-S1
Platform: EX4300
Required configuration: A sample affected firewall policer configuration is shown below: set interfaces ge-0/0/1 unit 0 family ethernet-switching filter input TEST-Policer set firewall family ethernet-switching filter TEST-Policer term 1 from ip-source-address 10.1.1.0/24 set firewall family ethernet-switching filter TEST-Policer term 1 then accept set firewall family ethernet-switching filter TEST-Policer term 1 then policer TEST-Policer-Bandwidth set firewall policer TEST-Policer-Bandwidth if-exceeding bandwidth-limit 50k set firewall policer TEST-Policer-Bandwidth if-exceeding burst-size-limit 1500 set firewall policer TEST-Policer-Bandwidth then discard
AFFECTED · RANGE
19.3 → 19.3R3-S1
Platform: EX4300
Required configuration: A sample affected firewall policer configuration is shown below: set interfaces ge-0/0/1 unit 0 family ethernet-switching filter input TEST-Policer set firewall family ethernet-switching filter TEST-Policer term 1 from ip-source-address 10.1.1.0/24 set firewall family ethernet-switching filter TEST-Policer term 1 then accept set firewall family ethernet-switching filter TEST-Policer term 1 then policer TEST-Policer-Bandwidth set firewall policer TEST-Policer-Bandwidth if-exceeding bandwidth-limit 50k set firewall policer TEST-Policer-Bandwidth if-exceeding burst-size-limit 1500 set firewall policer TEST-Policer-Bandwidth then discard
AFFECTED · RANGE
19.4 → 19.4R3
Platform: EX4300
Required configuration: A sample affected firewall policer configuration is shown below: set interfaces ge-0/0/1 unit 0 family ethernet-switching filter input TEST-Policer set firewall family ethernet-switching filter TEST-Policer term 1 from ip-source-address 10.1.1.0/24 set firewall family ethernet-switching filter TEST-Policer term 1 then accept set firewall family ethernet-switching filter TEST-Policer term 1 then policer TEST-Policer-Bandwidth set firewall policer TEST-Policer-Bandwidth if-exceeding bandwidth-limit 50k set firewall policer TEST-Policer-Bandwidth if-exceeding burst-size-limit 1500 set firewall policer TEST-Policer-Bandwidth then discard
AFFECTED · RANGE
20.1 → 20.1R2
Platform: EX4300
Required configuration: A sample affected firewall policer configuration is shown below: set interfaces ge-0/0/1 unit 0 family ethernet-switching filter input TEST-Policer set firewall family ethernet-switching filter TEST-Policer term 1 from ip-source-address 10.1.1.0/24 set firewall family ethernet-switching filter TEST-Policer term 1 then accept set firewall family ethernet-switching filter TEST-Policer term 1 then policer TEST-Policer-Bandwidth set firewall policer TEST-Policer-Bandwidth if-exceeding bandwidth-limit 50k set firewall policer TEST-Policer-Bandwidth if-exceeding burst-size-limit 1500 set firewall policer TEST-Policer-Bandwidth then discard
AFFECTED · RANGE
20.2 → 20.2R2
Platform: EX4300
Required configuration: A sample affected firewall policer configuration is shown below: set interfaces ge-0/0/1 unit 0 family ethernet-switching filter input TEST-Policer set firewall family ethernet-switching filter TEST-Policer term 1 from ip-source-address 10.1.1.0/24 set firewall family ethernet-switching filter TEST-Policer term 1 then accept set firewall family ethernet-switching filter TEST-Policer term 1 then policer TEST-Policer-Bandwidth set firewall policer TEST-Policer-Bandwidth if-exceeding bandwidth-limit 50k set firewall policer TEST-Policer-Bandwidth if-exceeding burst-size-limit 1500 set firewall policer TEST-Policer-Bandwidth then discard

Remediation

UNKNOWN
Release train: 18.2
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: Not specified
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 17.4
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 18.1
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 18.3
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 18.4
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 19.1
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 19.2
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 19.3
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 19.4
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 20.1
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 20.2
First fixed: Unknown
Vendor recommended: Not supplied

Evidence sources

Coverage varies by vendor, product, platform, and historical source availability. Absence of a finding is not a security guarantee. Validate critical remediation against the linked vendor advisory.

AllVuln data refreshed November 5, 2026.