CVE-2025-30095CWE-321

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…

Critical · published March 31, 2025

CVSS v3.1
9.0
EPSS
0%
Percentile
41.5
In the wild
Unconfirmed
What it is

🚨 An alarming quirk in Dropbear lets different systems share the same private host keys! This is a security disaster waiting to happen if attackers aim to intercept your SSH connections. 🔥 Think of it like a restaurant where multiple chefs use the same secret ingredient for their dishes, creating a situation where anyone can impersonate another chef and ruin the meals. This vulnerability means anyone with access could listen in on private conversations between servers, just like a snoopy diner eavesdropping on kitchen gossip! If an attacker exploits this vulnerability, they could seamlessly execute active man-in-the-middle attacks, intercepting and potentially altering your SSH connections. Imagine them lurking in the shadows, stealing sensitive data or injecting malicious commands as if they were part of your system! The ramifications could lead to significant data breaches or system integrity loss, so it's absolutely critical to act now.

Put simply

Think of it like a restaurant where multiple chefs use the same secret ingredient for their dishes, creating a situation where anyone can impersonate another chef and ruin the meals. This vulnerability means anyone with access could listen in on private conversations between servers, just like a snoopy diner eavesdropping on kitchen gossip! This vulnerability arises when VyOS versions 1.3 to 1.5 (and other Debian-based systems) use the same Dropbear private host keys across installations. Attackers can exploit this flaw to intercept SSH connections when Dropbear is enabled as the SSH daemon, particularly in non-default configurations.

What to do

If an attacker exploits this vulnerability, they could seamlessly execute active man-in-the-middle attacks, intercepting and potentially altering your SSH connections. Imagine them lurking in the shadows, stealing sensitive data or injecting malicious commands as if they were part of your system! The ramifications could lead to significant data breaches or system integrity loss, so it's absolutely critical to act now. To mitigate this risk, immediately remove the existing Dropbear keys with: `rm -f /etc/dropbear/*key*` and `rm -f /etc/dropbear-initramfs/*key*`. Then, generate new keys by running `dropbearkey -t rsa -s 4096 -f /etc/dropbear_rsa_host_key` and reload the Dropbear service or reboot your system. Alternatively, update to VyOS version 1.4.2 or later to avoid this issue altogether. You've got this! Follow these steps to boost your system's defenses and keep those SSH connections safe! 🛡️

The record
Technical detail
CVSS v3.1
9.0 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00494 · 41.5th percentile
Weakness
CWE-321 · Use of Hard-coded Cryptographic Key
Published
2025-03-31T00:00Z
EPSS history
Timeline
  • 31 MAR 00:00Z
    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…
    cvelistv5