CVE-2025-30095
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 · uneditedVyOS 1.3 through 1.5 (fixed in 1.4.2) or any Debian-based system using dropbear in combination with live-build has the same Dropbear private host keys across different installations. Thus, an attacker can conduct active man-in-the-middle attacks against SSH connections if Dropbear is enabled as the SSH daemon. I n VyOS, this is not the default configuration for the system SSH daemon, but is for the console service. To mitigate this, one can run "rm -f /etc/dropbear/*key*" and/or "rm -f /etc/dropbear-initramfs/*key*" and then dropbearkey -t rsa -s 4096 -f /etc/dropbear_rsa_host_key and reload the service or reboot the system before using Dropbear as the SSH daemon (this clears out all keys mistakenly built into the release image) or update to the latest version of VyOS 1.4 or 1.5. Note that this vulnerability is not unique to VyOS and may appear in any Debian-based Linux distribution that uses Dropbear in combination with live-build, which has a safeguard against this behavior in OpenSSH but no equivalent one for Dropbear.
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 live-build process embeds pre-generated Dropbear SSH host keys into system images, causing all installations to share identical private keys. This allows an attacker with network access to perform active MITM attacks by using the known private key to intercept and decrypt SSH sessions.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS 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
- Network
- Complexity
- High
- Privileges
- None
- User interaction
- None
- Scope
- Changed
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
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 Dropbear is installed and activeCheck for running Dropbear SSH daemon process: 'ps aux | grep dropbear' or check if port 22 is listening with 'ss -tlnp | grep :22'Affected if Dropbear is running as the SSH daemon on the system
-
Locate Dropbear host key filesList contents of /etc/dropbear/ directory: 'ls -la /etc/dropbear/'Affected if Host key files exist in /etc/dropbear/ (e.g., dropbear_rsa_host_key, dropbear_ecdsa_host_key, etc.)
-
Check if keys are identical across systemsCompare the SHA256 hash of host keys against known default values or check if multiple systems from the same image share identical key fingerprints: 'sha256sum /etc/dropbear/*_host_key'Affected if The host keys match known default values from the original image or are identical across different installations from the same image
-
Verify key generation timestampCheck file creation/modification timestamps on host keys: 'stat /etc/dropbear/*_host_key'Affected if Keys show a timestamp matching the original image build date rather than a unique per-installation generation time
-
Check for initramfs Dropbear keys if applicableIf used, examine /etc/dropbear-initramfs/ for host keys: 'ls -la /etc/dropbear-initramfs/'Affected if Pre-generated keys also exist in the initramfs directory
The system is affected if Dropbear is enabled and using host keys that are identical to the default keys shipped with the installation image (i.e., not uniquely generated per installation).
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 · scopedRemove existing dropbear keys with 'rm -f /etc/dropbear/*key*' and regenerate them using 'dropbearkey -t rsa -s 4096 -f /etc/dropbear_rsa_host_key', then restart the service, or update to VyOS 1.4.2+/latest.
VyOS 1.4.2 or later (latest 1.4.x/1.5.x stable release)
- Upgrade to VyOS 1.4.2 or later, or the latest stable release of VyOS 1.4.x or 1.5.x which includes the fix for the hardcoded Dropbear host keys
- If unable to upgrade immediately, remove existing Dropbear keys: rm -f /etc/dropbear/*key*
- Also remove initramfs Dropbear keys if present: rm -f /etc/dropbear-initramfs/*key*
- Regenerate new host keys: dropbearkey -t rsa -s 4096 -f /etc/dropbear_rsa_host_key
- Reload the Dropbear service or reboot the system before using Dropbear as the SSH daemon
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation2.0 h
- Testing1.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 $1,744.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2025-30095 — 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-30095 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