Engineer working on a laptop connected to a device test rig, surrounded by wiring harnesses and test hardware

Firmware vulnerabilities & fixes

Dropbear SSH vulnerabilities in embedded firmware: identify, prioritise and fix

Last updated:

The Dropbear CVEs that matter in embedded firmware are the ones your build compiles in and exposes: the Terrapin protocol flaw (CVE-2023-48795) on images from 2020.79 to before 2024.84 that offer chacha20-poly1305, the unix-socket forwarding root escalation CVE-2025-14282 in 2024.84 to 2025.88, and old server memory bugs such as CVE-2016-7406 and CVE-2017-9078 on long-unpatched devices.

Find the version from the SSH banner or binary strings, check the compile-time options, then upgrade, remove weak algorithms and restrict where the SSH port listens.

Key takeaways

  • Two properties shape how its CVEs behave in firmware.
  • The project's CHANGES file is the primary record: each release lists its security fixes, usually with the CVE ID.
  • For Dropbear the scope is narrower than for OpenSSH.
  • Start with the version, then the options.

Why is Dropbear in so many firmware images?

Dropbear is a small SSH server and client (dropbear, dbclient, dropbearkey, dropbearconvert and scp) that is often built as a single dropbearmulti binary, which makes it a common choice for routers, gateways, cameras and industrial controllers where OpenSSH is too large. It ships with build systems such as Buildroot and Yocto, which our embedded Linux build systems and SBOM guide covers, and it usually sits next to BusyBox in the same root filesystem (see BusyBox vulnerabilities in embedded Linux firmware for that half of the image).

Two properties shape how its CVEs behave in firmware. First, almost every feature is a compile-time switch. Dropbear's own default_options.h says it "documents compile-time options, and provides default values", and that local customisation goes into localoptions.h, so two devices running the same Dropbear version can have different ciphers, key exchange methods and forwarding features. Second, device makers often pin one Dropbear version for years, so a fleet in the field can carry CVEs that were fixed upstream long ago.

Which Dropbear CVEs matter most?

The project's CHANGES file is the primary record: each release lists its security fixes, usually with the CVE ID. The table below pulls the ones most likely to show up in a firmware scan. Scores are NVD's unless marked; EPSS values are from FIRST's 2026-11-28 data, and none of these CVEs, nor any Dropbear entry, was in CISA's KEV catalog as of its 2026.11.27 release. NVD published several of them months or years after the upstream fix: CVE-2025-14282 appeared on 2026-02-12, eight weeks after 2025.89 shipped on 16 December 2025.

CVE NVD published What it is Fixed upstream Score / EPSS Reachable when
CVE-2016-7406 2017-03-03 Format string injection in server message printing (username, host argument) 2016.74 NVD 9.8 (v3.0) / 0.102 Server: before login, but only if an account name containing "%" can exist (validated by getpwnam()); CHANGES says an attacker could then "run arbitrary code as root". Client: scripts or web pages that pass untrusted username or host arguments to dbclient
CVE-2017-9078 2017-05-19 Double free in server TCP listener cleanup, possible post-auth root code execution 2017.75 NVD 8.8 / 0.055 An authenticated user, only when the server runs with -a ("Allow connections to forwarded ports from any host", per CHANGES), which affects 2013.56 to 2016.74
CVE-2018-15599 2018-08-21 Username enumeration through authentication failure handling 2019.77 NVD 5.3 (v3.0) / 0.027 Any network access to the SSH port
CVE-2021-36369 2022-10-12 Client accepts "trivial" authentication with no prompt 2022.82 (opt-in -o DisableTrivialAuth) NVD 7.5 / 0.019 Only when the device uses dbclient to connect out
CVE-2023-48795 2023-12-18 Terrapin prefix truncation of the SSH handshake 2024.84 (Strict KEX) NVD 5.9 / 0.358 chacha20-poly1305 negotiated and an active man-in-the-middle
CVE-2025-47203 2025-05-07 dbclient multihop hostname passed to the shell 2025.88 CNA (MITRE) 4.5 / 0.011 Only when dbclient gets untrusted hostname arguments
CVE-2025-14282 2026-02-12 Unix stream forwarding done as root, bypassing SO_PEERCRED checks 2025.89 NVD (secondary) 5.4 / 0.004 2024.84 to 2025.88, multi-user logins, stream forwarding built in

The CHANGES file also lists 2026 server fixes without a CVE ID in the notes: 2026.90 closes a bypass of an authorized_keys forced command when Dropbear runs with -t, 2026.92 stops -B (blank passwords) being combined with -t and fixes a long authorized_keys line that could bypass command= restrictions, and 2026.93 fixes a use-after-free in X11 forwarding, which is off by default (DROPBEAR_X11FWD 0). A CVE-matching scan will not see these, so read the notes for every release between your version and the current one, 2026.94 (23 July 2026) as of 2026-11-13.

What does Terrapin (CVE-2023-48795) actually mean for Dropbear?

The Terrapin paper site describes it as a prefix truncation attack: "by carefully adjusting the sequence numbers during the handshake, an attacker can remove an arbitrary amount of messages sent by the client or server at the beginning of the secure channel without the client or server noticing it." It needs an attacker who can intercept and modify traffic on the network path, and a connection secured with ChaCha20-Poly1305 or a CBC cipher with Encrypt-then-MAC.

For Dropbear the scope is narrower than for OpenSSH. Dropbear's 2024.84 release notes say "chacha20-poly1305 is the only affected cipher," and that the flaw "does not seem to reduce Dropbear's security," because the only packet affected would be the server-sig-algs extension, used for compatibility. The Debian security tracker entry marks Debian's older buster package not affected because ChaCha20-Poly1305 support only arrived in 2020.79, and lists the backported fixes as 2020.81-3+deb11u1 (bullseye) and 2022.83-1+deb12u1 (bookworm).

The dates line up as follows: the researchers disclosed Terrapin on 18 December 2023, NVD published CVE-2023-48795 the same day, and Dropbear shipped Strict KEX in 2024.84 on 4 April 2024. Watch the version boundary. NVD's configuration marks Dropbear affected only for versions before 2022.83, but the Terrapin patches table lists "2022.83 and earlier" as affected and 2024.84 as the fix. A scanner that trusts the NVD range reports a 2022.83 build as clean.

The 0.358 EPSS score looks alarming, but the CVE record covers OpenSSH and dozens of other SSH implementations, so the score is not specific to Dropbear. Use the Dropbear-specific facts above to rank it, which usually places Terrapin below an unpatched memory-safety bug on the same device.

How do you identify the Dropbear version and build options in a firmware image?

Start with the version, then the options.

  1. SSH bannerDropbear's sysoptions.h builds the identification string as "SSH-2.0-dropbear" IDENT_VERSION_PART, where the default IDENT_VERSION_PART is "_" DROPBEAR_VERSION. A device that answers SSH-2.0-dropbear_2022.83 is running a 2022.83 base.
  2. Binary stringsIn the unpacked root filesystem, run strings on /usr/sbin/dropbear or dropbearmulti and search for dropbear_20. On a device you control, Dropbear's server help lists -V to print the version.
  3. Package metadataOpenWrt-based images record the dropbear package version in the opkg database, and Buildroot or Yocto build trees record it in the package recipe or manifest.
  4. Compile-time optionsLook for the build's localoptions.h or distrooptions.h in the vendor's source release or build tree, if you have it. Without the source, algorithm names compiled into the binary ([email protected], diffie-hellman-group1-sha1, ssh-dss, hmac-sha1) show what it can negotiate. From 2026.91 on, dropbear -Q prints the supported algorithms directly.

Treat the version as the upstream base only. A vendor can override IDENT_VERSION_PART to hide it, and Debian shipped the CVE-2025-47203 fix as 2022.83-1+deb12u3 per its tracker entry, so a "2022.83" banner can still be patched. Backport evidence is what turns a version match into a documented "fixed" or "affected" decision.

How does Dropbear show up in an SBOM?

It shows up as a package from the build system's records, and the identifier that CVE matching needs is a CPE, not a PURL. NVD files Dropbear CVEs under cpe:2.3:a:dropbear_ssh_project:dropbear_ssh, and the main embedded build systems already carry that name:

Build system Where the version lives CVE identifier it declares
OpenWrt dropbear Makefile (PKG_VERSION:=2026.94, PKG_RELEASE:=3), opkg status in the image PKG_CPE_ID:=cpe:/a:dropbear_ssh_project:dropbear_ssh
Buildroot dropbear.mk (DROPBEAR_VERSION = 2026.94) DROPBEAR_CPE_ID_VENDOR = dropbear_ssh_project, product dropbear_ssh
Yocto / OE-core dropbear_2026.94.bb recipe CVE_PRODUCT = "dropbear_ssh"

Two gaps follow. First, opkg has no registered PURL type (a proposal to add one is still open), and Syft's cataloger source says opkg-based packages get "no distro and therefore no PURL", so an OpenWrt SBOM entry for Dropbear often has a version but no PURL or CPE unless a tool adds one. Second, an opkg version such as 2022.83-1 carries a package revision that has to be stripped before it is compared with NVD ranges. See Package URL identifiers for how the two identifier schemes differ.

Which Dropbear CVEs are really integration mistakes?

Some CVEs that name Dropbear describe how a product ships it, not a bug in Dropbear's code. CVE-2025-30095 (published 2025-03-31) covers VyOS and Debian live-build systems that have "the same Dropbear private host keys across different installations", which enables an active man-in-the-middle. CVE-2026-1803 (2026-02-03) is a default credential reached through the Dropbear SSH service of one smart-home controller. Upgrading Dropbear fixes neither: per-device host keys generated on first boot and no shared default passwords do.

How should you prioritise Dropbear CVEs?

Order the matches by what is compiled in and reachable, then by public exploitation data. Our KEV and EPSS prioritisation guide covers how those scores work.

  • First: pre-authentication memory bugs on old versions (CVE-2016-7406 before 2016.74, on servers where an account name containing "%" can exist, or where scripts pass untrusted input to dbclient) and post-authentication root code execution (CVE-2017-9078 before 2017.75, on servers started with -a) where the SSH port is reachable from a network you do not control.
  • Next: CVE-2025-14282 on 2024.84 to 2025.88 if more than one account can log in. The 2025.89 notes say it allowed "root privilege escalation" through programs that authenticate unix sockets by peer credentials.
  • Then: Terrapin, if chacha20-poly1305 is built in and the SSH service is exposed beyond a trusted management network.
  • Context-dependent: client-side CVEs (CVE-2021-36369, CVE-2025-47203) only matter if the device itself runs dbclient, for example in a tunnel or backup script.

Exposure changes the order more than scores do. A Dropbear server bound to a management VLAN only, with password logins off, sits in a very different place from one listening on the WAN interface with a factory default password; our hard-coded credentials guide covers that second failure.

How do you fix Dropbear vulnerabilities in firmware?

  1. UpgradeMove to a current release from the Dropbear CHANGES file, check its >> compatibility notes (for example, 2024.84 changed how /etc/shadow is used), rebuild and re-scan. If you cannot move, backport the fix commits the CHANGES file links for each security entry.
  2. Disable weak or affected algorithms in `localoptions.h`Upstream defaults already turn off DROPBEAR_3DES, DROPBEAR_ENABLE_CBC_MODE, DROPBEAR_SHA1_HMAC, DROPBEAR_SHA1_96_HMAC, DROPBEAR_DSS and DROPBEAR_DH_GROUP1; check that your build has not turned them back on. For Terrapin on an unpatched build, the Terrapin FAQ's workaround is to disable chacha20-poly1305 and use AES-GCM instead, which for Dropbear means DROPBEAR_CHACHA20POLY1305 0 and DROPBEAR_ENABLE_GCM_MODE 1. Test interoperability with the tools your field engineers use first, because the Terrapin FAQ warns you can lose access if a client lacks the remaining algorithms. Our weak cryptography in embedded firmware guide covers algorithm choice in more depth.
  3. Turn off features you do not useRun the server with -j and -k to disable local and remote forwarding (the 2025.89 notes name -j as a CVE-2025-14282 mitigation), or build with DROPBEAR_SVR_LOCALSTREAMFWD 0 and the other forwarding options at 0. Keep DROPBEAR_X11FWD at its default of 0.
  4. Restrict exposure and loginsBind to a management interface or address with -p [address:]port, disable password logins with -s (or for root with -g), disallow root logins with -w, and generate unique host keys per device on first boot instead of shipping one key in the image. Secure boot and a locked bootloader keep those settings from being edited offline; see U-Boot bootloader security.

Worked example: how would you triage Dropbear in a router image?

Synthetic example, not a real product. A router maker scans an OpenWrt-based image whose opkg status lists dropbear 2022.83-1.

  1. Confirm the baseThe binary contains SSH-2.0-dropbear_2022.83, and the vendor's source release shows no Dropbear patches beyond OpenWrt's.
  2. Check the optionsThe binary contains [email protected], and the build config leaves TCP forwarding on; X11 forwarding is off.
  3. Match beyond NVDNVD's range clears 2022.83 for Terrapin, but the Terrapin patches table and CHANGES do not, so the team records CVE-2023-48795 as affected. CVE-2025-14282 does not apply (code introduced in 2024.84); CVE-2025-47203 applies only if dbclient is used, and it is not.
  4. Check exposureThe SSH port listens on LAN only, password logins are on, and every unit shares one host key from the image.
  5. FixMove to 2026.94, generate host keys on first boot, and disable password logins in favour of keys; rebuild, re-scan and record each CVE decision with its source.

What are the common pitfalls?

  • Trusting NVD ranges alone. The Terrapin range stops before 2022.83, and CVE-2025-47203 and CVE-2025-14282 have no NVD configuration data at all.
  • Reading the banner as the whole truth. Backports and a custom IDENT_VERSION_PART both break a version-only verdict.
  • Fixing Dropbear while keeping a shared host key or a factory password, the integration flaws above.
  • Ignoring CHANGES entries without a CVE ID, such as the 2026.90 forced-command bypass.

How does AI-assisted analysis help with Dropbear findings?

SoftWSP's automated scan takes the component inventory of an unpacked firmware image (the same inventory our firmware SBOM guide describes), maps an opkg or dpkg package named dropbear to NVD's dropbear_ssh_project:dropbear_ssh CPE with the package revision stripped, and matches the version against NVD's CPE ranges, CISA's KEV catalog and FIRST's EPSS scores. That matching is deterministic: code produces the component, version and CVE list. You can inspect the resulting CycloneDX file in the free SBOM viewer.

Because the matching follows NVD's ranges, it inherits their gaps: a 2022.83 build is not flagged for Terrapin, and CVEs without NVD configuration data, such as CVE-2025-47203 and CVE-2025-14282, are not matched automatically. AI's part is the written explanation of what did match, citing the component, version and record behind each sentence. An engineer reviews every finding before the report is delivered, and that review is where the CHANGES file, the compiled-in algorithms and forwarding features, the SSH port's exposure and any vendor backport turn into a documented "affected" or "fixed" decision.

For where SSH service review fits in a full assessment, see the OWASP Firmware Security Testing Methodology guide, or device & firmware security services to have a specific image reviewed.

This guide draws on Dropbear's CHANGES file, default_options.h, sysoptions.h and server option help, the Terrapin paper site and patches table, the Debian Security Tracker, NVD, the OpenWrt, Buildroot and OE-core Dropbear build files, Syft's source, CISA's KEV catalog (version 2026.11.27) and FIRST EPSS data dated 2026-11-28, read directly on 2026-11-13, with KEV and EPSS rechecked on 2026-11-29.

Put this guide to work

Frequently asked questions

Is Dropbear affected by the Terrapin attack (CVE-2023-48795)?

Yes, when a connection negotiates chacha20-poly1305. Dropbear's 2024.84 change log (4 April 2024) says "chacha20-poly1305 is the only affected cipher" for Dropbear and adds the "Strict KEX" countermeasure, which only takes effect when both client and server support it. Debian's security tracker notes that ChaCha20-Poly1305 support arrived in Dropbear 2020.79, so older builds are not affected by Terrapin itself, though they carry other CVEs. The Terrapin researchers state that the attack needs an active man-in-the-middle on the network path. NVD scores CVE-2023-48795 at CVSS 3.1 5.9, and it was not in CISA's KEV catalog as of the 2026-11-27 release.

How do I find the Dropbear version in a firmware image?

Two places usually give it away. On a running device, the SSH identification string the server sends first looks like "SSH-2.0-dropbear_2022.83", because Dropbear's sysoptions.h builds it from "SSH-2.0-dropbear" plus "_" and DROPBEAR_VERSION. In an unpacked root filesystem, search the dropbear or dropbearmulti binary for the same string. Vendors can override IDENT_VERSION_PART to hide the version, and distributions backport fixes without changing it, so treat the number as the upstream base version and check vendor or distribution patch records before calling a CVE open or closed.

Which Dropbear CVE should a device maker fix first?

Start with what the build compiles in and what an attacker can reach. On images older than 2016.74 or 2017.75, the pre-authentication format string bug CVE-2016-7406 (NVD 9.8) and the post-authentication double free CVE-2017-9078 (NVD 8.8) come first. On 2024.84 to 2025.88 with multi-user logins, CVE-2025-14282 lets any user who can log in reach unix sockets as root. Terrapin follows when chacha20-poly1305 is enabled and the SSH port is reachable from untrusted networks. CVE-2025-47203 only matters if a device runs dbclient with untrusted hostnames. None of these was in CISA's KEV catalog as of its 2026-11-27 release.

Can I fix Dropbear vulnerabilities without a full upgrade?

Partly. The Terrapin site recommends disabling chacha20-poly1305 and the -etm MAC algorithms as a workaround, which for Dropbear means building with DROPBEAR_CHACHA20POLY1305 set to 0 in localoptions.h. Dropbear's 2025.89 change log names running with "dropbear -j" or building with DROPBEAR_SVR_LOCALSTREAMFWD set to 0 as mitigations for CVE-2025-14282. Memory-safety bugs such as CVE-2016-7406 or CVE-2017-9078 have no configuration workaround, so they need the upstream fix, either a newer release or a backported patch, followed by a rebuild and a re-scan of the image.

Does SoftWSP read Dropbear's compile-time options from my firmware?

SoftWSP's automated scan identifies Dropbear as a component, with its version, from the unpacked firmware file system, and matches that version against CVE, CISA KEV and FIRST EPSS data. AI then writes a plain-language summary that cites the component, version and record behind each finding, and an engineer reviews it. Working out which algorithms and forwarding features a particular build compiled in, and whether a vendor backport already closes a matched CVE, is part of that engineer review, not an automatic verdict.

Sources

  1. Dropbear SSH: CHANGES (release notes, 2026.94 back to 0.x)
  2. Dropbear SSH (mkj/dropbear): src/default_options.h
  3. Dropbear SSH (mkj/dropbear): src/sysoptions.h
  4. Bäumer, Brinkmann, Schwenk: Terrapin Attack (paper site, FAQ and scanner)
  5. Debian Security Tracker: CVE-2023-48795
  6. Debian Security Tracker: CVE-2025-14282
  7. Debian Security Tracker: CVE-2025-47203
  8. NIST NVD: CVE-2023-48795
  9. NIST NVD: CVE-2016-7406
  10. NIST NVD: CVE-2017-9078
  11. NIST NVD: CVE-2025-14282
  12. NIST NVD: CVE-2025-30095 (identical Dropbear host keys with live-build)
  13. Terrapin Attack: patches and affected implementations
  14. OpenWrt: package/network/services/dropbear/Makefile
  15. Buildroot: package/dropbear/dropbear.mk
  16. Syft: Debian/opkg cataloger package.go (no PURL for opkg packages)
  17. CISA: Known Exploited Vulnerabilities (KEV) Catalog
Was this guide helpful?

In this cluster

Dropbear SSH vulnerabilities in embedded firmware: identify, prioritise and fix