Advisory Database
  • Advisories
  • Dependency Scanning
  1. conan
  2. ›
  3. glib
  4. ›
  5. CVE-2021-27218

CVE-2021-27218: Incorrect Conversion between Numeric Types

February 15, 2021 (updated November 9, 2023)

An issue was discovered in GNOME GLib If g_byte_array_new_take() was called with a buffer of 4GB or more on a platform, the length would be truncated modulo 2**32, causing unintended length truncation.

References

  • gitlab.gnome.org/GNOME/glib/-/merge_requests/1942
  • gitlab.gnome.org/GNOME/glib/-/merge_requests/1944
  • nvd.nist.gov/vuln/detail/CVE-2021-27218

Code Behaviors & Features

Detect and mitigate CVE-2021-27218 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.66.7, all versions starting from 2.67.0 before 2.67.4

Fixed versions

  • 2.68.3

Solution

Upgrade to version 2.68.3 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-681: Incorrect Conversion between Numeric Types

Source file

conan/glib/CVE-2021-27218.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:46 +0000.