Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2018-0021

HIGH 8.8EPSS 43%

Junos OS: Short MacSec keys may allow man-in-the-middle attacks.

Mitigation

  • Upgrade Junos OS to 17.1R2 or later.
  • Vendor workaround: Configure all 64 digits of a CKN.
  • Configure all 32 digits of a CAK.
  • See the junos task topic macsec for further information.

Who should check

  • Anyone running Juniper Networks Junos OS >= 14.1, < 14.1R10, 14.1R9; >= 14.1X53, < 14.1X53-D47; >= 15.1, < 15.1R4-S9, 15.1R6-S6, 15.1R7; >= 15.1X49, < 15.1X49-D100; >= 15.1X53, < 15.1X53-D59; >= 16.1, < 16.1R3-S8, 16.1R4-S8, 16.1R5; >= 16.2, < 16.2R1-S6, 16.2R2; >= 17.1, < 17.1R2

Vulnerability facts

Affected
Juniper Networks Junos OS >= 14.1, < 14.1R10, 14.1R9; >= 14.1X53, < 14.1X53-D47; >= 15.1, < 15.1R4-S9, 15.1R6-S6, 15.1R7; >= 15.1X49, < 15.1X49-D100; >= 15.1X53, < 15.1X53-D59; >= 16.1, < 16.1R3-S8, 16.1R4-S8, 16.1R5; >= 16.2, < 16.2R1-S6, 16.2R2; >= 17.1, < 17.1R2
Fixed in
Juniper Networks Junos OS 14.1R10, Juniper Networks Junos OS 14.1X53-D47, Juniper Networks Junos OS 15.1R4-S9, Juniper Networks Junos OS 15.1X49-D100, Juniper Networks Junos OS 15.1X53-D59, Juniper Networks Junos OS 16.1R3-S8, Juniper Networks Junos OS 16.2R1-S6, Juniper Networks Junos OS 17.1R2
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
8.8 (v3.0, CNA)CVSS:3.0/AV:A/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Adjacent network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: Required
  • Scope: Changed (impact reaches other components)
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
0.60% chance of exploitation in 30 days (percentile 43, 2026-11-26)
Published
Modified

Description

If all 64 digits of the connectivity association name (CKN) key or all 32 digits of the connectivity association key (CAK) key are not configured, all remaining digits will be auto-configured to 0. Hence, Juniper devices configured with short MacSec keys are at risk to an increased likelihood that an attacker will discover the secret passphrases configured for these keys through dictionary-based and brute-force-based attacks using spoofed packets. Affected releases are Juniper Networks Junos OS: 14.1 versions prior to 14.1R10, 14.1R9; 14.1X53 versions prior to 14.1X53-D47; 15.1 versions prior to 15.1R4-S9, 15.1R6-S6, 15.1R7; 15.1X49 versions prior to 15.1X49-D100; 15.1X53 versions prior to 15.1X53-D59; 16.1 versions prior to 16.1R3-S8, 16.1R4-S8, 16.1R5; 16.2 versions prior to 16.2R1-S6, 16.2R2; 17.1 versions prior to 17.1R2.

Affected and fixed versions

Package / productAffectedFixedSource
Juniper Networks Junos OS>= 14.1, < 14.1R10, 14.1R9; >= 14.1X53, < 14.1X53-D47; >= 15.1, < 15.1R4-S9, 15.1R6-S6, 15.1R7; >= 15.1X49, < 15.1X49-D100; >= 15.1X53, < 15.1X53-D59; >= 16.1, < 16.1R3-S8, 16.1R4-S8, 16.1R5; >= 16.2, < 16.2R1-S6, 16.2R2; >= 17.1, < 17.1R2—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2018-0021. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2018-0021.md
Affected: Juniper Networks Junos OS >= 14.1, < 14.1R10, 14.1R9; >= 14.1X53, < 14.1X53-D47; >= 15.1, < 15.1R4-S9, 15.1R6-S6, 15.1R7; >= 15.1X49, < 15.1X49-D100; >= 15.1X53, < 15.1X53-D59; >= 16.1, < 16.1R3-S8, 16.1R4-S8, 16.1R5; >= 16.2, < 16.2R1-S6, 16.2R2; >= 17.1, < 17.1R2
Fixed in: Juniper Networks Junos OS 14.1R10, Juniper Networks Junos OS 14.1X53-D47, Juniper Networks Junos OS 15.1R4-S9, Juniper Networks Junos OS 15.1X49-D100, Juniper Networks Junos OS 15.1X53-D59, Juniper Networks Junos OS 16.1R3-S8, Juniper Networks Junos OS 16.2R1-S6, Juniper Networks Junos OS 17.1R2

Steps:
1. Search this machine and project for Juniper Networks Junos OS: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2018-0021 being exploited?

There is no confirmed exploitation: CVE-2018-0021 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.60% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2018-0021?

High: CVSS 8.8 (v3.0, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

Which versions are affected by CVE-2018-0021?

Juniper Networks Junos OS >= 14.1, < 14.1R10, 14.1R9; >= 14.1X53, < 14.1X53-D47; >= 15.1, < 15.1R4-S9, 15.1R6-S6, 15.1R7; >= 15.1X49, < 15.1X49-D100; >= 15.1X53, < 15.1X53-D59; >= 16.1, < 16.1R3-S8, 16.1R4-S8, 16.1R5; >= 16.2, < 16.2R1-S6, 16.2R2; >= 17.1, < 17.1R2.

Is there a fix for CVE-2018-0021?

Yes. Fixed in Juniper Networks Junos OS 14.1R10, Juniper Networks Junos OS 14.1X53-D47, Juniper Networks Junos OS 15.1R4-S9, Juniper Networks Junos OS 15.1X49-D100, Juniper Networks Junos OS 15.1X53-D59, Juniper Networks Junos OS 16.1R3-S8, Juniper Networks Junos OS 16.2R1-S6, Juniper Networks Junos OS 17.1R2. Upgrade Junos OS to 17.1R2 or later. Vendor workaround: Configure all 64 digits of a CKN. Configure all 32 digits of a CAK. See the junos task topic macsec for further information.

How do I check if I'm affected by CVE-2018-0021?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors