{"answers":{"affected":"It affects 7 products.","exploited":"There is no known exploitation of CVE-2021-27218 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2021-27218 is a high-severity vulnerability in Debian Debian Linux, published on 15 Feb 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-27218 and fix it if it is affected.\n\nWhat it is: CVE-2021-27218 is a high-severity vulnerability in Debian Debian Linux, published on 15 Feb 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-27218 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-27218/ (Markdown: https://insights.sbomify.com/CVE-2021-27218/index.md)","id":"CVE-2021-27218","markdown":"https://insights.sbomify.com/CVE-2021-27218/index.md","name":"CVE-2021-27218","record":{"aliases":["ALPINE-CVE-2021-27218","ALSA-2021:3058","AZL-6437","CLSA-2023-1696352100","DEBIAN-CVE-2021-27218","GHSA-vvj7-w55j-xgmw","JLSEC-2025-156","RHSA-2021:3058","RLSA-2021:3058","UBUNTU-CVE-2021-27218"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["other"],"network_reachable":"yes","non_default_config":false,"product_category":"GLib library","requires_auth":"none","summary":"An integer overflow in GLib's g_byte_array_new_take() causes length truncation for buffers over 4GB, potentially leading to memory corruption or logic errors.","user_interaction":"not_required","vuln_class":"integer_overflow"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"brocade_fabric_operating_system_firmware","vendor":"broadcom"},{"product":"debian_linux","vendor":"debian"},{"product":"fedora","vendor":"fedoraproject"},{"product":"glib","vendor":"gnome"},{"product":"active_iq_unified_manager","vendor":"netapp"},{"product":"cloud_backup","vendor":"netapp"},{"product":"e-series_performance_analyzer","vendor":"netapp"}],"cvss":{"score":7.5,"severity":"high","source":"nvd","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-681","name":"Incorrect Conversion between Numeric Types"}],"description":"An issue was discovered in GNOME GLib before 2.66.7 and 2.67.x before 2.67.4. If g_byte_array_new_take() was called with a buffer of 4GB or more on a 64-bit platform, the length would be truncated modulo 2**32, causing unintended length truncation.","ecosystems":["AlmaLinux:8","Red Hat:enterprise_linux:8::baseos","Red Hat:enterprise_linux:8::crb","Rocky Linux:8"],"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":"Integer overflow in n/a","id":"CVE-2021-27218","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"debian:debian_linux","products":["debian:debian_linux","fedoraproject:fedora","netapp:active_iq_unified_manager","netapp:cloud_backup","netapp:e-series_performance_analyzer"],"type":"integer_overflow","year":"2021"},"n_packages":19,"n_references":10,"next":{"headline":"Integer overflow in n/a","id":"CVE-2021-27219"},"packages":[{"ecosystem":"AlmaLinux:8","fixed":["2.56.4-10.el8_4.1"],"introduced":["0"],"last_affected":[],"package":"glib2-doc","purl":"pkg:rpm/almalinux/glib2-doc","source":"ALSA-2021:3058"},{"ecosystem":"AlmaLinux:8","fixed":["2.56.4-10.el8_4.1"],"introduced":["0"],"last_affected":[],"package":"glib2-static","purl":"pkg:rpm/almalinux/glib2-static","source":"ALSA-2021:3058"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:2.56.4-10.el8_4.1"],"introduced":["0"],"last_affected":[],"package":"glib2","purl":"pkg:rpm/redhat/glib2","source":"RHSA-2021:3058"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:2.56.4-10.el8_4.1"],"introduced":["0"],"last_affected":[],"package":"glib2-debuginfo","purl":"pkg:rpm/redhat/glib2-debuginfo","source":"RHSA-2021:3058"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:2.56.4-10.el8_4.1"],"introduced":["0"],"last_affected":[],"package":"glib2-debugsource","purl":"pkg:rpm/redhat/glib2-debugsource","source":"RHSA-2021:3058"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:2.56.4-10.el8_4.1"],"introduced":["0"],"last_affected":[],"package":"glib2-devel","purl":"pkg:rpm/redhat/glib2-devel","source":"RHSA-2021:3058"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:2.56.4-10.el8_4.1"],"introduced":["0"],"last_affected":[],"package":"glib2-devel-debuginfo","purl":"pkg:rpm/redhat/glib2-devel-debuginfo","source":"RHSA-2021:3058"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:2.56.4-10.el8_4.1"],"introduced":["0"],"last_affected":[],"package":"glib2-fam","purl":"pkg:rpm/redhat/glib2-fam","source":"RHSA-2021:3058"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:2.56.4-10.el8_4.1"],"introduced":["0"],"last_affected":[],"package":"glib2-fam-debuginfo","purl":"pkg:rpm/redhat/glib2-fam-debuginfo","source":"RHSA-2021:3058"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:2.56.4-10.el8_4.1"],"introduced":["0"],"last_affected":[],"package":"glib2-tests","purl":"pkg:rpm/redhat/glib2-tests","source":"RHSA-2021:3058"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:2.56.4-10.el8_4.1"],"introduced":["0"],"last_affected":[],"package":"glib2-tests-debuginfo","purl":"pkg:rpm/redhat/glib2-tests-debuginfo","source":"RHSA-2021:3058"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["0:2.56.4-10.el8_4.1"],"introduced":["0"],"last_affected":[],"package":"glib2-debuginfo","purl":"pkg:rpm/redhat/glib2-debuginfo","source":"RHSA-2021:3058"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["0:2.56.4-10.el8_4.1"],"introduced":["0"],"last_affected":[],"package":"glib2-debugsource","purl":"pkg:rpm/redhat/glib2-debugsource","source":"RHSA-2021:3058"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["0:2.56.4-10.el8_4.1"],"introduced":["0"],"last_affected":[],"package":"glib2-devel-debuginfo","purl":"pkg:rpm/redhat/glib2-devel-debuginfo","source":"RHSA-2021:3058"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["0:2.56.4-10.el8_4.1"],"introduced":["0"],"last_affected":[],"package":"glib2-doc","purl":"pkg:rpm/redhat/glib2-doc","source":"RHSA-2021:3058"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["0:2.56.4-10.el8_4.1"],"introduced":["0"],"last_affected":[],"package":"glib2-fam-debuginfo","purl":"pkg:rpm/redhat/glib2-fam-debuginfo","source":"RHSA-2021:3058"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["0:2.56.4-10.el8_4.1"],"introduced":["0"],"last_affected":[],"package":"glib2-static","purl":"pkg:rpm/redhat/glib2-static","source":"RHSA-2021:3058"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["0:2.56.4-10.el8_4.1"],"introduced":["0"],"last_affected":[],"package":"glib2-tests-debuginfo","purl":"pkg:rpm/redhat/glib2-tests-debuginfo","source":"RHSA-2021:3058"},{"ecosystem":"Rocky Linux:8","fixed":["0:2.56.4-10.el8_4.1"],"introduced":["0"],"last_affected":[],"package":"glib2","purl":"pkg:rpm/rocky-linux/glib2?distro=rocky-linux-8-4-legacy\u0026epoch=0","source":"RLSA-2021:3058"}],"prev":{"headline":"Denial of service in n/a","id":"CVE-2021-27217"},"products":["n/a"],"published":"2021-02-15","related":[{"cvss_score":8.8,"headline":"Path traversal in https://github.com/curl/curl","id":"CVE-2023-27534","kev_date_added":null,"published":"2023-03-30"},{"cvss_score":7.8,"headline":"Privilege escalation in kernel","id":"CVE-2021-4197","kev_date_added":null,"published":"2022-03-23"},{"cvss_score":7.7,"headline":"Auth bypass in https://github.com/curl/curl","id":"CVE-2023-27538","kev_date_added":null,"published":"2023-03-30"},{"cvss_score":7.5,"headline":"Integer overflow in n/a","id":"CVE-2021-27219","kev_date_added":null,"published":"2021-02-15"},{"cvss_score":7.5,"headline":"Denial of service in n/a","id":"CVE-2019-19044","kev_date_added":null,"published":"2019-11-18"},{"cvss_score":7.5,"headline":"Denial of service in n/a","id":"CVE-2019-19052","kev_date_added":null,"published":"2019-11-18"}],"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":"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 integer overflow in GLib's g_byte_array_new_take() causes length truncation for buffers over 4GB, potentially leading to memory corruption or logic errors.","url":"https://insights.sbomify.com/CVE-2021-27218/"}