CWE-321Weakness · CWE-321

CVE-2025-30095

CRITICAL · 9.0 CVSS v3.1 Published 2025-03-31
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
99/100
Remediation priority · Urgent
Remotely reachable No privileges Zero-click

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 · unedited
VyOS 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 confidence

The 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.

MitigationRemove 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.

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 checks

Work through these to decide whether this CVE applies to you.

  1. Verify Dropbear is installed and active
    Check 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
  2. Locate Dropbear host key files
    List 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.)
  3. Check if keys are identical across systems
    Compare 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
  4. Verify key generation timestamp
    Check 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
  5. Check for initramfs Dropbear keys if applicable
    If 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.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

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 · scoped
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Remove 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.

Recommended fix High confidence

VyOS 1.4.2 or later (latest 1.4.x/1.5.x stable release)

  1. 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
  2. If unable to upgrade immediately, remove existing Dropbear keys: rm -f /etc/dropbear/*key*
  3. Also remove initramfs Dropbear keys if present: rm -f /etc/dropbear-initramfs/*key*
  4. Regenerate new host keys: dropbearkey -t rsa -s 4096 -f /etc/dropbear_rsa_host_key
  5. 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.

Have this fixed Scoped from the published advisory
  • Consultation2.0 h
  • Implementation2.0 h
  • Testing1.0 h
  • Review / QA1.0 h
6.0 hours of engineering $1,090
Get help mitigating

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 locally
dbcve dependency scanner

Check 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 sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2025-30095 in production — separate from our analysis above.

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.

What this is

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.

What belongs here
  • 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