{"answers":{"affected":"3 open source packages ship an affected version, including aes-gcm. It affects 2 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-42811 exists.","fix":"Upgrade aes-gcm to 0.10.3 or later.","what":"CVE-2023-42811 is a medium-severity vulnerability in Fedoraproject Fedora, published on 22 Sep 2023. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-42811 and fix it if it is affected.\n\nWhat it is: CVE-2023-42811 is a medium-severity vulnerability in Fedoraproject Fedora, published on 22 Sep 2023. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-42811 exists.\n\nAffected packages and fixed versions:\n- aes-gcm (crates.io): affected from 0.10.0; fixed in 0.10.3\n- aes-gcm (crates.io): affected from 0.10.0; fixed in 0.10.3\n- aes-gcm (crates.io): affected from 0.10.0; fixed in 0.10.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-42811/ (Markdown: https://insights.sbomify.com/CVE-2023-42811/index.md)","id":"CVE-2023-42811","markdown":"https://insights.sbomify.com/CVE-2023-42811/index.md","name":"CVE-2023-42811","record":{"aliases":["GHSA-423w-p2w9-r7vq","RUSTSEC-2023-0096","SUSE-SU-2023:4060-1","openSUSE-SU-2024:13315-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Rust AES-GCM library","requires_auth":"high_privilege","summary":"The aes-gcm Rust library exposes decrypted plaintext even when authentication tags fail, potentially enabling chosen ciphertext attacks and full plaintext recovery.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"aes-gcm","vendor":"aes-gcm_project"},{"product":"fedora","vendor":"fedoraproject"}],"cvss":{"score":4.7,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature"}],"description":"aes-gcm is a pure Rust implementation of the AES-GCM. Starting in version 0.10.0 and prior to version 0.10.3, 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. 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. Version 0.10.3 contains a fix for this issue.","ecosystems":["SUSE:Linux Enterprise Module for Basesystem 15 SP5","crates.io","openSUSE:Leap 15.5","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"AEADs/aes-gcm: Plaintext exposed in decrypt_in_place_detached even on tag verification failure","id":"CVE-2023-42811","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":"fedoraproject:fedora","products":["fedoraproject:fedora"],"type":"other","year":"2023"},"n_packages":6,"n_references":5,"next":{"headline":"Galaxy vulnerable to Server Side Request Forgery during data imports","id":"CVE-2023-42812"},"packages":[{"ecosystem":"crates.io","fixed":["0.10.3"],"introduced":["0.10.0"],"last_affected":[],"package":"aes-gcm","purl":null,"source":"GHSA-423w-p2w9-r7vq"},{"ecosystem":"crates.io","fixed":["0.10.3"],"introduced":["0.10.0"],"last_affected":[],"package":"aes-gcm","purl":"pkg:cargo/aes-gcm","source":"GHSA-423w-p2w9-r7vq"},{"ecosystem":"crates.io","fixed":["0.10.3"],"introduced":["0.10.0"],"last_affected":[],"package":"aes-gcm","purl":"pkg:cargo/aes-gcm","source":"RUSTSEC-2023-0096"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP5","fixed":["0.9.2+0-150500.3.3.1"],"introduced":["0"],"last_affected":[],"package":"rage-encryption","purl":"pkg:rpm/suse/rage-encryption\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP5","source":"SUSE-SU-2023:4060-1"},{"ecosystem":"openSUSE:Leap 15.5","fixed":["0.9.2+0-150500.3.3.1"],"introduced":["0"],"last_affected":[],"package":"rage-encryption","purl":"pkg:rpm/opensuse/rage-encryption\u0026distro=openSUSE%20Leap%2015.5","source":"SUSE-SU-2023:4060-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.16.2-1.1"],"introduced":["0"],"last_affected":[],"package":"shadowsocks-rust","purl":"pkg:rpm/opensuse/shadowsocks-rust\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:13315-1"}],"prev":{"headline":"systeminformation SSID Command Injection Vulnerability","id":"CVE-2023-42810"},"products":["AEADs"],"published":"2023-09-22","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"open","licence":"CC0 1.0","name":"RustSec","prefix":"RUSTSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-06-18","vendors":["RustCrypto"]},"summary":"The aes-gcm Rust library exposes decrypted plaintext even when authentication tags fail, potentially enabling chosen ciphertext attacks and full plaintext recovery.","url":"https://insights.sbomify.com/CVE-2023-42811/"}