Skip to content
NOUMENResearch
Network
Engineering
, home page

IntelligenceFindingsNMN-2026-0134

Plaintext exposed in decrypt_in_place_detached even on tag verification failure

CandidateMachine- or researcher-generated; not independently verified.

In short

What to know.

Package
aes-gcm crates.ioaes-gcm: from 0.10.0 before 0.10.3
What to do
Upgrade aes-gcm to 0.10.3 or later.
Severity
UnknownRated by the source advisory.
Confidence
HighThe affected range comes from the advisory; no system that uses the component has been assessed.

Verification

Where it stands.

  1. Candidate
  2. In review
  3. Reproduced
  4. Confirmed
  5. Resolved
  6. Disputed
  7. Withdrawn
Candidate Machine- or researcher-generated; not independently verified.

What each state means, and how a record moves between them.

12 listed

Sources

  1. OSV record RUSTSEC-2023-0096osv.devRetrieved 3 December 2026
  2. package reference for RUSTSEC-2023-0096crates.ioRetrieved 3 December 2026
  3. advisory reference for RUSTSEC-2023-0096rustsec.orgRetrieved 3 December 2026
  4. web reference for RUSTSEC-2023-0096github.comRetrieved 3 December 2026
  5. OSV record GHSA-423w-p2w9-r7vqosv.devRetrieved 3 December 2026
  6. web reference for GHSA-423w-p2w9-r7vqgithub.comRetrieved 3 December 2026
  7. advisory reference for GHSA-423w-p2w9-r7vqnvd.nist.govRetrieved 3 December 2026
  8. web reference for GHSA-423w-p2w9-r7vqdocs.rsRetrieved 3 December 2026
  9. package reference for GHSA-423w-p2w9-r7vqgithub.comRetrieved 3 December 2026
  10. web reference for GHSA-423w-p2w9-r7vqlists.fedoraproject.orgRetrieved 3 December 2026
  11. web reference for GHSA-423w-p2w9-r7vqlists.fedoraproject.orgRetrieved 3 December 2026
  12. web reference for GHSA-423w-p2w9-r7vqlists.fedoraproject.orgRetrieved 3 December 2026

Full record

Finding
NMN-2026-0134
Category
vulnerability
Component
aes-gcm (crates.io)aes-gcm: from 0.10.0 before 0.10.3
Severity
Unknown. Rated by the source advisory.The source advisory RUSTSEC-2023-0096 gives no severity label. Noumen has not assessed it.
Confidence
High.The affected range comes from the advisory; no system that uses the component has been assessed.
State
Candidate. Machine- or researcher-generated; not independently verified.
Disclosure
Public
Mitigation
Upgrade aes-gcm to 0.10.3 or later.
Discovery method
imported from a public advisory by the Advisory Monitor (1.0.0)Machine-generated by the agent advisory-monitor@1.0.0.
Reproduction
No reproduction steps recorded.
Affected systems
None listed. A link to a system needs its own evidence.
Attribution
Researcher: advisory-monitor@1.0.0 (agent, machine-generated)Validators: None yet
Assigned reviewer
Nobody yet
Dates
Created 3 December 2026, 16:51 UTCUpdated 3 December 2026, 16:51 UTC
Summary, as published by the source advisory
As published by the source advisory
## Summary In the AES GCM implementation of decrypt_in_place_detached, the decrypted ciphertext (i.e. the correct plaintext) is exposed even if tag verification fails. ## Impact If a program using the aes-gcm crate's decrypt_in_place* APIs accesses the buffer after decryption failure, it will contain a decryption of an unauthenticated input. Depending on the specific nature of the program this may enable Chosen Ciphertext Attacks (CCAs) which can cause a catastrophic breakage of the cipher including full plaintext recovery. ## Details As seen in the implementation of decrypt_in_place_detached for AES GCM, if the tag verification fails, an error is returned. Because the decryption of the ciphertext is done in place, the plaintext contents are now exposed via buffer. This should ideally not be the case - as noted in page 17 of NIST's publication Recommendation for Block Cipher Modes of Operation: Galois/Counter Mode (GCM) and GMAC: In Step 8, the result of Step 7 is compared with the authentication tag that was received as an input: if they are identical, then the plaintext is returned; otherwise,FAIL is returned. This is seems correctly addressed in the AES GCM SIV implementation, where the decrypted buffer is encrypted again before the error is returned - this fix is straightforward to implement in AES GCM. To ensure that these types of cases are covered during testing, it would be valuable to add test cases like 23, 24 etc from project wycheproof to ensure that when a bad tag is used, there is an error on decryption and that the plaintext value is not exposed. ## PoC To reproduce this issue, I'm using test case 23 from project wycheproof. ``` let key = GenericArray::from_slice(&hex!("000102030405060708090a0b0c0d0e0f")); let nonce = GenericArray::from_slice(&hex!("505152535455565758595a5b")); let tag = GenericArray::from_slice(&hex!("d9847dbc326a06e988c77ad3863e6083")); // bad tag let mut ct = hex!("eb156d081ed6b6b55f4612f021d87b39"); let msg = hex!("202122232425262728292a2b2c2d2e2f"); let aad = hex!(""); let cipher = Aes128Gcm::new(&key); let _plaintext = cipher.decrypt_in_place_detached(&nonce, &aad, &mut ct, &tag); assert_eq!(ct, msg); ```

2 events, oldest first

History

History verified: 2 eventsLatest hashe947124ec4abe947124ec4ab5887db4704fe84005316eff7b588bd3b0b5e41085674fefd7e90

  1. Record createdMachine-generated

    By advisory-monitor@1.0.0 (agent, machine-generated)

    Reason: Imported from public advisory GHSA-423w-p2w9-r7vq.

    Entered the record in the state Candidate.

    Event 1 hasha4f9e6acc095a4f9e6acc095e59559ab2cba37e35fa861cc8e6c6dbe239e46072e144d63bbd9
  2. CorrectionMachine-generated

    By advisory-monitor@1.0.0 (agent, machine-generated)

    Reason: The source advisory RUSTSEC-2023-0096 changed.

    Title

    Before

    AEADs/aes-gcm: Plaintext exposed in decrypt_in_place_detached even on tag verification failure

    After

    Plaintext exposed in decrypt_in_place_detached even on tag verification failure

    Sources

    Before

    [ { "url": "https://osv.dev/vulnerability/GHSA-423w-p2w9-r7vq", "title": "OSV record GHSA-423w-p2w9-r7vq", "retrieved": "2026-12-03" }, { "url": "https://github.com/RustCrypto/AEADs/security/advisories/GHSA-423w-p2w9-r7vq", "title": "web reference for GHSA-423w-p2w9-r7vq", "retrieved": "2026-12-03" }, { "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-42811", "title": "advisory reference for GHSA-423w-p2w9-r7vq", "retrieved": "2026-12-03" }, { "url": "https://docs.rs/aes-gcm/latest/src/aes_gcm/lib.rs.html#309", "title": "web reference for GHSA-423w-p2w9-r7vq", "retrieved": "2026-12-03" }, { "url": "https://github.com/RustCrypto/AEADs", "title": "package reference for GHSA-423w-p2w9-r7vq", "retrieved": "2026-12-03" }, { "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ROBB6TBDAGEQ2WIINR34F3DP... (702 more characters)

    After

    [ { "url": "https://osv.dev/vulnerability/RUSTSEC-2023-0096", "title": "OSV record RUSTSEC-2023-0096", "retrieved": "2026-12-03" }, { "url": "https://crates.io/crates/aes-gcm", "title": "package reference for RUSTSEC-2023-0096", "retrieved": "2026-12-03" }, { "url": "https://rustsec.org/advisories/RUSTSEC-2023-0096.html", "title": "advisory reference for RUSTSEC-2023-0096", "retrieved": "2026-12-03" }, { "url": "https://github.com/RustCrypto/AEADs/pull/551", "title": "web reference for RUSTSEC-2023-0096", "retrieved": "2026-12-03" }, { "url": "https://osv.dev/vulnerability/GHSA-423w-p2w9-r7vq", "title": "OSV record GHSA-423w-p2w9-r7vq", "retrieved": "2026-12-03" }, { "url": "https://github.com/RustCrypto/AEADs/security/advisories/GHSA-423w-p2w9-r7vq", "title": "web reference for GHSA-423w-p2w9-r7vq", "retrieved": "2026-12-03" }, { "url":... (1119 more characters)

    Summary

    Before

    ### Summary In the AES GCM implementation of decrypt_in_place_detached, the decrypted ciphertext (i.e. the correct plaintext) is exposed even if tag verification fails. ### Impact If a program using the `aes-gcm` crate's `decrypt_in_place*` APIs accesses the buffer after decryption failure, it will contain a decryption of an unauthenticated input. Depending on the specific nature of the program this may enable Chosen Ciphertext Attacks (CCAs) which can cause a catastrophic breakage of the cipher including full plaintext recovery. ### Details As seen in the implementation of [decrypt_in_place_detached](https://docs.rs/aes-gcm/latest/src/aes_gcm/lib.rs.html#309) for AES GCM, if the tag verification fails, an error is returned. Because the decryption of the ciphertext is done in place, the plaintext contents are now exposed via `buffer`. This should ideally not be the case - as noted i... (1777 more characters)

    After

    ## Summary In the AES GCM implementation of decrypt_in_place_detached, the decrypted ciphertext (i.e. the correct plaintext) is exposed even if tag verification fails. ## Impact If a program using the aes-gcm crate's decrypt_in_place* APIs accesses the buffer after decryption failure, it will contain a decryption of an unauthenticated input. Depending on the specific nature of the program this may enable Chosen Ciphertext Attacks (CCAs) which can cause a catastrophic breakage of the cipher including full plaintext recovery. ## Details As seen in the implementation of decrypt_in_place_detached for AES GCM, if the tag verification fails, an error is returned. Because the decryption of the ciphertext is done in place, the plaintext contents are now exposed via buffer. This should ideally not be the case - as noted in page 17 of NIST's publication Recommendation for Block Cipher Modes ... (1327 more characters)

    Affected versions

    Before

    [ { "name": "aes-gcm", "ranges": [ { "fixed": "0.10.3", "introduced": "0.10.0" } ], "ecosystem": "crates.io" } ]

    After

    [ { "name": "aes-gcm", "ranges": [ { "fixed": "0.10.3", "introduced": "0.10.0" } ], "ecosystem": "crates.io" } ]

    Severity

    Before

    moderate

    After

    unknown

    severityRationale

    Before

    Severity as labelled by the source advisory GHSA-423w-p2w9-r7vq. CVSS as given: CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:H/A:N. Noumen has not assessed it.

    After

    The source advisory RUSTSEC-2023-0096 gives no severity label. Noumen has not assessed it.

    Event 2 hashe947124ec4abe947124ec4ab5887db4704fe84005316eff7b588bd3b0b5e41085674fefd7e90
About this record

Severity and confidence are rated separately, each with its own reason.

History events are never edited or deleted. Each stores the hash of the one before, so a later change breaks the chain.

Corrections keep the value before and after.