Lucene search
K

Libheif < 1.22.1 OOB Read (macOS)

🗓️ 18 Jun 2026 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 4 Views

Libheif pre-1.22.1 on macOS has an out-of-bounds read in the HEIF decoder from wrapping offsets.

Related
Refs
Code
ReporterTitlePublishedViews
Family
ATTACKERKB
CVE-2026-49271
19 Jun 202617:16
attackerkb
CVE
CVE-2026-49271
19 Jun 202617:16
cve
Cvelist
CVE-2026-49271 libheif: Wrapped icef compressed-unit range check causes out-of-bounds read in uncompressed HEIF decoder
19 Jun 202617:16
cvelist
Debian CVE
CVE-2026-49271
19 Jun 202617:16
debiancve
EUVD
EUVD-2026-38055
19 Jun 202617:16
euvd
NVD
CVE-2026-49271
19 Jun 202618:16
nvd
OPENSUSE Linux
gdk-pixbuf-loader-libheif-1.23.0-2.1 on GA media (moderate)
11 Jun 202600:00
opensuse
OSV
DEBIAN-CVE-2026-49271
19 Jun 202620:48
osv
OSV
ECHO-77C2-91A0-4936
20 Jun 202609:10
osv
OSV
OPENSUSE-SU-2026:10983-1 gdk-pixbuf-loader-libheif-1.23.0-2.1 on GA media
9 Jun 202600:00
osv
Rows per page
#%NASL_MIN_LEVEL 80900
##
# (C) Tenable, Inc.
##

include('compat.inc');

if (description)
{
  script_id(321518);
  script_version("1.2");
  script_set_attribute(attribute:"plugin_modification_date", value:"2026/06/20");

  script_cve_id("CVE-2026-49271");

  script_name(english:"Libheif < 1.22.1 OOB Read (macOS)");

  script_set_attribute(attribute:"synopsis", value:
"Libheif running on the remote host is affected by an out-of-bounds read vulnerability.");
  script_set_attribute(attribute:"description", value:
"According to its self-reported version, libheif prior to 1.22.1 is affected by an out-of-bounds read vulnerability. The
uncompressed HEIF decoder validates explicit icef compressed-unit offsets using unit_offset + unit_size. Because the
addition can wrap, a crafted HEIF file can pass the range check and then construct a vector from iterators outside the
compressed item buffer, producing an out-of-bounds heap read and crash.

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version
number.");
  # https://github.com/strukturag/libheif/security/advisories/GHSA-r7qj-cg5r-r6vf
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?b101751d");
  script_set_attribute(attribute:"solution", value:
"Upgrade to libheif version 1.22.1 or later.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
  script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2026-49271");

  script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"false");

  script_set_attribute(attribute:"vuln_publication_date", value:"2026/05/25");
  script_set_attribute(attribute:"patch_publication_date", value:"2026/05/25");
  script_set_attribute(attribute:"plugin_publication_date", value:"2026/06/18");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:struktur:libheif");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"MacOS X Local Security Checks");

  script_copyright(english:"This script is Copyright (C) 2026 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("libheif_macos_installed.nbin");
  script_require_keys("Host/local_checks_enabled", "Host/MacOSX/Version", "installed_sw/libheif");

  exit(0);
}

include('vcf.inc');

vcf::add_separator('_');
var app_info = vcf::get_app_info(app:'libheif');

var constraints = [
  { 'fixed_version' : '1.22.1' }
];

vcf::check_version_and_report(app_info:app_info, constraints:constraints, severity:SECURITY_HOLE);

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

20 Jun 2026 00:00Current
5.9Medium risk
Vulners AI Score5.9
CVSS 3.16.5
EPSS0.00037
4