CyberSecBulletin
CVE-2022-22162NVD status: Modified

Junos OS: Generation of Error Message Containing Sensitive Information

CVE-2022-22162 is a high-severity generation of error message containing sensitive information vulnerability in Junos OS from Juniper Networks, with a CVSS 3.1 base score of 7.8 out of 10. It can be exploited with local access to the system by an attacker with a low-privileged account, without any action from a user. The record lists versions 15.1R7-S11, 18.3R3-S6, 18.4R2-S9, 18.4R3-S10 as the first without the flaw, so updating Junos OS to one of those releases or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 0.25% chance of exploitation within 30 days, which is low compared with other CVEs.

Next patch cycle

High severity with no evidence of exploitation so far.

What to do

  1. Update Junos OS to 15.1R7-S11 or 18.3R3-S6 or 18.4R2-S9, 18.4R3-S10 or 19.1R2-S3, 19.1R3-S7, whichever matches your release line, or a later version.
  2. Update Junos to 15.1 or a later version.
  3. Read the advisory on kb.juniper.net for workarounds and exact fixed builds.

Affected products and versions

VendorProductAffected versionsFixed in
Juniper NetworksJunos OSbefore 15.1R7-S11; 18.3 up to, but not including, 18.3R3-S6; 18.4 up to, but not including, 18.4R2-S9, 18.4R3-S10; 19.1 up to, but not including, 19.1R2-S3, 19.1R3-S7; 19.2 up to, but not including, 19.2R1-S8, 19.2R3-S4; 19.3 up to, but not including, 19.3R3-S4; 19.4 up to, but not including, 19.4R3-S6; 20.1 up to, but not including, 20.1R3-S2; and 5 more ranges15.1R7-S11, 18.3R3-S6, 18.4R2-S9, 18.4R3-S10, 19.1R2-S3, 19.1R3-S7, 19.2R1-S8, 19.2R3-S4, 19.3R3-S4
Juniper NetworksJunosbefore 15.1; 15.1; 18.3; 18.4; 19.1; 19.2; 19.3; 19.4; and 6 more ranges15.1

Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.

How the severity score breaks down

Attack vector
LocalThe attacker needs local access or must trick a user into running something.
Attack complexity
LowNo special conditions are needed; the attack works reliably.
Privileges required
LowA basic user account is enough.
User interaction
NoneNo action by a victim is required.
Scope
UnchangedImpact stays within the vulnerable component.
Confidentiality
HighAll data handled by the component can be read.
Integrity
HighData or code can be modified at will.
Availability
HighThe component can be taken down completely.

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. Scored by NVD.

Scoring systemScoreSeverityScored by
CVSS 3.17.3HighCNA (juniper.net)
CVSS 3.17.8HighNVD
CVSS 2.06.9MediumNVD

Official description

A Generation of Error Message Containing Sensitive Information vulnerability in the CLI of Juniper Networks Junos OS allows a locally authenticated attacker with low privileges to elevate these to the level of any other user logged in via J-Web at this time, potential leading to a full compromise of the device. This issue affects Juniper Networks Junos OS: All versions prior to 15.1R7-S11; 18.3 versions prior to 18.3R3-S6; 18.4 versions prior to 18.4R2-S9, 18.4R3-S10; 19.1 versions prior to 19.1R2-S3, 19.1R3-S7; 19.2 versions prior to 19.2R1-S8, 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-S1; 21.1 versions prior to 21.1R2-S1, 21.1R3; 21.2 versions prior to 21.2R1-S1, 21.2R2.

Source: the CVE record as published by its numbering authority, via NVD and CVE.org.

The underlying weakness: Generation of Error Message Containing Sensitive Information

The product generates an error message that includes sensitive information about its environment, users, or associated data.

How developers prevent this class of flaw

  • Handle exceptions internally and do not display errors containing potentially sensitive information to a user.
  • Use naming conventions and strong types to make it easier to spot when sensitive data is being used. When creating structures, objects, or other complex entities, separate the sensitive and non-sensitive data as much as possible.
  • Debugging information should not make its way into a production release.

More Generation of Error Message Containing Sensitive Information vulnerabilities (CWE-209)

Timeline

  1. CVE record published.
  2. Record last changed materially (score, affected products, status or references).

References

Other vulnerabilities in Junos OS

All Junos OS vulnerabilities

Recent Generation of Error Message Containing Sensitive Information vulnerabilities

Spotted an error? Tell us.