CVE-2021-31354
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 · uneditedAn Out Of Bounds (OOB) access vulnerability in the handling of responses by a Juniper Agile License (JAL) Client in Juniper Networks Junos OS and Junos OS Evolved, configured in Network Mode (to use Juniper Agile License Manager) may allow an attacker to cause a partial Denial of Service (DoS), or lead to remote code execution (RCE). The vulnerability exists in the packet parsing logic on the client that processes the response from the server using a custom protocol. An attacker with control of a JAL License Manager, or with access to the local broadcast domain, may be able to spoof a new JAL License Manager and/or craft a response to the Junos OS License Client, leading to exploitation of this vulnerability. This issue only affects Junos systems configured in Network Mode. Systems that are configured in Standalone Mode (the default mode of operation for all systems) are not vulnerable to this issue. This issue affects: Juniper Networks Junos OS: 19.2 versions prior to 19.2R3-S3; 19.3 versions prior to 19.3R3-S3; 20.1 versions prior to 20.1R2-S2, 20.1R3-S1; 20.2 versions prior to 20.2R3-S2; 20.3 versions prior to 20.3R3; 20.4 versions prior to 20.4R3; 21.1 versions prior to 21.1R2. Juniper Networks Junos OS Evolved: version 20.1R1-EVO and later versions, prior to 21.2R2-EVO. This issue does not affect Juniper Networks Junos OS versions prior to 19.2R1.
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 · high confidenceAn Out Of Bounds (OOB) access vulnerability exists in the Juniper Agile License (JAL) Client packet parsing logic when processing responses from a JAL License Manager server using a custom protocol. An attacker with control of a JAL License Manager or access to the local broadcast domain can craft malicious responses that trigger the OOB access, potentially causing DoS or achieving remote code execution. Only systems configured in Network Mode are affected; Standalone Mode (the default) is not vulnerable.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
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= 19.2= 19.3= 20.1= 20.2= 20.3= 20.4= 21.1= 20.1= 20.2= 20.3= 20.4= 21.1= 21.2CVSS 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
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Check Junos versionExecute 'show version' or 'show version detail' on the device CLI to obtain the installed Junos versionAffected if The version matches one of the affected releases: 19.2, 19.3, 20.1, 20.2, 20.3, 20.4, 21.1 for Junos; or 20.1, 20.2, 20.3, 20.4, 21.1, 21.2 for Junos OS Evolved
-
Verify JAL mode configurationExecute 'show system license' or 'show configuration system license' to determine if the Juniper Agile License client is configured in Network Mode or Standalone ModeAffected if The JAL client is configured in Network Mode (not Standalone Mode) - only Network Mode is vulnerable
-
Confirm JAL License Manager statusReview the license manager configuration to determine if a remote JAL License Manager server is configured, which is required for Network Mode operationAffected if A remote JAL License Manager server is defined in the configuration, indicating Network Mode is active
The device is affected if it runs an affected Junos version AND has JAL configured in Network Mode; the default Standalone Mode configuration is not vulnerable.
Generated from the published advisory. Verify against your own configuration.
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 · scopedEnsure Junos devices are operating in Standalone Mode (the default), or apply the vendor-provided patches to the specific affected versions listed in the advisory. If Network Mode is required, ensure the JAL License Manager is on a trusted network segment and consider network segmentation to prevent spoofing attacks.
Junos OS: 19.2R3-S3, 19.3R3-S3, 20.1R3-S1, 20.2R3-S2, 20.3R3, 20.4R3, or 21.1R2+; Junos OS Evolved: 21.2R2-EVO+
- 1. Verify current Junos OS/Junos OS Evolved version with 'show version' command
- 2. Determine if the system is configured in Network Mode (using Juniper Agile License Manager) with 'show system license' or 'show configuration | display set | match license'
- 3. If in Network Mode, plan upgrade to fixed release: Junos OS 19.2R3-S3+, 19.3R3-S3+, 20.1R3-S1+, 20.2R3-S2+, 20.3R3+, 20.4R3+, or 21.1R2+; Junos OS Evolved to 21.2R2-EVO or later
- 4. Alternatively, if Network Mode is not required, switch to Standalone Mode (default) which is not vulnerable - remove Network Mode configuration with 'delete system license network-mode' and commit
- 5. After upgrade or config change, verify the fix with 'show version' and confirm Network Mode is disabled or system is on fixed version
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation6.0 h
- Implementation12.0 h
- Testing8.0 h
- Review / QA4.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $8,448.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2021-31354 — 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 sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2021-31354 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
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.
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.
- 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