# CVE-2026-54887: DTLS server cookie bypass during startup window due to empty initial cookie secret

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.3
- **CVSS:** 6.3 (v4.0, CNA) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: None; Confidentiality impact: None; Integrity impact: None; Availability impact: Low; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.45% (percentile 31, 2026-11-26)
- **CWE:** CWE-1394
- **Published:** 2026-07-02T16:06:04.156Z
- **Modified:** 2026-11-20T06:17:31.003Z

## Who should check

- Anyone running Erlang OTP \>= 8.2, \< \*
- Anyone running Erlang OTP \>= 20.0, \< \*
- Anyone running Erlang OTP \>= e594aad2f87aab39e99fccf9e021bc94e0bbf7d4, \< 888e3bcd72d5406016b9e0de741026bc2a6f114d

## Description

Use of Default Cryptographic Key vulnerability in Erlang/OTP ssl (DTLS server) allows predictable DTLS cookie computation during the startup window, enabling source address verification bypass.

On DTLS server startup, dtls\_server\_connection:initial\_hello/3 initializes previous\_cookie\_secret to the empty binary (\<\<\>\>) instead of a random value. Because HMAC with an empty key is deterministic, anyone who observes the plaintext ClientHello can compute dtls\_handshake:cookie(\<\<\>\>, IP, Port, Hello) and forge a valid DTLS cookie before the first rotation of the cookie secret. The DTLS cookie (RFC 6347 §4.2.1) is a denial-of-service mitigation that prevents spoofed source IPs from forcing the server to allocate state and perform expensive cryptographic operations; it is not an authentication mechanism. During the window from server startup until the first secret rotation (0 to 15 seconds), an attacker who can observe the plaintext ClientHello can bypass the source address verification, enabling DTLS handshake amplification with spoofed source addresses.

This vulnerability is associated with program file lib/ssl/src/dtls\_server\_connection.erl and program routine dtls\_server\_connection:initial\_hello/3.

This issue affects OTP from OTP 20.0 before OTP 27.3.4.14, OTP 28.5.0.3, and OTP 29.0.3, corresponding to ssl from 8.2 before 11.2.12.10, 11.6.0.3, and 11.7.3.

## Affected and fixed versions

- Erlang OTP: \>= 8.2, \< \* (cvelist)
- Erlang OTP: \>= 20.0, \< \* (cvelist)
- Erlang OTP: \>= e594aad2f87aab39e99fccf9e021bc94e0bbf7d4, \< 888e3bcd72d5406016b9e0de741026bc2a6f114d (cvelist)

## Mitigation

- Upgrade OTP to 888e3bcd72d5406016b9e0de741026bc2a6f114d or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-54887. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-54887.md
Affected: Erlang OTP >= 8.2, < *; Erlang OTP >= 20.0, < *; Erlang OTP >= e594aad2f87aab39e99fccf9e021bc94e0bbf7d4, < 888e3bcd72d5406016b9e0de741026bc2a6f114d
Fixed in: Erlang OTP 888e3bcd72d5406016b9e0de741026bc2a6f114d

Steps:
1. Search this machine and project for Erlang OTP: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-54887 being exploited?

There is no confirmed exploitation: CVE-2026-54887 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.45% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-54887?

Medium: CVSS 6.3 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-54887?

Erlang OTP \>= 8.2, \< \*; Erlang OTP \>= 20.0, \< \*; Erlang OTP \>= e594aad2f87aab39e99fccf9e021bc94e0bbf7d4, \< 888e3bcd72d5406016b9e0de741026bc2a6f114d.

### Is there a fix for CVE-2026-54887?

Yes. Fixed in Erlang OTP 888e3bcd72d5406016b9e0de741026bc2a6f114d. Upgrade OTP to 888e3bcd72d5406016b9e0de741026bc2a6f114d or later.

### How do I check if I'm affected by CVE-2026-54887?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/erlang/otp/security/advisories/GHSA-p2m2-3c2w-8jp8>
- vendor: <https://cna.erlef.org/cves/CVE-2026-54887.html>
- patch: <https://github.com/erlang/otp/commit/e594aad2f87aab39e99fccf9e021bc94e0bbf7d4>
- patch: <https://github.com/erlang/otp/commit/888e3bcd72d5406016b9e0de741026bc2a6f114d>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-54887>
- other: <https://www.erlang.org/doc/system/versions.html#order-of-versions>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-54887>

HTML: <https://flawdb.com/CVE-2026-54887> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-54887>
