Miggo Logo

CVE-2025-27498: AEADs/ascon-aead: Plaintext exposed in decrypt_in_place_detached even on tag verification failure

5.6

CVSS Score
4.0

Basic Information

EPSS Score
0.01484%
Published
3/3/2025
Updated
3/3/2025
KEV Status
No
Technology
TechnologyRust

Technical Details

CVSS Vector
CVSS:4.0/AV:L/AC:H/AT:N/PR:N/UI:A/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Package NameEcosystemVulnerable VersionsFirst Patched Version
ascon_aeadrust<= 0.4.20.4.3

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from the decrypt_in_place_detached implementation in asconcore.rs where tag verification failure didn't clear the decrypted buffer. The proof-of-concept demonstrates plaintext retention after failed decryption, and the patch adds ciphertext.fill(0) in the error path. The function's control flow matches the described vulnerability pattern of returning unauthenticated plaintext, making AsconCore::decrypt_in_place_detached the clear vulnerable entry point.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

### Summ*ry In `***rypt_in_pl***_**t*****`, t** ***rypt** *ip**rt*xt (w*i** is t** *orr**t *ip**rt*xt) is *xpos** *v*n i* t** t** is in*orr**t. ### **t*ils T*is is ****us* in [***rypt_inpl***](*ttps://*it*u*.*om/Rust*rypto/****s/*lo*/***************

Reasoning

T** vuln*r**ility st*ms *rom t** ***rypt_in_pl***_**t***** impl*m*nt*tion in *s*on*or*.rs w**r* t** v*ri*i**tion **ilur* *i*n't *l**r t** ***rypt** *u***r. T** proo*-o*-*on**pt **monstr*t*s pl*int*xt r*t*ntion **t*r **il** ***ryption, *n* t** p*t** *