Suspected Vietnam-Linked Hackers Target Southeast Asia in South China Sea Espionage Campaign · 11h Vulnerability in GNU m4 software · 16h Vulnerability in SMSEagle RCDevs OpenOTP SMS integration connector software · 17h Fragnesia: When a Firewall Becomes the Target · 1d Vulnerability in Chainlit software · 1d Vulnerabilities in GNU Screen software · 1d Drupal Warns of New Highly Critical Site Takeover Vulnerability Under Active Exploitation · 1d Hackers Exploit 10 Vulnerabilities Across Mitel, Juniper, Vates, and Danfoss Products · 1d VMware VMSA-0011: When the Hypervisor Becomes the Attack Surface · 2d Vulnerabilities in PrestaHelp phsuperpack module for PrestaShop · 2d Suspected Vietnam-Linked Hackers Target Southeast Asia in South China Sea Espionage Campaign · 11h Vulnerability in GNU m4 software · 16h Vulnerability in SMSEagle RCDevs OpenOTP SMS integration connector software · 17h Fragnesia: When a Firewall Becomes the Target · 1d Vulnerability in Chainlit software · 1d Vulnerabilities in GNU Screen software · 1d Drupal Warns of New Highly Critical Site Takeover Vulnerability Under Active Exploitation · 1d Hackers Exploit 10 Vulnerabilities Across Mitel, Juniper, Vates, and Danfoss Products · 1d VMware VMSA-0011: When the Hypervisor Becomes the Attack Surface · 2d Vulnerabilities in PrestaHelp phsuperpack module for PrestaShop · 2d
🛡️
ACyber Sentinel 安全评估团队
← 返回
⚡ 情报报告

研究人员通过在流行应用中上传精心制作的文件演示Ghostscript沙箱逃逸RCE

Ghostscript中的一个现已修复的漏洞允许精心制作的文件逃离程序的安全沙箱,并在处理它的服务器上运行命令。

Ghostscript是许多Linux服务器用来将上传的PDF、PostScript文件和图像转换为其他格式的解释器,通常不需要应用程序直接调用它。

安全公司pwn.ai本周展示了大约十个常见应用中的普通上传、预览和打印功能如何被欺骗以提供这样的文件。该漏洞被追踪为CVE-2026-125396,并于9月8日修复,目前尚无报告显示该漏洞被用于攻击。

将精心制作的文件传递给Ghostscript很容易,因为应用程序不必直接调用它。像ImageMagick、Pillow、libvips或Qt插件这样的常见图像或文档库会将PostScript或EPS内容传递给Ghostscript进行渲染,即使文件名为.png、.jpg或.pdf。像生成缩略图或裁剪图片这样的常规功能可以启动解释器,具体路径取决于应用程序使用的库。

根本的错误是在Ghostscript加载字体的部分中出现的使用后释放(use-after-free)漏洞。一个精心制作的文档利用它关闭-dSAFER中的检查,该沙箱旨在阻止文档运行命令或访问文件。

安全公司通过将这样的文档传递给大约十个应用程序并观察在服务器上以执行渲染的低权限账户运行的命令来演示结果。

其中几个路径不需要登录:一个匿名打印作业到共享的Debian 13队列,一个电子邮件附件在收件人打开消息时被Roundcube网页邮件处理,以及WordPress插件Forminator和Essential Addons for Elementor中的公共上传表单。

WordPress Core本身需要更多:一个能够上传文件的账户,默认情况下作者及更高角色拥有该权限。尽管该CVE被分类为本地漏洞,但该公司的测试通过打印作业、电子邮件和网络上传从网络访问了Ghostscript。每个应用程序所需的测试版本和访问权限在其影响指数中列出。

开发Ghostscript的Artifex在9月8日的10.08.0版本中修复了该漏洞,并正在将脆弱的内部步骤移入更安全的代码中。处理修复的开发者Ken Sharp在错误报告中称该步骤为“一个众所周知的漏洞的古老代码,但难以根除”。该CVE上周发布,在其安全公告中评分为8.5(满分10)。

WordPress已经在8月12日的7.0.4版本中关闭了自己的上传路径,使用了一个单独的标识符CVE-2026-65640,如其发布说明中所述。该修复和Ghostscript修复覆盖了同一链中的不同点,因此更新一个并不消除对另一个的需求。

更新渲染器

该修复仅在其到达应用程序实际使用的渲染器时有效。更新主操作系统并不会更新容器映像或应用程序中捆绑的Ghostscript的单独副本,因此文档工作者在主包被替换后仍然可以继续运行旧代码。

在Linux发行版中覆盖情况不均匀。根据该公司的调查,截至上周,仍有几个发行版提供脆弱的Ghostscript或修复待定。该列表记录了软件包状态,而不是每个系统的测试攻击路径:

Debian 12(Bookworm):列为脆弱

Amazon Linux 2、2023和2027预览:修复待定

SUSE Linux Enterprise 12 SP5和15的部分:修复进行中

SUSE Linux Enterprise Server 16.0和16.1:修复进行中

openSUSE Leap 16.0和16.1:受影响

该公司尚未确定当前的Red Hat、Rocky Linux、AlmaLinux、Oracle Linux或稳定的Fedora软件包是否包含修复。

在渲染器更新之前,可以通过要求打印队列的身份验证和限制图像处理器接受的文件类型来减少暴露。系统控制也有帮助,在一次测试中,一个AppArmor配置文件阻止了受损的解释器启动shell。

一份已发布的概念证明文件在其技术分析中仅展示了核心内存技巧。它更改了运行中的解释器内的一个值并将其恢复,而不运行shell命令或接触主机上的文件,并且在修复的10.08.0版本中在该点之前失败。

该公司的更广泛研究扩展到生产服务,包括Google,后者上周修复了受影响的路径。它对Dropbox和其他未命名服务的类似问题的报告是单独的Ghostscript漏洞,而不是这个。

觉得这篇文章有趣吗?请在Google新闻、Twitter和LinkedIn上关注我们,以阅读更多我们发布的独家内容。

相关漏洞

CVE-2026-99312 CVSS 8.8 HIGH Received
CVE-2026-99312 - KVM: x86: Unconditionally reset MMU context when emulating INIT
In the Linux kernel, the following vulnerability has been resolved: KVM: x86: Unconditionally reset MMU context when emulating INIT Force an MMU reset when emulating an INIT even if paging was already disabled, as the MMU page role includes guest_mode (L2), i.e. an INIT while L2 is running with CR0.PG=0 will result in KVM running L1 with a stale MMU context. Alternatively, the reset could be scoped strictly to paging being enabled or L2 being active, but SMM is also encoded in the page role. Even though it _should_ be impossible for the vCPU to be INIT'd while SMM is active, there's zero value in not handling SMM. At that point, the only scenario where KVM _doesn't_ need to reset the MMU context is on an INIT with the vCPU running in Real Mode or Unpaged Protect Mode, and while INIT in those modes is somewhat common, it's far from a hot path and re-initializing the MMU is not expensive, especially when the role isn't changing (KVM elides most of the re-configuration in that case). Note, like the Fixes commit, this bug only affects nested SVM as INIT is an unconditional intercept on VMX, i.e. it's impossible to emulate INIT while L2 is active. Temporarily keep the guest TLB flush when CR0.PG is being cleared even though it is fully redundant with the flush that is emitted on all INIT events (KVM itself only does RESET when a vCPU is being created, i.e. when CR0.PG must be '0').
CVE-2026-114938 CVSS 8.1 HIGH Analyzed
CVE-2026-114938 - Vulnerability in the Oracle Java SE, Oracle GraalV
Vulnerability in the Oracle Java SE, Oracle GraalVM for JDK, Oracle GraalVM Enterprise Edition product of Oracle Java SE (component: Compiler). Supported versions that are affected are Oracle Java SE: 8u511b33-perf, 17.0.21.0.3, 21.0.13.0.3, 25.0.5.0.3, 27.0.1.0.3; Oracle GraalVM for JDK: 17.0.21.0.3 and 21.0.13.0.3; Oracle GraalVM Enterprise Edition: 21.3.20.0.3. Difficult to exploit vulnerability allows unauthenticated attacker with network access via multiple protocols to compromise Oracle Java SE, Oracle GraalVM for JDK, Oracle GraalVM Enterprise Edition. Successful attacks of this vulnerability can result in takeover of Oracle Java SE, Oracle GraalVM for JDK, Oracle GraalVM Enterprise Edition. Note: This vulnerability can only be exploited by supplying data to APIs in the specified Component without using Untrusted Java Web Start applications or Untrusted Java applets, such as through a web service. CVSS 3.1 Base Score 8.1 (Confidentiality, Integrity and Availability impacts). CVSS Vector: (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H).
CVE-2026-125396 CVSS 8.5 HIGH Awaiting Analysis
CVE-2026-125396 - Ghostscript before 10.08.0 -dSAFER Bypass via .putgstringcopy .forceput Recovery
Ghostscript before 10.08.0 contains a -dSAFER bypass vulnerability in the .putgstringcopy procedure in gs_fonts.ps, which calls the privileged .forceput operator without checking operand types. Attackers can supply crafted PostScript or PDF documents that trigger a type error, recover .forceput via a custom error handler, and cause a use-after-free across save/restore to execute arbitrary code.
CVE-2026-65640 CVSS 8.8 HIGH Awaiting Analysis
CVE-2026-65640 - WordPress Arbitrary Remote Code Execution via Image Processing
WordPress is vulnerable to a remote code execution vulnerability via malicious Postscript file upload by an Author level user or higher. Prerequisites: * Imagick and Ghostscript in use on the server * A malicious user with the `upload_files` capability This issue affects all versions of WordPress. Version 7.0.4 has been released, containing a fix for the vulnerability, and as a courtesy to users on older branches the fix has been backported to all branches back to 4.7.