{"answers":{"affected":"It affects 4 products.","exploited":"There is no known exploitation of CVE-2021-43860 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2021-43860 is a high-severity vulnerability in Debian Debian Linux, published on 12 Jan 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-43860 and fix it if it is affected.\n\nWhat it is: CVE-2021-43860 is a high-severity vulnerability in Debian Debian Linux, published on 12 Jan 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-43860 in the wild and no public exploit code.\n\nAffected product: Debian Debian Linux. 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-43860/ (Markdown: https://insights.sbomify.com/CVE-2021-43860/index.md)","id":"CVE-2021-43860","markdown":"https://insights.sbomify.com/CVE-2021-43860/index.md","name":"CVE-2021-43860","record":{"aliases":["ALSA-2022:1792","CLEANSTART-2024-YF10316","CLSA-2026-1777541348","DEBIAN-CVE-2021-43860","GHSA-qpjc-vq3c-572j","OESA-2022-1520","RHSA-2022:1792","RLSA-2022:1792","UBUNTU-CVE-2021-43860","openSUSE-SU-2024:11740-1"],"analysis":{"component_type":"operating_system","fix_type":"upgrade","impacts":["privilege_escalation","security_bypass"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Linux sandboxing framework","requires_auth":"none","summary":"Attackers can hide malicious permissions from users by exploiting null byte handling in Flatpak metadata, allowing unauthorized access to system resources.","user_interaction":"required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"debian_linux","vendor":"debian"},{"product":"fedora","vendor":"fedoraproject"},{"product":"flatpak","vendor":"flatpak"},{"product":"enterprise_linux","vendor":"redhat"}],"cvss":{"score":8.2,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-276","name":"Incorrect Default Permissions"},{"id":"CWE-269","name":"Improper Privilege Management"}],"description":"Flatpak is a Linux application sandboxing and distribution framework. Prior to versions 1.12.3 and 1.10.6, Flatpak doesn't properly validate that the permissions displayed to the user for an app at install time match the actual permissions granted to the app at runtime, in the case that there's a null byte in the metadata file of an app. Therefore apps can grant themselves permissions without the consent of the user. Flatpak shows permissions to the user during install by reading them from the \"xa.metadata\" key in the commit metadata. This cannot contain a null terminator, because it is an untrusted GVariant. Flatpak compares these permissions to the *actual* metadata, from the \"metadata\" file to ensure it wasn't lied to. However, the actual metadata contents are loaded in several places where they are read as simple C-style strings. That means that, if the metadata file includes a null terminator, only the content of the file from *before* the terminator gets compared to xa.metadata. Thus, any permissions that appear in the metadata file after a null terminator are applied at runtime but not shown to the user. So maliciously crafted apps can give themselves hidden permissions. Users who have Flatpaks installed from untrusted sources are at risk in case the Flatpak has a maliciously crafted metadata file, either initially or in an update. This issue is patched in versions 1.12.3 and 1.10.6. As a workaround, users can manually check the permissions of installed apps by checking the metadata file or the xa.metadata key on the commit metadata.","ecosystems":["AlmaLinux:8","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:8::crb","Rocky Linux:8","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":"Permissions granted to applications can be hidden from the user at install time","id":"CVE-2021-43860","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"debian:debian_linux","products":["debian:debian_linux","fedoraproject:fedora","redhat:enterprise_linux"],"type":"security_feature_bypass","year":"2021"},"n_packages":24,"n_references":11,"next":{"headline":"Incorrect sanitisation function leads to `XSS`","id":"CVE-2021-43861"},"packages":[{"ecosystem":"AlmaLinux:8","fixed":["1.8.7-1.el8"],"introduced":["0"],"last_affected":[],"package":"flatpak","purl":"pkg:rpm/almalinux/flatpak","source":"ALSA-2022:1792"},{"ecosystem":"AlmaLinux:8","fixed":["1.8.7-1.el8"],"introduced":["0"],"last_affected":[],"package":"flatpak-devel","purl":"pkg:rpm/almalinux/flatpak-devel","source":"ALSA-2022:1792"},{"ecosystem":"AlmaLinux:8","fixed":["1.8.7-1.el8"],"introduced":["0"],"last_affected":[],"package":"flatpak-libs","purl":"pkg:rpm/almalinux/flatpak-libs","source":"ALSA-2022:1792"},{"ecosystem":"AlmaLinux:8","fixed":["1.8.7-1.el8"],"introduced":["0"],"last_affected":[],"package":"flatpak-selinux","purl":"pkg:rpm/almalinux/flatpak-selinux","source":"ALSA-2022:1792"},{"ecosystem":"AlmaLinux:8","fixed":["1.8.7-1.el8"],"introduced":["0"],"last_affected":[],"package":"flatpak-session-helper","purl":"pkg:rpm/almalinux/flatpak-session-helper","source":"ALSA-2022:1792"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.8.7-1.el8"],"introduced":["0"],"last_affected":[],"package":"flatpak","purl":"pkg:rpm/redhat/flatpak","source":"RHSA-2022:1792"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.8.7-1.el8"],"introduced":["0"],"last_affected":[],"package":"flatpak-debuginfo","purl":"pkg:rpm/redhat/flatpak-debuginfo","source":"RHSA-2022:1792"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.8.7-1.el8"],"introduced":["0"],"last_affected":[],"package":"flatpak-debugsource","purl":"pkg:rpm/redhat/flatpak-debugsource","source":"RHSA-2022:1792"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.8.7-1.el8"],"introduced":["0"],"last_affected":[],"package":"flatpak-libs","purl":"pkg:rpm/redhat/flatpak-libs","source":"RHSA-2022:1792"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.8.7-1.el8"],"introduced":["0"],"last_affected":[],"package":"flatpak-libs-debuginfo","purl":"pkg:rpm/redhat/flatpak-libs-debuginfo","source":"RHSA-2022:1792"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.8.7-1.el8"],"introduced":["0"],"last_affected":[],"package":"flatpak-selinux","purl":"pkg:rpm/redhat/flatpak-selinux","source":"RHSA-2022:1792"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.8.7-1.el8"],"introduced":["0"],"last_affected":[],"package":"flatpak-session-helper","purl":"pkg:rpm/redhat/flatpak-session-helper","source":"RHSA-2022:1792"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.8.7-1.el8"],"introduced":["0"],"last_affected":[],"package":"flatpak-session-helper-debuginfo","purl":"pkg:rpm/redhat/flatpak-session-helper-debuginfo","source":"RHSA-2022:1792"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.8.7-1.el8"],"introduced":["0"],"last_affected":[],"package":"flatpak-tests-debuginfo","purl":"pkg:rpm/redhat/flatpak-tests-debuginfo","source":"RHSA-2022:1792"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["0:1.8.7-1.el8"],"introduced":["0"],"last_affected":[],"package":"flatpak","purl":"pkg:rpm/redhat/flatpak","source":"RHSA-2022:1792"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["0:1.8.7-1.el8"],"introduced":["0"],"last_affected":[],"package":"flatpak-debuginfo","purl":"pkg:rpm/redhat/flatpak-debuginfo","source":"RHSA-2022:1792"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["0:1.8.7-1.el8"],"introduced":["0"],"last_affected":[],"package":"flatpak-debugsource","purl":"pkg:rpm/redhat/flatpak-debugsource","source":"RHSA-2022:1792"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["0:1.8.7-1.el8"],"introduced":["0"],"last_affected":[],"package":"flatpak-devel","purl":"pkg:rpm/redhat/flatpak-devel","source":"RHSA-2022:1792"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["0:1.8.7-1.el8"],"introduced":["0"],"last_affected":[],"package":"flatpak-libs-debuginfo","purl":"pkg:rpm/redhat/flatpak-libs-debuginfo","source":"RHSA-2022:1792"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["0:1.8.7-1.el8"],"introduced":["0"],"last_affected":[],"package":"flatpak-session-helper","purl":"pkg:rpm/redhat/flatpak-session-helper","source":"RHSA-2022:1792"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["0:1.8.7-1.el8"],"introduced":["0"],"last_affected":[],"package":"flatpak-session-helper-debuginfo","purl":"pkg:rpm/redhat/flatpak-session-helper-debuginfo","source":"RHSA-2022:1792"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["0:1.8.7-1.el8"],"introduced":["0"],"last_affected":[],"package":"flatpak-tests-debuginfo","purl":"pkg:rpm/redhat/flatpak-tests-debuginfo","source":"RHSA-2022:1792"},{"ecosystem":"Rocky Linux:8","fixed":["0:1.8.7-1.el8"],"introduced":["0"],"last_affected":[],"package":"flatpak","purl":"pkg:rpm/rocky-linux/flatpak?distro=rocky-linux-8-6-legacy\u0026epoch=0","source":"RLSA-2022:1792"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.12.3-1.1"],"introduced":["0"],"last_affected":[],"package":"flatpak","purl":"pkg:rpm/opensuse/flatpak\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:11740-1"}],"prev":{"headline":"Denial of Service by injecting highly recursive collections or maps in XStream","id":"CVE-2021-43859"},"products":["flatpak"],"published":"2022-01-12","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":"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":"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":"2024-08-04","vendors":["flatpak"]},"summary":"Attackers can hide malicious permissions from users by exploiting null byte handling in Flatpak metadata, allowing unauthorized access to system resources.","url":"https://insights.sbomify.com/CVE-2021-43860/"}