CVE-2026-16516 Affecting wolfssh package, versions <1.6.0-r0


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.19% (9th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ALPINE324-WOLFSSH-20562025
  • published7 Oct 2026
  • disclosed7 Oct 2026

Introduced: 7 Oct 2026

CVE-2026-16516  (opens in a new tab)

How to fix?

Upgrade Alpine:3.24 wolfssh to version 1.6.0-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream wolfssh package and not the wolfssh package as distributed by Alpine. See How to fix? for Alpine:3.24 relevant fixed versions and status.

wolfSSH does not validate that the ECDSA curve identifier in a KEXDH_REPLY host key blob matches the algorithm negotiated during key exchange. In ParseECCPubKey() (src/internal.c), the blob's algorithm string is used to derive the curve via NameToId/wcPrimeForId without checking against the negotiated ssh->handshake->pubKeyId, and the RFC 5656 curve identifier string is discarded via GetSkip() rather than compared. An active network man-in-the-middle attacker can substitute a host key blob containing a different ECDSA curve, causing the client to import the key on the wrong curve. Because the attacker controls the private key for the substituted curve, signature verification passes. Exploitation requires an active MitM position and a lax public key check callback (e.g., TOFU, algorithm-name-only check, or fingerprint match against the parsed key).

CVSS Base Scores

version 3.1