{"answers":{"affected":"2 open source packages ship an affected version, including openssl-src. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-3996 in the wild and no public exploit code.","fix":"Upgrade openssl-src to 300.0.12 or later.","what":"CVE-2022-3996 is a high-severity denial of service vulnerability in Openssl Openssl, published on 13 Dec 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-3996 and fix it if it is affected.\n\nWhat it is: CVE-2022-3996 is a high-severity denial of service vulnerability in Openssl Openssl, published on 13 Dec 2022. 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-2022-3996 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- openssl-src (crates.io): affected from 300.0.0; fixed in 300.0.12\n- openssl-src (crates.io): affected from 300.0.0; fixed in 300.0.12\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-2022-3996/ (Markdown: https://insights.sbomify.com/CVE-2022-3996/index.md)","id":"CVE-2022-3996","markdown":"https://insights.sbomify.com/CVE-2022-3996/index.md","name":"CVE-2022-3996","record":{"aliases":["ALPINE-CVE-2022-3996","AZL-40306","CLEANSTART-2026-FU56835","DEBIAN-CVE-2022-3996","GHSA-vr8j-hgmm-jh9r","UBUNTU-CVE-2022-3996","openSUSE-SU-2024:12573-1"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":true,"product_category":"OpenSSL library","requires_auth":"none","summary":"A double locking bug in OpenSSL causes a denial of service when processing malformed X.509 policy constraints if policy processing is enabled.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"openssl","cpe":[{"product":"openssl","vendor":"openssl"}],"cvss":{"score":7.5,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-667","name":"Improper Locking"}],"description":"If an X.509 certificate contains a malformed policy constraint and\npolicy processing is enabled, then a write lock will be taken twice\nrecursively.  On some operating systems (most widely: Windows) this\nresults in a denial of service when the affected process hangs.  Policy\nprocessing being enabled on a publicly facing server is not considered\nto be a common setup.\n\nPolicy processing is enabled by passing the `-policy'\nargument to the command line utilities or by calling the\n`X509_VERIFY_PARAM_set1_policies()' function.\n\nUpdate (31 March 2023): The description of the policy processing enablement\nwas corrected based on CVE-2023-0466.","ecosystems":["crates.io","openSUSE:Tumbleweed"],"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":"X.509 Policy Constraints Double Locking","id":"CVE-2022-3996","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":"openssl:openssl","products":["openssl:openssl"],"type":"denial_of_service","year":"2022"},"n_packages":3,"n_references":2,"next":{"headline":"MonikaBrzica scm upis_u_bazu.php sql injection","id":"CVE-2022-3997"},"packages":[{"ecosystem":"crates.io","fixed":["300.0.12"],"introduced":["300.0.0"],"last_affected":[],"package":"openssl-src","purl":null,"source":"GHSA-vr8j-hgmm-jh9r"},{"ecosystem":"crates.io","fixed":["300.0.12"],"introduced":["300.0.0"],"last_affected":[],"package":"openssl-src","purl":"pkg:cargo/openssl-src","source":"GHSA-vr8j-hgmm-jh9r"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["3.0.7-2.1"],"introduced":["0"],"last_affected":[],"package":"openssl-3","purl":"pkg:rpm/opensuse/openssl-3\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:12573-1"}],"prev":{"headline":"TeraWallet – For WooCommerce \u003c= 1.4.3 - Insecure Direct Object Reference","id":"CVE-2022-3995"},"products":["OpenSSL"],"published":"2022-12-13","related":[{"cvss_score":10,"headline":"Null dereference in n/a","id":"CVE-2009-3245","kev_date_added":null,"published":"2010-03-05"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2006-3738","kev_date_added":null,"published":"2006-09-28"},{"cvss_score":9.8,"headline":"Untrusted Sender DN Used as Format String in CMP Response Validation","id":"CVE-2026-63073","kev_date_added":null,"published":"2026-08-25"},{"cvss_score":9.8,"headline":"Use after free in n/a","id":"CVE-2016-6309","kev_date_added":null,"published":"2016-09-26"},{"cvss_score":9.8,"headline":"Integer overflow in n/a","id":"CVE-2016-0799","kev_date_added":null,"published":"2016-03-03"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2016-2842","kev_date_added":null,"published":"2016-03-03"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2003-0545","kev_date_added":null,"published":"2003-10-01"}],"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":"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":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-03","vendors":["OpenSSL"]},"summary":"A double locking bug in OpenSSL causes a denial of service when processing malformed X.509 policy constraints if policy processing is enabled.","url":"https://insights.sbomify.com/CVE-2022-3996/"}