CVE-2021-0243

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

4.7 medium EPSS 0.39%

Published 22 Apr 2021 Updated 17 Sep 2024 CNA: juniper

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.

Severity (CVSS)

4.7 medium CVSS 3.1 from juniper (CNA)
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L
Attack vector
adjacent: the attacker has to be on the same local network or link
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Scope
changed: the damage reaches other components, such as the host of a container or other users
Impact
confidentiality none, integrity none, availability low: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.39%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 24.7% of all scored CVEs. Scores of 29 Nov 2026.

Weakness

  • CWE-241 Improper Handling of Unexpected Data Type

Affected products

As the CNA lists them.

ProductVersions
Junos OS
affected before 17.3R3-S10
affected from 17.4, before 17.4R3-S3
affected from 18.1, before 18.1R3-S11
affected from 18.2, before 18.2R3-S6
affected from 18.3, before 18.3R3-S4
affected from 18.4, before 18.4R3-S6
affected from 19.1, before 19.1R3-S3
affected from 19.2, before 19.2R3-S1
affected from 19.3, before 19.3R3-S1
affected from 19.4, before 19.4R3
affected from 20.1, before 20.1R2
affected from 20.2, before 20.2R2

Is my server affected?

This CVE is in Junos OS of Juniper Networks, which Linux distributions and language package managers do not ship. The advisory of the vendor is in the references below.

Vulnpocalypse matches the package lists of Linux servers and containers against the Trivy vulnerability database, which does not list this product.

References

Other references

Source: the record CVE-2021-0243 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.