平台
c
组件
sail
修复版本
930284445.0.1
A buffer overflow vulnerability has been identified in the SAIL image library, specifically within the PSD codec. This flaw arises from a discrepancy between the calculated bytes-per-pixel and the actual allocated buffer size for LAB mode images. Versions prior to 0.3.1 are affected. The vulnerability has been resolved in version 0.3.1.
CVE-2026-40493 影响 SAIL 库,该库用于在各种平台上加载和保存图像。该漏洞位于 PSD 编解码器中,具体在于 LAB 模式下每像素字节数 (bpp) 的计算。在 0.3.1 版本的修复之前,bpp 的计算基于通道数和深度相乘,但像素缓冲区的分配是基于解析后的像素格式进行的。这会导致在 LAB 模式下,通道数为 3,深度为 16 位时,计算出的 bpp 不正确(6 字节),而 BPP40CIELAB 格式仅分配每个像素 5 字节。这种差异会导致缓冲区溢出,可能允许远程代码执行或拒绝服务,具体取决于使用 SAIL 的应用程序上下文。CVSS 严重程度评分为 9.8,表明存在关键风险。
利用 CVE-2026-40493 需要使用漏洞的 SAIL 库处理 LAB 模式下的恶意 PSD 图像。攻击者可以创建专门设计的 PSD 图像来利用 bpp 计算和缓冲区分配中的差异。利用的复杂性取决于使用 SAIL 的应用程序以及已实施的安全措施。能够控制 PSD 图像创建或修改的攻击者可以利用此漏洞。在处理 PSD 图像的应用程序中缺乏输入验证会大大增加被利用的风险。如果漏洞应用程序具有提升的权限,则可能发生远程代码执行。
Applications and systems that utilize the SAIL library to process PSD images are at risk. This includes image editing software, media processing pipelines, and any application that relies on SAIL for image loading and saving. Specifically, systems using older versions of SAIL in automated image processing workflows are particularly vulnerable.
• linux / server:
ps aux | grep sail• generic web:
curl -I <URL_WITH_PSD_FILE>Inspect the response headers for any unusual content-type or content-length values associated with PSD files. Monitor system logs for any crashes or errors related to SAIL or image processing libraries.
disclosure
漏洞利用状态
EPSS
0.06% (17% 百分位)
CISA SSVC
针对 CVE-2026-40493 的主要缓解措施是将 SAIL 库更新到 0.3.1 或更高版本。此版本更正了 PSD 编解码器中 bpp 的不正确计算,从而消除了缓冲区溢出的可能性。如果无法立即更新,建议仔细检查使用 SAIL 处理 LAB 模式下 PSD 图像的代码,查找可能暴露漏洞的潜在使用模式。此外,建议对 PSD 图像实施强大的输入验证,但这并非完整的解决方案,仅能降低风险。监控 PSD 图像来源并限制从不可信来源加载文件也有助于降低风险。
Actualice la biblioteca SAIL a la versión 0.3.1 o posterior para mitigar el desbordamiento del búfer de la pila. La actualización corrige un error en el decodificador PSD que causaba un desbordamiento del búfer de la pila al procesar imágenes LAB de 16 bits debido a una discrepancia en el cálculo de bytes por píxel.
漏洞分析和关键警报直接发送到您的邮箱。
SAIL 是一个开源库,用于加载和保存图像,支持动画、元数据和 ICC 配置文件。
此更新解决了可能导致远程代码执行或拒绝服务的关键漏洞。
仔细检查您的代码,并考虑实施强大的输入验证。
如果您使用的是 SAIL 的 0.3.1 之前的版本,并且以 LAB 模式处理 PSD 图像,则很可能受到影响。
目前没有专门用于检测此漏洞的工具,但建议进行渗透测试和代码分析。
CVSS 向量