CVEBrief

Home / Juniper Networks / Junos OS / CVE-2021-31382

CVE-2021-31382: is it exploited, and which versions of Juniper Networks Junos OS are affected and fixed?

CVE-2021-31382 is a race condition vulnerability in Juniper Networks Junos OS. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 17:09 UTC). Affected: Junos OS every 17.2 version, Junos OS from 17.3 before 17.3R3-S12, Junos OS from 17.4 before 17.4R3-S5 and 22 more (CVE record by juniper). Fixed in unspecified, 17.3R3-S12, 17.4R3-S5, 18.1R3-S13 and 2 more (CVE record by juniper). Severity: Medium (6.5, CVSS 3.1, from juniper).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 17:09 UTC, CVE record November 28, 2026, 20:10 UTC and NVD November 19, 2026, 07:54 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 17:09 UTC
Affected
Junos OS every 17.2 version, Junos OS from 17.3 before 17.3R3-S12, Junos OS from 17.4 before 17.4R3-S5 and 22 more
CVE record by juniper
Fixed in
unspecified, 17.3R3-S12, 17.4R3-S5, 18.1R3-S13 and 2 more
CVE record by juniper
Severity
Medium 6.5
CVSS 3.1 from juniper
Exploit odds (EPSS)
0.60% in 30 days
higher than 50% of CVEs; FIRST, December 3, 2026
Free for up to 3 items: a weekly email, and an alert the day CISA lists one as exploited. We email you once to confirm. More about the watch

What is CVE-2021-31382?

Junos OS: PTX1000 System, PTX10002-60C System: After upgrading, configured firewall filters may be applied on incorrect interfaces

On PTX1000 System, PTX10002-60C System, after upgrading to an affected release, a Race Condition vulnerability between the chassis daemon (chassisd) and firewall process (dfwd) of Juniper Networks Junos OS, may update the device's interfaces with incorrect firewall filters. This issue only occurs when upgrading the device to an affected version of Junos OS. Interfaces intended to have protections may have no protections assigned to them. Interfaces with one type of protection pattern may have alternate protections assigned to them. Interfaces intended to have no protections may have protections assigned to them. These firewall rule misassignments may allow genuine traffic intended to be stopped at the interface to propagate further, potentially causing disruptions in services by propagating unwanted traffic. An attacker may be able to take advantage of these misassignments. This issue affects Juniper Networks Junos OS on PTX1000 System: 17.2 versions 17.2R1 and later versions prior to 17.3 versions prior to 17.3R3-S12; 17.4 versions prior to 17.4R3-S5; 18.1 versions prior to 18.1R3-S13; 18.2 versions prior to 18.2R3-S8; 18.3 versions prior to 18.3R3-S5; 18.4 versions prior to 18.4R1-S8, 18.4R2-S8, 18.4R3-S8; 19.1 versions prior to 19.1R3-S5; 19.2 versions prior to 19.2R3-S2; 19.3 versions prior to 19.3R2-S6, 19.3R3-S3; 19.4 versions prior to 19.4R2-S4, 19.4R3-S3; 20.1 versions prior to 20.1R3; 20.2 versions prior to 20.2R2-S3, 20.2R3; 20.3 versions prior to 20.3R2-S1, 20.3R3; 20.4 versions prior to 20.4R1-S1, 20.4R2. This issue does not affect Juniper Networks Junos OS prior to version 17.2R1 on PTX1000 System. This issue affects Juniper Networks Junos OS on PTX10002-60C System: 18.2 versions 18.2R1 and later versions prior to 18.4 versions prior to 18.4R3-S9; 19.1 versions later than 19.1R1 prior to 19.4 versions prior to 19.4R2-S5, 19.4R3-S5; 20.1 versions prior to 20.1R3-S1; 20.2 versions prior to 20.2R3-S2; 20.3 versions prior to 20.3R3-S1; 20.4 versions 20.4R1 and later versions prior to 21.1 versions prior to 21.1R2; 21.2 versions 21.2R1 and later versions prior to 21.3 versions prior to 21.3R2. This issue does not affect Juniper Networks Junos OS prior to version 18.2R1 on PTX10002-60C System. This issue impacts all filter families (inet, inet6, etc.) and all loopback filters. It does not rely upon the location where a filter is set, impacting both logical and physical interfaces.

From the CVE record by juniper, last updated September 17, 2024, 01:05 UTC.

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
Juniper NetworksJunos OS
PTX1000 System
every 17.2 version
from 17.3 before 17.3R3-S12
from 17.4 before 17.4R3-S5
from 18.1 before 18.1R3-S13
from 18.2 before 18.2R3-S8
from 18.3 before 18.3R3-S5
from 18.4 before 18.4R1-S8, 18.4R2-S8, 18.4R3-S8
from 19.1 before 19.1R3-S5
from 19.2 before 19.2R3-S2
from 19.3 before 19.3R2-S6, 19.3R3-S3
from 19.4 before 19.4R2-S4, 19.4R3-S3
from 20.1 before 20.1R3
and 3 more ranges
unspecified, 17.3R3-S12, 17.4R3-S5, 18.1R3-S13, 18.2R3-S8, 18.3R3-S5, 18.4R1-S8, 18.4R2-S8, 18.4R3-S8, 19.1R3-S5, 19.2R3-S2, 19.3R2-S6, 19.3R3-S3, 19.4R2-S4, 19.4R3-S3, 20.1R3, 20.2R2-S3, 20.2R3, 20.3R2-S1, 20.3R3, 20.4R1-S1, 20.4R2
Juniper NetworksJunos OS
PTX10002-60C System
from 18.4 before 18.4R3-S9
every 19.1 version
from 19.4 before 19.4R2-S5, 19.4R3-S5
from 20.1 before 20.1R3-S1
from 20.2 before 20.2R3-S2
from 20.3 before 20.3R3-S1
every 20.4 version
from 21.1 before 21.1R2
every 21.2 version
from 21.3 before 21.3R2
18.4R3-S9, 19.4R2-S5, 19.4R3-S5, 20.1R3-S1, 20.2R3-S2, 20.3R3-S1, 21.1R2, 21.3R2, 18.2

As the CVE record by juniper states it, last updated September 17, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.

Which products and versions does the NVD list as affected?

VendorProductVersionsType
juniperjunos17.2operating system
juniperjunos17.2x75operating system
juniperjunos17.3operating system
juniperjunos17.4operating system
juniperjunos18.1operating system
juniperjunos18.2operating system
juniperjunos18.3operating system
juniperjunos18.4operating system
juniperjunos19.1operating system
juniperjunos19.2operating system
juniperjunos19.3operating system
juniperjunos19.4operating system
juniperjunos20.1operating system
juniperjunos20.2operating system
juniperjunos20.3operating system
juniperjunos20.4operating system
juniperjunos18.2x75operating system
juniperjunos18.2x75-d10operating system
juniperjunos18.2x75-d30operating system
juniperjunos21.1operating system
juniperjunos21.2operating system
juniperjunos21.3operating system

NVD analysis (status Modified), last modified June 17, 2026, 03:51 UTC.

How severe is CVE-2021-31382?

ScoreVersionVectorSource
Medium 6.5CVSS 3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:Ljuniper
Critical 9.0CVSS 3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:HNVD
Medium 6.8CVSS 2.0AV:N/AC:M/Au:N/C:P/I:P/A:PNVD

Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.

What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.

Is CVE-2021-31382 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
EPSS
0.60% probability of exploitation activity in the next 30 days, percentile 50.3 (FIRST EPSS, scores of December 3, 2026)

What kind of flaw is it?

How do I fix it? (from the CVE record)

The following software releases have been updated to resolve this specific issue: Junos OS on PTX1000 System: 17.3R3-S12, 18.1R3-S13, 18.2R3-S8, 18.3R3-S5, 18.4R1-S8, 18.4R2-S8, 18.4R3-S8, 19.1R3-S5, 19.2R3-S2, 19.3R2-S6, 19.3R3-S3, 19.4R2-S4, 19.4R3-S3, 20.1R3, 20.2R2-S3, 20.2R3, 20.3R2-S1, 20.3R3, 20.4R1-S1, 20.4R2, 21.1R1, and all subsequent releases. Junos OS on PTX10002-60C System: 18.4R3-S9, 19.4R2-S5, 19.4R3-S5, 20.1R3-S1, 20.2R3-S2, 20.3R3-S1, 21.1R2, 21.3R2, 21.4R1, and all subsequent releases.

Is there a workaround? (from the CVE record)

Restart the firewall daemon after the system has rebooted after the upgrade.

Where are the vendor advisories and references?

When was it published, and where is the official record?

Reserved
April 15, 2021
Published
October 19, 2021, 18:17 UTC
CVE record updated
September 17, 2024, 01:05 UTC by juniper
NVD
Modified, last modified June 17, 2026, 03:51 UTC
Last checked
CVE list November 28, 2026, 20:10 UTC; NVD November 19, 2026, 07:54 UTC; KEV December 3, 2026, 17:09 UTC; EPSS December 3, 2026
Official record
cve.org · NVD

What other CVEs affect Junos OS?

Every CVE in Junos OS

Questions about CVE-2021-31382

Is CVE-2021-31382 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 17:09 UTC. FIRST's EPSS gives it a 0.60% chance of exploitation activity in the next 30 days (scores of December 3, 2026).

Which versions of Juniper Networks Junos OS are affected by CVE-2021-31382?

Junos OS every 17.2 version, Junos OS from 17.3 before 17.3R3-S12, Junos OS from 17.4 before 17.4R3-S5, Junos OS from 18.1 before 18.1R3-S13, Junos OS from 18.2 before 18.2R3-S8, Junos OS from 18.3 before 18.3R3-S5 and 19 more, per the CVE record by juniper. The tables above give every range the sources list.

Which version fixes CVE-2021-31382?

unspecified, 17.3R3-S12, 17.4R3-S5, 18.1R3-S13, 18.2R3-S8 and 18.3R3-S5, per the CVE record by juniper. Check the vendor's advisory before you rely on it.

How severe is CVE-2021-31382?

Medium (6.5, CVSS 3.1, from juniper). The severity table above shows each score with its source.

Where is the official record of CVE-2021-31382?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.