Lucene search
K

ImageMagick < 6.9.13-32 / 7.0 < 7.1.2-7 Integer Overflow (GGHSA-9pp9-cfwx-54rm)

🗓️ 25 Nov 2025 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 4 Views

ImageMagick versions before 6.9.13-32 and 7.0 before 7.1.2-7 have a 32 bit BMP decoder overflow vulnerability.

Related
Refs
Code
ReporterTitlePublishedViews
Family
AlpineLinux
CVE-2025-57803
26 Aug 202517:25
alpinelinux
AlpineLinux
CVE-2025-62171
17 Oct 202516:30
alpinelinux
AstraLinux
Astra Linux – Vulnerability in imagemagick
20 May 202605:53
astralinux
Circl
CVE-2025-57803
26 Aug 202506:17
circl
Circl
CVE-2025-62171
17 Oct 202509:03
circl
CNNVD
ImageMagick 安全漏洞
26 Aug 202500:00
cnnvd
CNNVD
ImageMagick 输入验证错误漏洞
17 Oct 202500:00
cnnvd
CVE
CVE-2025-57803
26 Aug 202517:25
cve
CVE
CVE-2025-62171
17 Oct 202516:30
cve
Cvelist
CVE-2025-57803 ImageMagick (WriteBMPImage): 32-bit integer overflow when writing BMP scanline stride → heap buffer overflow
26 Aug 202517:25
cvelist
Rows per page
#%NASL_MIN_LEVEL 80900
##
# (C) Tenable, Inc.
##

include('compat.inc');

if (description)
{
  script_id(276810);
  script_version("1.5");
  script_set_attribute(attribute:"plugin_modification_date", value:"2026/03/03");

  script_cve_id("CVE-2025-62171");

  script_name(english:"ImageMagick < 6.9.13-32 / 7.0 < 7.1.2-7 Integer Overflow (GGHSA-9pp9-cfwx-54rm)");

  script_set_attribute(attribute:"synopsis", value:
"The remote host has an application installed that is affected by integer overflow vulnerability.");
  script_set_attribute(attribute:"description", value:
"The remote host has a version of ImageMagick installed that is prior to 6.9.13-32, 7.0 prior to 7.1.2-7. It is, 
therefore, affected by integer overflow vulnerability as referenced in GGHSA-9pp9-cfwx-54rm advisory.

  - ImageMagick is an open source software suite for displaying, converting, and editing raster image files. 
    In ImageMagick versions prior to 7.1.2-7 and 6.9.13-32, an integer overflow vulnerability exists in the 
    BMP decoder on 32-bit systems. The vulnerability occurs in coders/bmp.c when calculating the extent 
    value by multiplying image columns by bits per pixel. On 32-bit systems with size_t of 4 bytes, a 
    malicious BMP file with specific dimensions can cause this multiplication to overflow and wrap to zero. 
    The overflow check added to address CVE-2025-57803 is placed after the overflow occurs, making it 
    ineffective. A specially crafted 58-byte BMP file with width set to 536,870,912 and 32 bits per pixel can 
    trigger this overflow, causing the bytes_per_line calculation to become zero. This vulnerability only 
    affects 32-bit builds of ImageMagick where default resource limits for width, height, and area have been 
    manually increased beyond their defaults. 64-bit systems with size_t of 8 bytes are not vulnerable.
    (CVE-2025-62171)

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/ImageMagick/ImageMagick/security/advisories/GHSA-9pp9-cfwx-54rm
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?5889c6af");
  script_set_attribute(attribute:"solution", value:
"Upgrade to ImageMagick version 6.9.13-32, 7.1.2-7 or later.");
  script_set_attribute(attribute:"agent", value:"unix");
  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:POC/RL:OF/RC:C");
  script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:P/RL:O/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2025-62171");

  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2025/10/17");
  script_set_attribute(attribute:"patch_publication_date", value:"2025/10/17");
  script_set_attribute(attribute:"plugin_publication_date", value:"2025/11/25");

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

  script_category(ACT_GATHER_INFO);
  script_family(english:"Misc.");

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

  script_dependencies("imagemagick_nix_installed.nbin");
  script_require_keys("installed_sw/ImageMagick");

  exit(0);
}

include('vcf.inc');
include('http.inc');

if ('linux' >!< tolower(get_kb_item('Host/uname')))
  audit(AUDIT_OS_NOT, 'Linux');

var cpu = get_kb_item("Host/cpu");

if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
if ("x86_64" >< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_ARCH_NOT, "i686 / i386, this vulnerability affects only 32 bit systems", cpu);

var app_info = vcf::get_app_info(app:'ImageMagick');

var constraints = [
  { 'min_version' : '6.0.0.0', 'max_version' : '6.9.13.30', 'fixed_display' : '6.9.13-32' },
  { 'min_version' : '7.0.0.0', 'max_version' : '7.1.2.5', 'fixed_display' : '7.1.2-7' }
];

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

03 Mar 2026 00:00Current
7.2High risk
Vulners AI Score7.2
CVSS 3.17.5 - 8.8
EPSS0.00147
SSVC
4