Skip to main content

RUSTSEC-2026-0335 — Pre-shared key mode transmits the TGK in mykey

CRITICAL

Pre-shared key mode transmits the TGK in cleartext, exposing the SRTP master key

Published October 9, 2026Updated October 12, 2026Source: OSV

Does your project use an affected mykey version?

Paste your Cargo.lock to check it for RUSTSEC-2026-0335 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my Cargo.lock

Summary

mykey implements MIKEY (RFC 3830) for SRTP key exchange. Pre-shared key mode transmitted the TEK Generation Key (TGK) in the clear.

MikeyMessage::new_psk_init built its KEMAC payload with EncAlg::Null and placed the TGK in enc_data verbatim. Anyone able to read a PSK-Init message therefore recovers the TGK — and so the SRTP master key — without knowing the pre-shared key.

The transmitted value was never even used by the receiver: complete_psk re-derived the TGK from the pre-shared key and ignored enc_data entirely. The field was write-only; it provided nothing and disclosed everything.

A second consequence: the message authentication key was derived from the TGK rather than from the pre-shared key, so an attacker who read the TGK off the wire could also forge a valid message MAC. Integrity was lost along with confidentiality. That aspect is tracked separately as GHSA-xq78-wvcv-hqvj.

Exploitability

A MIKEY message is normally distributed as an SDP a=key-mgmt:mikey attribute, which in AES67 and SMPTE ST 2110 deployments is typically announced over SAP multicast. A passive listener on the media network recovers the session key with no active attack and no credentials.

RFC 3830 §4.2.3 permits NULL encryption only where "the underlying protocols can guarantee security", and warns to use it with caution. An SDP file or a SAP announcement is not such a channel.

The fix

Pre-shared key mode now follows RFC 3830 §3.1 as key transport: the initiator generates a random TGK, frames it as a Key data sub-payload (§6.13), and encrypts it with AES-CM (§4.2.3) under an encryption key and 112-bit salt derived from the pre-shared key (§4.1.4). The message MAC is keyed from the pre-shared key and verified before anything is decrypted.

This changes the wire format, so both ends of an exchange must be upgraded together. The incompatibility is silent: an old peer and a new peer complete the exchange without error and then derive different SRTP keys.

Workarounds

Use ephemeral Diffie-Hellman mode instead of pre-shared key mode, or carry the PSK-Init only over a channel that is already confidential and authenticated end to end.

Advisory Timeline

  • First published October 9, 2026 (48 days ago).
  • Last revised October 12, 2026 — 3 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Cargo
Update mykey to 2.0.0 or later
cargo update -p mykey --precise 2.0.0

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: crates.io (1).

PackageFixed In
mykey crates.io · Affected: All versions2.0.0

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.1 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Frequently Asked Questions

What is RUSTSEC-2026-0335?
Pre-shared key mode transmits the TGK in cleartext, exposing the SRTP master key. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.1/10).
How do I check if my project is affected by RUSTSEC-2026-0335?
RUSTSEC-2026-0335 affects mykey. Use GeekWala's free vulnerability scanner to check your dependencies against RUSTSEC-2026-0335 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.1

Maximum impact if exploited, often with little effort or access required.

Also Known As

GHSA-fwjg-cm92-j3hj

Related CVEs

  • RUSTSEC-2026-0501
    CRITICAL

    Shamir backup recovery accepts a share at x = 0, so a supplied share can substitute the recovered private key

  • CVE-2026-69157
    CRITICAL

    Atomic Server: Unauthenticated `/setup` invite grants write access to the entire Drive

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my Cargo.lock