{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-4122 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2021-4122 is a medium-severity vulnerability in cryptsetup, published on 24 Aug 2022. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2021-4122 and fix it if it is affected.\n\nWhat it is: CVE-2021-4122 is a medium-severity vulnerability in cryptsetup, published on 24 Aug 2022. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2021-4122 in the wild and no public exploit code.\n\nAffected product: cryptsetup. 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-2021-4122/ (Markdown: https://insights.sbomify.com/CVE-2021-4122/index.md)","id":"CVE-2021-4122","markdown":"https://insights.sbomify.com/CVE-2021-4122/index.md","name":"CVE-2021-4122","record":{"aliases":["ALPINE-CVE-2021-4122","ALSA-2022:0370","CLSA-2022-1643914390","CLSA-2022-1643917881","DEBIAN-CVE-2021-4122","DSA-5070-1","GHSA-8fgw-wvm8-3x84","MGASA-2022-0047","OESA-2022-1532","RHSA-2022:0370","RLSA-2022:0370","SUSE-SU-2022:0144-1","UBUNTU-CVE-2021-4122","USN-5286-1","openSUSE-SU-2022:0144-1","openSUSE-SU-2024:11754-1"],"analysis":{"component_type":"operating_system","fix_type":"patch","impacts":["security_bypass"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Linux disk encryption","requires_auth":"none","summary":"An attacker with physical access can craft a LUKS header to force cryptsetup to disable encryption, bypassing data protection on the medium.","user_interaction":"required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"cryptsetup","vendor":"cryptsetup_project"}],"cvss":{"score":4.3,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-345","name":"Insufficient Verification of Data Authenticity"}],"description":"It was found that a specially crafted LUKS header could trick cryptsetup into disabling encryption during the recovery of the device. An attacker with physical access to the medium, such as a flash disk, could use this flaw to force a user into permanently disabling the encryption layer of that medium.","ecosystems":["AlmaLinux:8","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:8::baseos","Rocky Linux:8","SUSE:Linux Enterprise Micro 5.1","SUSE:Linux Enterprise Module for Basesystem 15 SP3","SUSE:Package Hub 15 SP4","openSUSE:Leap 15.3","openSUSE:Leap 15.4","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":"Security feature bypass in cryptsetup","id":"CVE-2021-4122","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"security_feature_bypass","year":"2021"},"n_packages":26,"n_references":5,"next":{"headline":"Cross-Site Request Forgery (CSRF) in livehelperchat/livehelperchat","id":"CVE-2021-4123"},"packages":[{"ecosystem":"AlmaLinux:8","fixed":["2.3.3-4.el8_5.1"],"introduced":["0"],"last_affected":[],"package":"cryptsetup-devel","purl":"pkg:rpm/almalinux/cryptsetup-devel","source":"ALSA-2022:0370"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:2.3.3-4.el8_5.1"],"introduced":["0"],"last_affected":[],"package":"cryptsetup-debuginfo","purl":"pkg:rpm/redhat/cryptsetup-debuginfo","source":"RHSA-2022:0370"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:2.3.3-4.el8_5.1"],"introduced":["0"],"last_affected":[],"package":"cryptsetup-debugsource","purl":"pkg:rpm/redhat/cryptsetup-debugsource","source":"RHSA-2022:0370"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:2.3.3-4.el8_5.1"],"introduced":["0"],"last_affected":[],"package":"cryptsetup-devel","purl":"pkg:rpm/redhat/cryptsetup-devel","source":"RHSA-2022:0370"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:2.3.3-4.el8_5.1"],"introduced":["0"],"last_affected":[],"package":"cryptsetup-libs-debuginfo","purl":"pkg:rpm/redhat/cryptsetup-libs-debuginfo","source":"RHSA-2022:0370"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:2.3.3-4.el8_5.1"],"introduced":["0"],"last_affected":[],"package":"cryptsetup-reencrypt-debuginfo","purl":"pkg:rpm/redhat/cryptsetup-reencrypt-debuginfo","source":"RHSA-2022:0370"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:2.3.3-4.el8_5.1"],"introduced":["0"],"last_affected":[],"package":"integritysetup-debuginfo","purl":"pkg:rpm/redhat/integritysetup-debuginfo","source":"RHSA-2022:0370"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:2.3.3-4.el8_5.1"],"introduced":["0"],"last_affected":[],"package":"veritysetup-debuginfo","purl":"pkg:rpm/redhat/veritysetup-debuginfo","source":"RHSA-2022:0370"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:2.3.3-4.el8_5.1"],"introduced":["0"],"last_affected":[],"package":"cryptsetup","purl":"pkg:rpm/redhat/cryptsetup","source":"RHSA-2022:0370"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:2.3.3-4.el8_5.1"],"introduced":["0"],"last_affected":[],"package":"cryptsetup-debuginfo","purl":"pkg:rpm/redhat/cryptsetup-debuginfo","source":"RHSA-2022:0370"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:2.3.3-4.el8_5.1"],"introduced":["0"],"last_affected":[],"package":"cryptsetup-debugsource","purl":"pkg:rpm/redhat/cryptsetup-debugsource","source":"RHSA-2022:0370"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:2.3.3-4.el8_5.1"],"introduced":["0"],"last_affected":[],"package":"cryptsetup-libs","purl":"pkg:rpm/redhat/cryptsetup-libs","source":"RHSA-2022:0370"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:2.3.3-4.el8_5.1"],"introduced":["0"],"last_affected":[],"package":"cryptsetup-libs-debuginfo","purl":"pkg:rpm/redhat/cryptsetup-libs-debuginfo","source":"RHSA-2022:0370"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:2.3.3-4.el8_5.1"],"introduced":["0"],"last_affected":[],"package":"cryptsetup-reencrypt","purl":"pkg:rpm/redhat/cryptsetup-reencrypt","source":"RHSA-2022:0370"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:2.3.3-4.el8_5.1"],"introduced":["0"],"last_affected":[],"package":"cryptsetup-reencrypt-debuginfo","purl":"pkg:rpm/redhat/cryptsetup-reencrypt-debuginfo","source":"RHSA-2022:0370"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:2.3.3-4.el8_5.1"],"introduced":["0"],"last_affected":[],"package":"integritysetup","purl":"pkg:rpm/redhat/integritysetup","source":"RHSA-2022:0370"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:2.3.3-4.el8_5.1"],"introduced":["0"],"last_affected":[],"package":"integritysetup-debuginfo","purl":"pkg:rpm/redhat/integritysetup-debuginfo","source":"RHSA-2022:0370"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:2.3.3-4.el8_5.1"],"introduced":["0"],"last_affected":[],"package":"veritysetup","purl":"pkg:rpm/redhat/veritysetup","source":"RHSA-2022:0370"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:2.3.3-4.el8_5.1"],"introduced":["0"],"last_affected":[],"package":"veritysetup-debuginfo","purl":"pkg:rpm/redhat/veritysetup-debuginfo","source":"RHSA-2022:0370"},{"ecosystem":"Rocky Linux:8","fixed":["0:2.3.3-4.el8_5.1"],"introduced":["0"],"last_affected":[],"package":"cryptsetup","purl":"pkg:rpm/rocky-linux/cryptsetup?distro=rocky-linux-8-5-legacy\u0026epoch=0","source":"RLSA-2022:0370"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.1","fixed":["2.3.7-150300.3.5.1"],"introduced":["0"],"last_affected":[],"package":"cryptsetup","purl":"pkg:rpm/suse/cryptsetup\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.1","source":"SUSE-SU-2022:0144-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP3","fixed":["2.3.7-150300.3.5.1"],"introduced":["0"],"last_affected":[],"package":"cryptsetup","purl":"pkg:rpm/suse/cryptsetup\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP3","source":"SUSE-SU-2022:0144-1"},{"ecosystem":"SUSE:Package Hub 15 SP4","fixed":["7.1.0-bp154.2.3.1"],"introduced":["0"],"last_affected":[],"package":"varnish","purl":"pkg:rpm/suse/varnish\u0026distro=SUSE%20Package%20Hub%2015%20SP4","source":"openSUSE-SU-2022:0144-1"},{"ecosystem":"openSUSE:Leap 15.3","fixed":["2.3.7-150300.3.5.1"],"introduced":["0"],"last_affected":[],"package":"cryptsetup","purl":"pkg:rpm/opensuse/cryptsetup\u0026distro=openSUSE%20Leap%2015.3","source":"openSUSE-SU-2022:0144-1"},{"ecosystem":"openSUSE:Leap 15.4","fixed":["7.1.0-bp154.2.3.1"],"introduced":["0"],"last_affected":[],"package":"varnish","purl":"pkg:rpm/opensuse/varnish\u0026distro=openSUSE%20Leap%2015.4","source":"openSUSE-SU-2022:0144-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["2.4.3-1.1"],"introduced":["0"],"last_affected":[],"package":"cryptsetup","purl":"pkg:rpm/opensuse/cryptsetup\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:11754-1"}],"prev":{"headline":"Cross-site Scripting (XSS) - Stored in yetiforcecompany/yetiforcecrm","id":"CVE-2021-4121"},"products":["cryptsetup"],"published":"2022-08-24","related":[{"cvss_score":6.8,"headline":"Auth bypass in n/a","id":"CVE-2016-4484","kev_date_added":null,"published":"2017-01-23"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"BSD","name":"Rocky Linux","prefix":"RLSA"},{"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2026-10-14","vendors":["n/a"]},"summary":"An attacker with physical access can craft a LUKS header to force cryptsetup to disable encryption, bypassing data protection on the medium.","url":"https://insights.sbomify.com/CVE-2021-4122/"}