← Voltar ao feed

Ghostscript CVE-2026-125396 Type 1 font use-after-free allows -dSAFER sandbox escape and RCE; PoC public, no in-the-wild attacks

4 fonte(s) · 4 atualização(ões) · publicado 22/11/2026 02:03 · coletado há 1 semana

Matéria consolidada. Reúne 2 matérias que o Tifon tinha publicado separadamente sobre a mesma história. A IA reescreveu o relatório com o que as 4 fontes trouxeram em 24/11/2026 00:07; os links antigos trazem para cá.

Fontes: darkwebinformer.com ↗ gbhackers.com ↗ securityonline.info ↗ thehackernews.com ↗

pwn.ai researchers disclosed CVE-2026-125396, also named Upload2Shell (darkwebinformer.com), a use-after-free in the Type 1 font loader of Ghostscript (CVSS 8.5, identified as a CVSS 4.0 score by darkwebinformer.com). A crafted file can escape the -dSAFER sandbox and execute commands on Linux servers (thehackernews.com, securityonline.info). Artifex patched it in Ghostscript 10.08.0 on September 8, 2026, but many Linux distributions, container images and application bundles still ship vulnerable versions. pwn.ai showed the flaw can be reached through ordinary file upload, preview, email and print features in about ten popular applications, including Roundcube, WordPress plugins, MediaWiki, DokuWiki, Plesk, CUPS print servers and shared print queues (thehackernews.com, securityonline.info, darkwebinformer.com). Roundcube is reportedly exploitable just by viewing an email, with no click on the attachment needed (darkwebinformer.com). By November 23, 2026 (securityonline.info), proof-of-concept code had been published, which significantly lowers the bar for exploitation. No exploitation in the wild has been reported so far by any of the sources.

Entenda a falha

A vulnerabilidade

CVE-2026-125396 (Upload2Shell, CVSS 4.0 score 8.5) is a use-after-free in the Type 1 font loader of Ghostscript. A crafted file escapes the -dSAFER sandbox and runs commands as the low-privilege user of the service that renders it. Ghostscript 10.07 and earlier (before 10.08.0) is affected; 10.08.0, released September 8, 2026, fixes it. Applications pass untrusted files to Ghostscript, so exposure can be remote and unauthenticated, for example through email attachments or anonymous print jobs. Some paths, such as Forminator and Essential Addons for Elementor, depend on specific configurations. The story also lists CVE-2026-65640, a distinct WordPress upload-path flaw fixed in 7.0.4. No exploitation in the wild has been reported.

Como funciona

Applications rarely call Ghostscript directly. On WordPress, generating a PDF preview calls Imagick, which hands the document to Ghostscript; other image libraries, attachment previews and print queues feed it too. A malicious PostScript file can be disguised as an image or document. Merely storing the upload does not trigger the bug; the file must reach the renderer. In Roundcube, researchers say viewing a crafted email is enough, with no click on the attachment. Ghostscript then loads a crafted Type 1 font through a loader partly written in PostScript. A helper does a privileged write to protected font dictionaries, a crafted font makes an earlier step fail, and a custom error handler reuses the pending write. That leaves a reference to freed memory that the interpreter later reuses, giving a write-what-where primitive.

Por que é vulnerável

The helper needed a privileged internal operation to update protected font dictionaries but did not validate its inputs first. A failure in an earlier step could therefore be turned, through a custom error handler, into a reuse of the pending privileged write, leaving a dangling reference to freed memory. The resulting memory corruption let the researchers defeat the -dSAFER protections, which are meant to restrict what untrusted documents can do. Developer Ken Sharp called the step 'an ancient piece of code well known to be a vulnerability, but difficult to eradicate'. Artifex fixed it in 10.08.0 and is refactoring the legacy internal code; the articles give no further detail on the change.

Onde está

The Type 1 font loader in Ghostscript (ghostpdl), in a PostScript helper involving .putgstringcopy and .forceput recovery; the articles name no file or commit.

Como foi descoberta

pwn.ai researchers, including Paulos Yibelo, detailed the flaw around November 21, 2026 and named it Upload2Shell. They tested it through ordinary upload, preview, email and print features in about ten applications, including Roundcube, WordPress plugins, MediaWiki, DokuWiki, Plesk and CUPS. Google services were also named among affected contexts, and some of their other findings are separate Ghostscript bugs. Artifex patched it on September 8, 2026, ahead of the public write-up, and distributions and application vendors are issuing their own fixes. The articles do not say how or when the bug was first found or reported to the vendor.

PoC pública

Proof-of-concept code had been published by November 23, 2026, according to securityonline.info; pwn.ai also published a technical write-up with a self-contained PostScript proof. According to The Hacker News it shows only the core memory trick: it changes a value inside the running interpreter and restores it, running no shell command, and on 10.08.0 it fails before that point. The full command-execution chain is described but not packaged as one file. The researchers demonstrated command execution in Roundcube 1.7.2, WordPress 7.0.2 (Forminator and Essential Addons for Elementor) and a shared Debian 13 CUPS queue, as user lp. Public details lower the bar, so patching, including bundled copies in containers, is urgent even without reported attacks.

Publicada em: pwn.ai/upload2shell/research.html ↗

Explicação gerada por IA a partir da matéria e dos artigos, em 24/11/2026 00:22.

Detalhes técnicos

  • The bug is a use-after-free (memory corruption) in Ghostscript's font loading component, specifically the Type 1 font loader, and it bypasses the -dSAFER sandbox (thehackernews.com, securityonline.info, darkwebinformer.com).
  • Affected: Ghostscript versions before 10.08.0 (securityonline.info).
  • Attack vectors: files reach Ghostscript indirectly through image processing libraries and upload, preview, conversion or print workflows. Unauthenticated paths include anonymous print jobs and email attachments (thehackernews.com).
  • The malicious file is a crafted PostScript file disguised as an image or document, and commands run with the permissions of the affected service (darkwebinformer.com).
  • Code execution runs as the low-privilege user that runs the rendering processes (thehackernews.com).
  • pwn.ai reported working attacks via viewing an email in Roundcube (no attachment click needed) and via Debian 13 print servers, plus WordPress, Forminator, Elementor, MediaWiki, DokuWiki and Plesk under specific configurations. Darkwebinformer.com also lists several document management systems as affected processing paths. Some of these paths need specific configurations (darkwebinformer.com).
  • Google services were also named among the affected application contexts (securityonline.info).
  • Artifex is refactoring the legacy internal code behind the flaw (thehackernews.com).
  • WordPress separately fixed a related but distinct upload-path vulnerability, CVE-2026-65640, before the Ghostscript fix (thehackernews.com).

Detalhes da correção

  • Ghostscript 10.08.0 released September 8, 2026 patches CVE-2026-125396 (artifex.com).
  • WordPress fixed CVE-2026-65640 in version 7.0.4.

Remediação

  • Update Ghostscript to 10.08.0 or later, and check distribution packages, container images and application bundles that embed their own copy. Also apply fixes from application vendors and Linux distributions (darkwebinformer.com).
  • Update WordPress to 7.0.4 or later.
  • Require authentication on print queues and secure upload paths.
  • Review plugin configurations that allow unauthenticated uploads to media library (Forminator, Essential Addons for Elementor).
  • Suspend preview generation for untrusted uploads if immediate patching not possible.
  • Isolate rendering processes with least privilege, restrict filesystem and network access.

Additional Context Added

Recent research detailed exposure on WordPress via Imagick's PDF preview generation as a vector for CVE-2026-125396, explaining the dependency chain and permissions involved, and highlighting infection risks from public forms in certain plugin setups. Separate reports of command execution in Roundcube and Debian 13 CUPS shared print queue were also confirmed, underscoring the broad impact beyond WordPress.

Linha do tempo

  1. darkwebinformer.com ↗ · pub. 23/11/2026 13:11 · coletado 23/11 15:00

    Ghostscript Upload2Shell (CVE-2026-125396) Type 1 font flaw enables -dSAFER bypass and RCE via uploads, email and print jobs

    The article adds a CVSS 4.0 vector label (8.5) and extra affected processing paths: DokuWiki, Plesk and several document management systems. It also reports that Roundcube is exploitable by viewing an email, with no click on the attachment needed.

    ler a análise desta fonte

    The article adds a CVSS 4.0 vector label (8.5) and extra affected processing paths: DokuWiki, Plesk and several document management systems. It also reports that Roundcube is exploitable by viewing an email, with no click on the attachment needed.

    pwn.ai researchers disclosed Upload2Shell (CVE-2026-125396), a memory corruption flaw in the Type 1 font loader of Ghostscript. The article gives it a CVSS 4.0 score of 8.5. A crafted PostScript file disguised as an image or document can bypass the -dSAFER sandbox and run commands with the permissions of the affected service. pwn.ai reported working attacks through viewing an email in Roundcube (no click on the attachment needed) and through Debian 13 print servers. It also reported attacks on WordPress, Forminator, Elementor, MediaWiki, DokuWiki and Plesk under specific configurations. Artifex fixed the flaw in Ghostscript 10.08.0, released September 8. The article does not report exploitation in the wild. This record rests on the article alone, because no web research was done.

    Technical Details

    • The flaw sits in Ghostscript's Type 1 font loader. It is a memory corruption bug that bypasses -dSAFER.
    • Applications pass untrusted files to Ghostscript through image conversion and preview functions.
    • Some of the reported paths need specific configurations.

    Remediation

    • Install Ghostscript 10.08.0 or later, and apply the fixes from application vendors and Linux distributions.
    • Check that applications and containers do not use vulnerable Ghostscript builds.
  2. gbhackers.com ↗ · pub. 23/11/2026 02:14 · coletado 23/11 03:00

    Ghostscript Upload2Shell Flaw Enables RCE on WordPress Sites via Imagick PDF Preview

    This article provides detailed context on the WordPress exposure vector of CVE-2026-125396 through Imagick's PDF preview generation and highlights the interactions with WordPress roles and plugins (Forminator, Essential Addons for Elementor), clarifies the origin of the vulnerability in the Type 1 font loader, and supplies additional mitigation recommendations focused on WordPress environments and rendering isolation. It also notes separate related findings in Roundcube and shared CUPS print queues.

    ler a análise desta fonte

    This article provides detailed context on the WordPress exposure vector of CVE-2026-125396 through Imagick's PDF preview generation and highlights the interactions with WordPress roles and plugins (Forminator, Essential Addons for Elementor), clarifies the origin of the vulnerability in the Type 1 font loader, and supplies additional mitigation recommendations focused on WordPress environments and rendering isolation. It also notes separate related findings in Roundcube and shared CUPS print queues.

    A newly detailed Ghostscript vulnerability named Upload2Shell (CVE-2026-125396) affects versions prior to 10.08.0, enabling remote code execution (RCE) during PDF preview generation on WordPress sites that use the Imagick extension. The flaw leverages a use-after-free in the Type 1 font loader, bypassing Ghostscript's -dSAFER sandbox protections, allowing commands to execute with the renderer's permissions. WordPress sites are exposed when PDFs reach the vulnerable renderer through Imagick, which is called during preview generation, even without direct invocation of Ghostscript. The vulnerability requires triggering the rendering process, so mere upload is insufficient. The WordPress core related exposure (CVE-2026-65640) is fixed in version 7.0.4, but the underlying Ghostscript flaw must be patched separately. Certain plugin configurations expose document processing to unauthenticated users, increasing risk. Similar issues exist in Roundcube and CUPS on Debian 13. Mitigation includes updating Ghostscript to 10.08.0+, updating WordPress and plugins, suspending preview generation for untrusted uploads, and isolating rendering processes. This vulnerability demonstrates how local flaws can have remote risk when exposed through network-facing services.

  3. securityonline.info ↗ · pub. 22/11/2026 21:00 · coletado 22/11 22:00

    Ghostscript Type 1 Font Loader Use-After-Free Leads to RCE (CVE-2026-125396) with PoC Published

    ler a análise desta fonte

    Researchers at pwn.ai disclosed CVE-2026-125396, a high-severity (CVSS 8.5) use-after-free vulnerability in Ghostscript's Type 1 font loader that allows remote code execution by escaping the -dSAFER sandbox. The flaw affects Ghostscript versions before 10.08.0 and is exploitable via crafted documents that reach Ghostscript through common image processing libraries in applications such as Roundcube, WordPress, MediaWiki, CUPS print servers, and Google services. Although patched upstream on September 8, 2026, many Linux distributions and application bundles remain vulnerable, and the public release of proof-of-concept code lowers the attack bar significantly. No confirmed exploitation in the wild has been reported yet, but the impact is notable due to the broad application and indirect reach through file uploads and previews.

  4. thehackernews.com ↗ · pub. 22/11/2026 02:03 · coletado 22/11 05:00 primeiro registro

    Ghostscript sandbox escape RCE (CVE-2026-125396) via crafted file uploads demonstrated in common Linux apps

    ler a análise desta fonte

    A critical use-after-free vulnerability in the font loading component of Ghostscript (CVE-2026-125396) allowed crafted files to escape the -dSAFER sandbox and execute commands on Linux servers processing them. Security firm pwn.ai demonstrated that this flaw could be exploited through common file upload, preview, and print features in about ten popular applications, including WordPress plugins, Roundcube webmail, and shared print queues. The flaw was patched by Artifex in Ghostscript version 10.08.0 on September 8, 2026, with a CVSS score of 8.5. Exploitation paths included unauthenticated access such as anonymous print jobs and email attachments, mainly targeting the low-privilege user running rendering processes. Legacy internal code posing this vulnerability is being refactored by the vendor. However, vulnerable Ghostscript versions still persist in various Linux distributions and container images, making timely updates and mitigations critical. Additional mitigations include enforcing authentication on print queues and restricting accepted file types for image processing. WordPress addressed a related but separate upload path vulnerability (CVE-2026-65640) prior to this fix. No attacks in the wild have been reported thus far.