{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-45142 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2022-45142 is a high-severity vulnerability in Samba, published on 6 Mar 2023. 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-45142 and fix it if it is affected.\n\nWhat it is: CVE-2022-45142 is a high-severity vulnerability in Samba, published on 6 Mar 2023. 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-45142 in the wild and no public exploit code.\n\nAffected product: Samba. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-45142/ (Markdown: https://insights.sbomify.com/CVE-2022-45142/index.md)","id":"CVE-2022-45142","markdown":"https://insights.sbomify.com/CVE-2022-45142/index.md","name":"CVE-2022-45142","record":{"aliases":["ALPINE-CVE-2022-45142","AZL-25604","AZL-34797","CLEANSTART-2024-GP69623","DEBIAN-CVE-2022-45142","DLA-3311-1","DSA-5344-1","GHSA-5gp7-pf54-xc33","MGASA-2023-0098","MINI-rr82-fgx3-x9ph","UBUNTU-CVE-2022-45142","USN-5849-1","openSUSE-SU-2024:12846-1"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Samba","requires_auth":"none","summary":"A logic inversion in Heimdal's GSSAPI implementation allows attackers to bypass message integrity code validation in Samba environments.","user_interaction":"not_required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"heimdal","vendor":"heimdal_project"}],"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:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-354","name":"Improper Validation of Integrity Check Value"}],"description":"The fix for CVE-2022-3437 included changing memcmp to be constant time and a workaround for a compiler bug by adding \"!= 0\" comparisons to the result of memcmp. When these patches were backported to the heimdal-7.7.1 and heimdal-7.8.0 branches (and possibly other branches) a logic inversion sneaked in causing the validation of message integrity codes in gssapi/arcfour to be inverted.","ecosystems":[],"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":"Security feature bypass in Samba","id":"CVE-2022-45142","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"security_feature_bypass","year":"2022"},"n_packages":0,"n_references":2,"next":{"headline":"Apache Tomcat: JsonErrorReportValve escaping","id":"CVE-2022-45143"},"packages":[],"prev":{"headline":"Weak cryptography in Samba","id":"CVE-2022-45141"},"products":["Samba"],"published":"2023-03-06","related":[{"cvss_score":9.8,"headline":"Use after free in n/a","id":"CVE-2022-44640","kev_date_added":null,"published":"2022-12-25"},{"cvss_score":8.8,"headline":"Integer overflow in n/a","id":"CVE-2022-42898","kev_date_added":null,"published":"2022-12-25"},{"cvss_score":7.5,"headline":"Null dereference in Heimdal Software Kerberos","id":"CVE-2022-3116","kev_date_added":null,"published":"2023-03-27"},{"cvss_score":7.5,"headline":"Null dereference in n/a","id":"CVE-2021-44758","kev_date_added":null,"published":"2022-12-26"},{"cvss_score":7.5,"headline":"Auth bypass in samba","id":"CVE-2018-16860","kev_date_added":null,"published":"2019-07-31"},{"cvss_score":7.5,"headline":"Security feature bypass in n/a","id":"CVE-2017-6594","kev_date_added":null,"published":"2017-08-28"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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":"2025-03-06","vendors":["n/a"]},"summary":"A logic inversion in Heimdal's GSSAPI implementation allows attackers to bypass message integrity code validation in Samba environments.","url":"https://insights.sbomify.com/CVE-2022-45142/"}