mykey is vulnerable to Improper Validation of Integrity Check Value
75
CVE Score
High
Improper Validation of Integrity Check Value
The MikeyMessage::from_bytes parser and MikeyMessage::complete_psk builder in src/message.rs process MIKEY (RFC 3830) messages received over the wire for SRTP pre-shared-key exchange, but never called the existing crypto::verify_mac function to check the trailing authentication tag. As a result, a receiver using the library's default PSK mode accepted any message regardless of whether its MAC was correct, incorrect, or missing, defeating the integrity/authentication guarantee the pre-shared-key mode is documented to provide. The fix adds a mac_offset field tracked during parsing, a PSK_AUTH_KEY_LEN constant, and derivation/verification of the authentication key so the MAC is now checked before a parsed message is accepted.
Upgrade the mykey package to version 2.0.0 or later.
You are affected if you are using a version that falls within the vulnerable range and are parsing or accepting MIKEY PSK-mode messages received from a peer.
0.1.1 - 1.0.0
Fixed in 2.0.0mykey is vulnerable to Improper Validation of Integrity Check Value in versions 0.1.1 - 1.0.0.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.