CVE-2025-21591
Junos OS: An unauthenticated adjacent attacker sending a malformed DHCP packet causes jdhcpd to crash
Check your servers for CVE-2025-21591
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-21591 affects jdhcpd, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
A Buffer Access with Incorrect Length Value vulnerability in the jdhcpd daemon of Juniper Networks Junos OS, when DHCP snooping is enabled, allows an unauthenticated, adjacent, attacker to send a DHCP packet with a malformed DHCP option to cause jdhcp to crash creating a Denial of Service (DoS) condition.
Continuous receipt of these DHCP packets using the malformed DHCP Option will create a sustained Denial of Service (DoS) condition.
This issue affects Junos OS:
* from 23.1 before 23.2R2-S3, * from 23.4 before 23.4R2-S3, * from 24.2 before 24.2R2.
This issue isn't applicable to any versions of Junos OS before 23.1R1.
This issue doesn't affect vSRX Series which doesn't support DHCP Snooping.
This issue doesn't affect Junos OS Evolved.
There are no indicators of compromise for this issue.
Severity (CVSS)
CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:L/AU:Y/R:U/V:C/RE:M/U:Green
- Attack vector
- adjacent: the attacker has to be on the same local network or link
- Attack complexity
- low: an attack works without special conditions
- Attack requirements
- none: an attack works without special conditions on the target
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Impact on the vulnerable system
- confidentiality none, integrity none, availability high: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality none, integrity none, availability low: what an attacker can read, change or stop beyond it
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H
- Attack vector
- adjacent: the attacker has to be on the same local network or link
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- changed: the damage reaches other components, such as the host of a container or other users
- Impact
- confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.34%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 29.9% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 10 Apr 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-805 Buffer Access with Incorrect Length Value
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
Junos OS
package
jdhcpd |
affected from 23.1, before 23.2R2-S3 affected from 23.4, before 23.4R2-S3 affected from 24.2, before 24.2R2 unaffected up to and including 23.1R1
Other versions: unaffected
|
Is my server affected?
Find the installed version of jdhcpd and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i jdhcpd
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2025-21591 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2025-21591RHEL, Rocky, Alma, Fedora
rpm -q jdhcpd
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2025-21591Alpine
apk list --installed | grep -i jdhcpdWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-21591
trivy image --scanners vuln IMAGE | grep CVE-2025-21591
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- https://supportportal.juniper.net/JSA96448 supportportal.juniper.net · vendor advisory
Source: the record CVE-2025-21591 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.
Vulnpocalypse