CVE-2022-22240

Junos OS and Junos OS Evolved: An rpd memory leak might be observed while running a specific cli command in a RIB sharding scenario

5.5 medium EPSS 0.21%

Published 18 Oct 2022 Updated 9 May 2025 CNA: juniper

Description

An Allocation of Resources Without Limits or Throttling and a Missing Release of Memory after Effective Lifetime vulnerability in the routing protocol daemon (rpd) of Juniper Networks Junos OS and Junos OS Evolved allows a locally authenticated low privileged attacker to cause a Denial of Sevice (DoS). In a high-scaled BGP routing environment with rib-sharding enabled, two issues may occur when executing a specific CLI command. One is a memory leak issue with rpd where the leak rate is not constant, and the other is a temporary spike in rpd memory usage during command execution. This issue affects: Juniper Networks Junos OS 19.4 versions prior to 19.4R3-S9; 20.2 versions prior to 20.2R3-S5; 20.3 versions prior to 20.3R3-S2; 20.4 versions prior to 20.4R3-S1; 21.1 versions prior to 21.1R3; 21.2 versions prior to 21.2R1-S2, 21.2R2-S1, 21.2R3; 21.3 versions prior to 21.3R2. Juniper Networks Junos OS Evolved All versions prior to 20.4R3-S1-EVO; 21.1-EVO version 21.1R1-EVO and later versions; 21.2-EVO versions prior to 21.2R1-S2-EVO, 21.2R3-EVO; 21.3-EVO versions prior to 21.3R2-EVO. This issue does not affect Juniper Networks Junos OS versions prior to 19.2R1.

Severity (CVSS)

5.5 medium CVSS 3.1 from juniper (CNA)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 12.2% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 9 May 2025):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Weakness

  • CWE-401 Missing Release of Memory after Effective Lifetime
  • CWE-770 Allocation of Resources Without Limits or Throttling

Affected products

As the CNA lists them.

ProductVersions
Junos OS
unaffected before 19.2R1
affected from 19.4, before 19.4R3-S9
affected from 20.2, before 20.2R3-S5
affected from 20.3, before 20.3R3-S2
affected from 20.4, before 20.4R3-S1
affected from 21.1, before 21.1R3
affected from 21.2, before 21.2R1-S2, 21.2R2-S1, 21.2R3
affected from 21.3, before 21.3R2
Junos OS Evolved
affected before 20.4R3-S1-EVO
affected from 21.1R1-EVO, before 21.1-EVO*
affected from 21.2-EVO, before 21.2R1-S2-EVO, 21.2R3-EVO
affected from 21.3-EVO, before 21.3R2-EVO

Is my server affected?

This CVE is in Junos OS of Juniper Networks, which Linux distributions and language package managers do not ship. The advisory of the vendor is in the references below.

Vulnpocalypse matches the package lists of Linux servers and containers against the Trivy vulnerability database, which does not list this product.

References

Other references

Source: the record CVE-2022-22240 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.