# CVE-2024-30397: Junos OS: An invalid certificate causes a Denial of Service in the Internet Key Exchange (IKE) process

- Vendor: Juniper Networks, Junos OS
- Severity: HIGH (CVSS 4.0 8.7)
- Exploited (CISA KEV): not listed
- EPSS: 0.3% on 2026-12-02
- Public exploit: not checked
- Patch available: yes
- Vendor advisory: JSA79179, https://supportportal.juniper.net/JSA79179
- Published: 2024-04-10; updated: 2024-05-16
- Page: https://patchtonight.com/cve/CVE-2024-30397/

## Affected and fixed versions

| Affected | Fixed in |
| --- | --- |
| Junos OS 0 | 20.4R3-S10 or later |
| Junos OS 21.2 | 21.2R3-S7 or later |
| Junos OS 21.4 | 21.4R3-S5 or later |
| Junos OS 22.1 | 22.1R3-S4 or later |
| Junos OS 22.2 | 22.2R3-S3 or later |
| Junos OS 22.3 | 22.3R3-S1 or later |
| Junos OS 22.4 | 22.4R3 or later |
| Junos OS 23.2 | 23.2R1-S2, 23.2R2 or later |

## The vendor's description

An Improper Check for Unusual or Exceptional Conditions vulnerability in the the Public Key Infrastructure daemon (pkid) of Juniper Networks Junos OS allows an unauthenticated networked attacker to cause Denial of Service (DoS).

The pkid is responsible for the certificate verification. Upon a failed verification, the pkid uses all CPU resources and becomes unresponsive to future verification attempts. This means that all subsequent VPN negotiations depending on certificate verification will fail.

This CPU utilization of pkid can be checked using this command: 
  root@srx> show system processes extensive | match pkid
  xxxxx  root  103  0  846M  136M  CPU1  1 569:00 100.00% pkid

This issue affects:
Juniper Networks Junos OS
  *  All versions prior to 20.4R3-S10;
  *  21.2 versions prior to 21.2R3-S7;
  *  21.4 versions prior to 21.4R3-S5;
  *  22.1 versions prior to 22.1R3-S4;
  *  22.2 versions prior to 22.2R3-S3;
  *  22.3 versions prior to 22.3R3-S1;
  *  22.4 versions prior to 22.4R3;
  *  23.2 versions prior to 23.2R1-S2, 23.2R2.

## Workarounds

There are no known workarounds for this issue.

## Sources

- [Juniper Networks advisory](https://supportportal.juniper.net/JSA79179)

---

Data from PatchTonight (https://patchtonight.com), compiled from vendor advisories, CISA KEV and FIRST EPSS. Please credit PatchTonight and link to the CVE page when you use it.
