CVE-2025-59961
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedAn Incorrect Permission Assignment for Critical Resource vulnerability in the Juniper DHCP daemon (jdhcpd) of Juniper Networks Junos OS and Junos OS Evolved allows a local, low-privileged user to write to the Unix socket used to manage the jdhcpd process, resulting in complete control over the resource. This vulnerability allows any low-privileged user logged into the system to connect to the Unix socket and issue commands to manage the DHCP service, in essence, taking administrative control of the local DHCP server or DHCP relay. This issue affects: Junos OS: * all versions before 21.2R3-S10, * all versions of 22.2, * from 21.4 before 21.4R3-S12, * from 22.4 before 22.4R3-S8, * from 23.2 before 23.2R2-S5, * from 23.4 before 23.4R2-S6, * from 24.2 before 24.2R2-S2, * from 24.4 before 24.4R2, * from 25.2 before 25.2R1-S1, 25.2R2; Junos OS Evolved: * all versions before 22.4R3-S8-EVO, * from 23.2 before 23.2R2-S5-EVO, * from 23.4 before 23.4R2-S6-EVO, * from 24.2 before 24.2R2-S2-EVO, * from 24.4 before 24.4R2-EVO, * from 25.2 before 25.2R1-S1-EVO, 25.2R2-EVO.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceThe Juniper DHCP daemon (jdhcpd) uses a Unix socket for process management that has overly permissive file permissions, allowing any local low-privileged user to connect to this socket and issue administrative commands to control the DHCP service.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data< 21.2= 21.2= 21.4= 22.2= 22.4= 23.2= 23.4= 24.2= 24.4= 25.2< 22.4= 22.4= 23.2= 23.4= 24.2= 24.4= 25.2CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Local
- Complexity
- Low
- Privileges
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- High
- Availability
- None
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Verify jdhcpd is runningRun 'ps aux | grep jdhcpd' or check process status via 'show system processes jdhcpd' in Junos CLIAffected if jdhcpd daemon is active on the system
-
Locate the jdhcpd management socketOn Junos devices, check /var/run/jdhcpd/ or run 'ls -la /var/run/jdhcpd/*.sock' to find the Unix socket fileAffected if A Unix socket file exists for jdhcpd process management
-
Inspect socket file permissionsRun 'ls -la <socket_path>' to view permissions (e.g., chmod mode, owner/group). Look for world-writable (o+w) or overly permissive modes like 0777 or 0666.Affected if Socket permissions are world-writable (mode includes 'w' for others) or mode 0777/0666, allowing any local user to connect
-
Confirm Junos versionRun 'show version' in Junos CLI or check /var/os-release on Junos OS Evolved. Compare the installed version against the affected ranges: Junos <21.2, =21.2, =21.4, =22.2, =22.4, =23.2, =23.4, =24.2, =24.4, =25.2 or Junos OS Evolved <22.4, =22.4, =23.2, =23.4, =24.2, =24.4, =25.2Affected if The installed Junos or Junos OS Evolved version matches one listed in the affected versions
The system is affected if jdhcpd is running with a world-writable Unix socket AND the Junos version matches any of the listed vulnerable versions.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped21.222.4
Apply the appropriate Junos OS or Junos OS Evolved vendor patch from the advisory to remediate the incorrect socket permissions.
Upgrade to the fixed S-release or latest release for your branch (21.2R3-S10, 21.4R3-S12, 22.4R3-S8, 23.2R2-S5, 23.4R2-S6, 24.2R2-S2, 24.4R2, or 25.2R2 depending on your branch)
- 1. Identify the exact Junos OS or Junos OS Evolved version currently running using 'show version' command.
- 2. Based on the identified version, upgrade to one of the fixed releases: For 21.2 branch, upgrade to 21.2R3-S10 or later; For 21.4 branch, upgrade to 21.4R3-S12 or later; For 22.2 branch, upgrade to a later branch (22.4R3-S8 or later recommended); For 22.4 branch, upgrade to 22.4R3-S8 or later; For 23.2 branch, upgrade to 23.2R2-S5 or later; For 23.4 branch, upgrade to 23.4R2-S6 or later; For 24.
- 3. Download the appropriate upgrade image from the Juniper Networks support portal (supportportal.juniper.net).
- 4. Transfer the upgrade image to the device using FTP/SCP to the /var/tmp directory.
- 5. Verify the image integrity using 'request system software validate <image>' command.
- 6. Initiate the software upgrade using 'request system software add <image>' command.
- 7. After upgrade completes, reboot the device using 'request system reboot' command.
- 8. After reboot, verify the new version is running with 'show version' and confirm the DHCP daemon is operational with 'show dhcp server binding'.
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation4.0 h
- Testing2.0 h
- Review / QA1.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,560.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2025-59961 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2025-59961 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data