CVE-2025-57807
C# Análise e mitigação de vulnerabilidades

Visão geral

ImageMagick versions lower than 14.8.2 contain a critical heap-based buffer overflow vulnerability (CVE-2025-57807) discovered on September 5, 2025. The vulnerability affects the MagickCore blob subsystem, specifically in the SeekBlob() and WriteBlob() functions. The flaw allows attackers to corrupt memory through a heap out-of-bounds write condition, potentially leading to remote code execution (GitHub Advisory, NVD).

Detalhes técnicos

The vulnerability stems from a contract mismatch in BlobStream's functions. SeekBlob() allows advancing the stream offset beyond the current end without increasing capacity, while WriteBlob() expands by quantum + length instead of offset + length, and copies to data + offset. When offset is significantly larger than extent, the copy operation targets memory beyond the allocation, producing a deterministic heap write on 64-bit builds. The vulnerability has received a CVSS v3.1 base score of 9.8 (Critical), indicating its severe nature. The flaw is tracked under multiple CWE categories: CWE-122 (Heap-based Buffer Overflow), CWE-131 (Incorrect Calculation of Buffer Size), and CWE-787 (Out-of-bounds Write) (GitHub Advisory, Snyk).

Impacto

The vulnerability's impact is severe, potentially allowing attackers to achieve remote code execution through memory corruption. Successful exploitation can lead to a total loss of confidentiality (allowing access to sensitive data), integrity (enabling file/data modification), and availability (service termination). The vulnerability is particularly dangerous in server-side image processing scenarios where ImageMagick is network-reachable without authentication or user interaction (Security Online, GitHub Advisory).

Mitigação e soluções alternativas

The vulnerability has been patched in ImageMagick versions 7.1.2-3 and 6.9.13-29. Users are strongly advised to upgrade to these or later versions. The fix ensures that before copying length bytes at offset, the code enforces extent ≥ offset + length with overflow-checked arithmetic. The patch also includes additional hardening measures such as documenting SeekBlob() restrictions and adding forward-seek test cases (GitHub Commit, GitHub Advisory).

Recursos adicionais


OrigemEste relatório foi gerado usando IA

Relacionado C# Vulnerabilidades:

CVE ID

Gravidade

Pontuação

Tecnologias

Nome do componente

Exploração do CISA KEV

Tem correção

Data de publicação

CVE-2025-64095CRITICAL9.8
  • C#C#
  • DNN.PLATFORM
NãoSimOct 28, 2025
CVE-2025-62594MEDIUM5.5
  • C#C#
  • ImageMagick-config-7-upstream
NãoSimOct 27, 2025
CVE-2025-64094MEDIUM5.4
  • C#C#
  • DotNetNuke.Core
NãoSimOct 28, 2025
CVE-2025-65955MEDIUM4.9
  • C#C#
  • Magick.NET-Q16-HDRI-x64
NãoSimDec 02, 2025
CVE-2025-62802MEDIUM4.3
  • C#C#
  • Dnn.Platform
NãoSimOct 28, 2025

Avaliação de vulnerabilidade gratuita

Compare sua postura de segurança na nuvem

Avalie suas práticas de segurança na nuvem em 9 domínios de segurança para comparar seu nível de risco e identificar lacunas em suas defesas.

Solicitar avaliação

Marque uma demonstração personalizada

Pronto para ver a Wiz em ação?

"A melhor experiência do usuário que eu já vi, fornece visibilidade total para cargas de trabalho na nuvem."
David EstlickCISO
"A Wiz fornece um único painel de vidro para ver o que está acontecendo em nossos ambientes de nuvem."
Adão FletcherDiretor de Segurança
"Sabemos que se a Wiz identifica algo como crítico, na verdade é."
Greg PoniatowskiChefe de Gerenciamento de Ameaças e Vulnerabilidades