{"answers":{"affected":"3 open source packages ship an affected version, including openssl-src. It affects 31 products.","exploited":"There is no known exploitation of CVE-2021-3711 in the wild and no public exploit code.","fix":"Upgrade openssl-src to 111.16.0 or later.","what":"CVE-2021-3711 is a critical memory corruption vulnerability in Debian Debian Linux, published on 24 Aug 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-3711 and fix it if it is affected.\n\nWhat it is: CVE-2021-3711 is a critical memory corruption vulnerability in Debian Debian Linux, published on 24 Aug 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-3711 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- openssl-src (crates.io): affected all versions; fixed in 111.16.0\n- openssl-src (crates.io): affected all versions; fixed in 111.16.0\n- openssl-src (crates.io): affected from 0.0.0-0; fixed in 111.16.0\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-2021-3711/ (Markdown: https://insights.sbomify.com/CVE-2021-3711/index.md)","id":"CVE-2021-3711","markdown":"https://insights.sbomify.com/CVE-2021-3711/index.md","name":"CVE-2021-3711","record":{"aliases":["ALPINE-CVE-2021-3711","AZL-6779","CLEANSTART-2026-TN29223","CLSA-2023-1698949525","CLSA-2023-1699439565","DEBIAN-CVE-2021-3711","GHSA-5ww6-px42-wc85","JLSEC-2026-224","RUSTSEC-2021-0097","UBUNTU-CVE-2021-3711"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"OpenSSL cryptographic library","requires_auth":"none","summary":"A buffer overflow in OpenSSL's SM2 decryption allows attackers to corrupt memory, potentially causing crashes or executing arbitrary code.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"openssl","cpe":[{"product":"debian_linux","vendor":"debian"},{"product":"active_iq_unified_manager","vendor":"netapp"},{"product":"clustered_data_ontap","vendor":"netapp"},{"product":"clustered_data_ontap_antivirus_connector","vendor":"netapp"},{"product":"e-series_santricity_os_controller","vendor":"netapp"},{"product":"hci_management_node","vendor":"netapp"},{"product":"manageability_software_development_kit","vendor":"netapp"},{"product":"oncommand_insight","vendor":"netapp"},{"product":"oncommand_workflow_automation","vendor":"netapp"},{"product":"santricity_smi-s_provider","vendor":"netapp"},{"product":"snapcenter","vendor":"netapp"},{"product":"solidfire","vendor":"netapp"},{"product":"storage_encryption","vendor":"netapp"},{"product":"openssl","vendor":"openssl"},{"product":"communications_cloud_native_core_security_edge_protection_proxy","vendor":"oracle"},{"product":"communications_cloud_native_core_unified_data_repository","vendor":"oracle"},{"product":"communications_session_border_controller","vendor":"oracle"},{"product":"communications_unified_session_manager","vendor":"oracle"},{"product":"enterprise_communications_broker","vendor":"oracle"},{"product":"enterprise_session_border_controller","vendor":"oracle"},{"product":"essbase","vendor":"oracle"},{"product":"health_sciences_inform_publisher","vendor":"oracle"},{"product":"jd_edwards_enterpriseone_tools","vendor":"oracle"},{"product":"jd_edwards_world_security","vendor":"oracle"},{"product":"mysql_connectors","vendor":"oracle"},{"product":"mysql_enterprise_monitor","vendor":"oracle"},{"product":"mysql_server","vendor":"oracle"},{"product":"peoplesoft_enterprise_peopletools","vendor":"oracle"},{"product":"zfs_storage_appliance_kit","vendor":"oracle"},{"product":"nessus_network_monitor","vendor":"tenable"},{"product":"tenable.sc","vendor":"tenable"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-120","name":"Buffer Copy without Checking Size of Input"}],"description":"In order to decrypt SM2 encrypted data an application is expected to call the API function EVP_PKEY_decrypt(). Typically an application will call this function twice. The first time, on entry, the \"out\" parameter can be NULL and, on exit, the \"outlen\" parameter is populated with the buffer size required to hold the decrypted plaintext. The application can then allocate a sufficiently sized buffer and call EVP_PKEY_decrypt() again, but this time passing a non-NULL value for the \"out\" parameter. A bug in the implementation of the SM2 decryption code means that the calculation of the buffer size required to hold the plaintext returned by the first call to EVP_PKEY_decrypt() can be smaller than the actual size required by the second call. This can lead to a buffer overflow when EVP_PKEY_decrypt() is called by the application a second time with a buffer that is too small. A malicious attacker who is able present SM2 content for decryption to an application could cause attacker chosen data to overflow the buffer by up to a maximum of 62 bytes altering the contents of other data held after the buffer, possibly changing application behaviour or causing the application to crash. The location of the buffer is application dependent but is typically heap allocated. Fixed in OpenSSL 1.1.1l (Affected 1.1.1-1.1.1k).","ecosystems":["crates.io"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"SM2 Decryption Buffer Overflow","id":"CVE-2021-3711","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":"debian:debian_linux","products":["debian:debian_linux","netapp:active_iq_unified_manager","netapp:clustered_data_ontap","netapp:e-series_santricity_os_controller","netapp:hci_management_node","netapp:oncommand_insight","netapp:oncommand_workflow_automation","netapp:snapcenter","netapp:solidfire","openssl:openssl","oracle:essbase","oracle:jd_edwards_enterpriseone_tools","oracle:mysql_enterprise_monitor","oracle:mysql_server","oracle:peoplesoft_enterprise_peopletools","oracle:zfs_storage_appliance_kit"],"type":"memory_corruption","year":"2021"},"n_packages":3,"n_references":17,"next":{"headline":"Read buffer overruns processing ASN.1 strings","id":"CVE-2021-3712"},"packages":[{"ecosystem":"crates.io","fixed":["111.16.0"],"introduced":["0"],"last_affected":[],"package":"openssl-src","purl":null,"source":"GHSA-5ww6-px42-wc85"},{"ecosystem":"crates.io","fixed":["111.16.0"],"introduced":["0"],"last_affected":[],"package":"openssl-src","purl":"pkg:cargo/openssl-src","source":"GHSA-5ww6-px42-wc85"},{"ecosystem":"crates.io","fixed":["111.16.0"],"introduced":["0.0.0-0"],"last_affected":[],"package":"openssl-src","purl":"pkg:cargo/openssl-src","source":"RUSTSEC-2021-0097"}],"prev":{"headline":"Apport info disclosure via path traversal bug in read_file","id":"CVE-2021-3710"},"products":["OpenSSL"],"published":"2021-08-24","related":[{"cvss_score":10,"headline":"ProFTPD Improper Access Control","id":"CVE-2015-3306","kev_date_added":"2026-10-08","published":"2015-05-18"},{"cvss_score":9.9,"headline":"RoundCube Webmail Deserialization of Untrusted Data","id":"CVE-2025-49113","kev_date_added":"2026-02-20","published":"2025-06-02"},{"cvss_score":9.8,"headline":"GNU InetUtils Argument Injection","id":"CVE-2026-24061","kev_date_added":"2026-01-26","published":"2026-01-21"},{"cvss_score":9.8,"headline":"Linux Kernel Improper Check for Unusual or Exceptional Conditions","id":"CVE-2025-39682","kev_date_added":"2026-09-18","published":"2025-09-05"},{"cvss_score":9.8,"headline":"Mozilla Firefox Use-After-Free","id":"CVE-2024-9680","kev_date_added":"2024-10-15","published":"2024-10-09"},{"cvss_score":9.8,"headline":"RARLAB UnRAR Directory Traversal","id":"CVE-2022-30333","kev_date_added":"2022-08-09","published":"2022-05-09"},{"cvss_score":9.8,"headline":"Roundcube Webmail SQL Injection","id":"CVE-2021-44026","kev_date_added":"2023-06-22","published":"2021-11-19"}],"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":"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":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-10-08","vendors":["OpenSSL"]},"summary":"A buffer overflow in OpenSSL's SM2 decryption allows attackers to corrupt memory, potentially causing crashes or executing arbitrary code.","url":"https://insights.sbomify.com/CVE-2021-3711/"}