CVE-2025-30095 Details
Description
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.
A vulnerability exists in VyOS versions 1.3 through 1.5, as well as in any Debian-based system using Dropbear with live-build, where the same private host keys are used across different installations. This key reuse can lead to active man-in-the-middle attacks on SSH connections if Dropbear is enabled as the SSH daemon. While this is not the default for system SSH on VyOS, it is the default for the console service. In VyOS, the private keys are generated during the image build process and not regenerated on first boot, causing all systems deployed from the same image to use identical keys. An attacker could exploit this by intercepting and modifying traffic between the server and client, impersonating the server during the key exchange phase.
Users can update to VyOS 1.4.2 or the latest VyOS 1.5 release, both of which include the necessary fix. Alternatively, users can manually remove the pre-generated Dropbear keys and replace them with newly generated keys before using Dropbear as the SSH daemon.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Mar 31, 2025CISA-ADP
Assessed Mar 31, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://blog.vyos.io/vyos-project-march-2025-update | [email protected] | RemedyVendor |
| https://blog.vyos.io/vyos-stream-1.5-2025-q1 | [email protected] | Release NotesVendor |
| https://github.com/vyos/ | [email protected] | Vendor |
| https://vyos.dev/T7217 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://vyos.net/get/stream/#1.5-2025-Q1 | [email protected] | Vendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-321 | Use of Hard-coded Cryptographic Key | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| VyOS | >= 1.3, <= 1.5 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 11, 2025 | CVE Modified | [email protected] |
| Mar 31, 2025 | CVE Modified | [email protected] |
| Mar 31, 2025 | New CVE Received | [email protected] |
Volerion