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

CVE-2024-21591

CRITICAL 9.8PoCEPSS 82%

Junos OS: SRX Series and EX Series: Security Vulnerability in J-web allows a preAuth Remote Code Execution

Mitigation

  • Vendor workaround: Disable J-Web, or limit access to only trusted hosts.

Who should check

  • Anyone running Juniper Networks Junos OS < 20.4R3-S9; >= 21.2, < 21.2R3-S7; >= 21.3, < 21.3R3-S5; >= 21.4, < 21.4R3-S5; >= 22.1, < 22.1R3-S4; >= 22.2, < 22.2R3-S3; >= 22.3, < 22.3R3-S2; >= 22.4, < 22.4R2-S2, 22.4R3

Vulnerability facts

Affected
Juniper Networks Junos OS < 20.4R3-S9; >= 21.2, < 21.2R3-S7; >= 21.3, < 21.3R3-S5; >= 21.4, < 21.4R3-S5; >= 22.1, < 22.1R3-S4; >= 22.2, < 22.2R3-S3; >= 22.3, < 22.3R3-S2; >= 22.4, < 22.4R2-S2, 22.4R3
Fixed in
Juniper Networks Junos OS 20.4R3-S9, Juniper Networks Junos OS 21.2R3-S7, Juniper Networks Junos OS 21.3R3-S5, Juniper Networks Junos OS 21.4R3-S5, Juniper Networks Junos OS 22.1R3-S4, Juniper Networks Junos OS 22.2R3-S3, Juniper Networks Junos OS 22.3R3-S2, Juniper Networks Junos OS 22.4R2-S2
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
Yes: see the exploit references below
Remote exploitation
Remote, no login needed
CVSS
9.8 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
2.02% chance of exploitation in 30 days (percentile 82, 2026-11-26)
CWE
CWE-787
Published
Modified

Description

An Out-of-bounds Write vulnerability in J-Web of Juniper Networks Junos OS on SRX Series and EX Series allows an unauthenticated, network-based attacker to cause a Denial of Service (DoS), or Remote Code Execution (RCE) and obtain root privileges on the device. This issue is caused by use of an insecure function allowing an attacker to overwrite arbitrary memory. This issue affects Juniper Networks Junos OS SRX Series and EX Series: * Junos OS versions earlier than 20.4R3-S9; * Junos OS 21.2 versions earlier than 21.2R3-S7; * Junos OS 21.3 versions earlier than 21.3R3-S5; * Junos OS 21.4 versions earlier than 21.4R3-S5; * Junos OS 22.1 versions earlier than 22.1R3-S4; * Junos OS 22.2 versions earlier than 22.2R3-S3; * Junos OS 22.3 versions earlier than 22.3R3-S2; * Junos OS 22.4 versions earlier than 22.4R2-S2, 22.4R3.

Affected and fixed versions

Package / productAffectedFixedSource
Juniper Networks Junos OS< 20.4R3-S9; >= 21.2, < 21.2R3-S7; >= 21.3, < 21.3R3-S5; >= 21.4, < 21.4R3-S5; >= 22.1, < 22.1R3-S4; >= 22.2, < 22.2R3-S3; >= 22.3, < 22.3R3-S2; >= 22.4, < 22.4R2-S2, 22.4R3—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-2024-21591. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-21591.md
Affected: Juniper Networks Junos OS < 20.4R3-S9; >= 21.2, < 21.2R3-S7; >= 21.3, < 21.3R3-S5; >= 21.4, < 21.4R3-S5; >= 22.1, < 22.1R3-S4; >= 22.2, < 22.2R3-S3; >= 22.3, < 22.3R3-S2; >= 22.4, < 22.4R2-S2, 22.4R3
Fixed in: Juniper Networks Junos OS 20.4R3-S9, Juniper Networks Junos OS 21.2R3-S7, Juniper Networks Junos OS 21.3R3-S5, Juniper Networks Junos OS 21.4R3-S5, Juniper Networks Junos OS 22.1R3-S4, Juniper Networks Junos OS 22.2R3-S3, Juniper Networks Junos OS 22.3R3-S2, Juniper Networks Junos OS 22.4R2-S2

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-2024-21591 being exploited?

There is no confirmed exploitation: CVE-2024-21591 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 2.02% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2024-21591?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2024-21591?

Juniper Networks Junos OS < 20.4R3-S9; >= 21.2, < 21.2R3-S7; >= 21.3, < 21.3R3-S5; >= 21.4, < 21.4R3-S5; >= 22.1, < 22.1R3-S4; >= 22.2, < 22.2R3-S3; >= 22.3, < 22.3R3-S2; >= 22.4, < 22.4R2-S2, 22.4R3.

Is there a fix for CVE-2024-21591?

Yes. Fixed in Juniper Networks Junos OS 20.4R3-S9, Juniper Networks Junos OS 21.2R3-S7, Juniper Networks Junos OS 21.3R3-S5, Juniper Networks Junos OS 21.4R3-S5, Juniper Networks Junos OS 22.1R3-S4, Juniper Networks Junos OS 22.2R3-S3, Juniper Networks Junos OS 22.3R3-S2, Juniper Networks Junos OS 22.4R2-S2. Vendor workaround: Disable J-Web, or limit access to only trusted hosts.

How do I check if I'm affected by CVE-2024-21591?

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