CVE-2021-31386 Junos OS: When using J-Web with HTTP an attacker may retrieve encryption keys via Person-in-the-Middle attacks.

Medium 5.3 Published Updated

Remote attackers can retrieve encryption keys via Person-in-the-Middle attacks on J-Web HTTP, compromising network device security.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2021-31386?

CVE-2021-31386 is a medium-severity vulnerability in Juniper Junos, published on 19 Oct 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

A Protection Mechanism Failure vulnerability in the J-Web HTTP service of Juniper Networks Junos OS allows a remote unauthenticated attacker to perform Person-in-the-Middle (PitM) attacks against the device. This issue affects: Juniper Networks Junos OS 12.3 versions prior to 12.3R12-S20; 15.1 versions prior to 15.1R7-S11; 18.3 versions prior to 18.3R3-S6; 18.4 versions prior to 18.4R3-S10; 19.1 versions prior to 19.1R3-S7; 19.2 versions prior to 19.2R3-S4; 19.3 versions prior to 19.3R3-S4; 19.4 versions prior to 19.4R3-S6; 20.1 versions prior to 20.1R3-S2; 20.2 versions prior to 20.2R3-S3; 20.3 versions prior to 20.3R3-S1; 20.4 versions prior to 20.4R3; 21.1 versions prior to 21.1R3; 21.2 versions prior to 21.2R2.

Weakness: CWE-693, CWE-311, CWE-325, CWE-300

Which versions are affected by CVE-2021-31386?

It affects 1 product.

Products include Juniper Junos.

How do I fix CVE-2021-31386?

No fix has been published for CVE-2021-31386 yet. Limit exposure of the affected software until one is available.

Is CVE-2021-31386 being exploited?

There is no known exploitation of CVE-2021-31386 in the wild and no public exploit code.

All Juniper Junos vulnerabilities

Sources

Also known as GHSA-5cg5-qvwp-fmh7.

Is CVE-2021-31386 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free