JunosOperating system · Juniper

CVE-2021-31363

MEDIUM · 6.5 CVSS v3.1 Published 2021-10-19
Patch available
A vendor patch is available. No clean upgrade release — apply the published patch.
See remediation →
70/100
Remediation priority · Elevated
No privileges Zero-click Patch available

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
In an MPLS P2MP environment a Loop with Unreachable Exit Condition vulnerability in the routing protocol daemon (RPD) of Juniper Networks Junos OS and Junos OS Evolved allows an unauthenticated adjacent attacker to cause high load on RPD which in turn may lead to routing protocol flaps. If a system with sensor-based-stats enabled receives a specific LDP FEC this can lead to the above condition. Continued receipted of such an LDP FEC will create a sustained Denial of Service (DoS) condition. This issue affects: Juniper Networks Junos OS 19.2 version 19.2R2 and later versions prior to 19.2R3-S3; 19.3 versions prior to 19.3R2-S6, 19.3R3-S2; 19.4 versions prior to 19.4R1-S4, 19.4R2-S4, 19.4R3-S2; 20.1 versions prior to 20.1R2-S1, 20.1R3; 20.2 versions prior to 20.2R2-S1, 20.2R3; 20.3 versions prior to 20.3R1-S2, 20.3R2. This issue does not affect Juniper Networks Junos OS versions prior to 19.2R2. Juniper Networks Junos OS Evolved All versions prior to 20.1R2-S3-EVO; 20.3 versions prior to 20.3R1-S2-EVO.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis
How this class of weakness works · CWE-835

Crafted input drives a loop whose exit condition is never satisfied, hanging the thread and starving the service of the resource it occupies. A single request can be enough to take a worker down. Remediation is bounding iteration counts and validating the conditions that are supposed to terminate the loop.

General guidance for the infinite loop class — the official description and references above are authoritative for this specific CVE. Want a bespoke review and a reviewed fix? Ask our team →

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
JunosOperating system
Affected:= 19.2= 19.3= 19.4= 20.1= 20.2= 20.3
Junos Os EvolvedOperating system
Affected:= 20.1= 20.2= 20.3

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Adjacent
Complexity
Low
Privileges
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Patch available Apply the vendor patch
Vendor patch kb.juniper.net →
Recommended fix High confidence

Upgrade to 19.2R3-S3+ / 19.3R3-S2+ / 19.4R3-S2+ / 20.1R3+ / 20.2R3+ / 20.3R2+ (or respective Sx maintenance releases) depending on current branch; for Evolved: 20.1R2-S3-EVO+ / 20.3R1-S2-EVO+

  1. 1. Identify the current Junos OS or Junos OS Evolved version using 'show version' command
  2. 2. Based on your current version line, upgrade to one of the fixed releases: for 19.2 branch upgrade to 19.2R3-S3 or later; for 19.3 branch upgrade to 19.3R3-S2 or later; for 19.4 branch upgrade to 19.4R3-S2 or later; for 20.1 branch upgrade to 20.1R3 or later; for 20.2 branch upgrade to 20.2R3 or later; for 20.3 branch upgrade to 20.3R2 or later; for Junos OS Evolved 20.1 upgrade to 20.1R2-S3-EVO
  3. 3. Before upgrading, review the Junos OS upgrade guide and ensure the target version is compatible with your hardware platform
  4. 4. Download the appropriate Junos upgrade package from Juniper Networks and transfer to the device
  5. 5. Perform the upgrade using 'request system software add <package>' command
  6. 6. After upgrade, verify the RPD process is running normally using 'show routing-engine' and confirm the new version with 'show version'
Caveat Review Juniper release notes for any behavior changes between versions; some maintenance upgrades may require specific hardware compatibility checks

Generated from the published advisory — verify against the referenced sources before acting.

We can apply and verify the patch for your build — typical engagement from $1,600. Get the patch applied

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2021-31363 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2021-31363 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data