Skip to content
Access control Advisory Advanced CVE-2026-79109

Improper input validation in Printing (CVE-2026-79109)

A compromised renderer can forge the is_modifiable flag in print preview IPC messages, bypassing the sandboxed PrintCompositor and sending arbitrary PDF bytes to the unsandboxed PrintBackendService on macOS. Parsing these bytes with Apple CoreGraphics could lead to a full sandbox escape.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 5 months

Project Fortify, an experimental security project, has identified the following potential security issue.

Overview: A compromised renderer can forge the is_modifiable flag in print preview IPCs to bypass the sandboxed PrintCompositor. This allows the attacker to send arbitrary malicious PDF bytes to the unsandboxed PrintBackendService on macOS. Parsing these bytes with Apple CoreGraphics provides a potential path for a full sandbox escape.

Affected files:

  • chrome/browser/printing/print_view_manager.cc
  • chrome/browser/ui/webui/print_preview/print_preview_ui.cc
  • printing/pdf_metafile_cg_mac.cc
  • chrome/browser/printing/print_view_manager_base.cc
  • chrome/browser/ui/webui/print_preview/print_preview_handler.cc
  • chrome/browser/printing/print_preview_data_service.cc
  • chrome/services/printing/print_backend_service_impl.cc

Estimated timestamp from git blame: 2026-02-10

Summary

There is a potential sandbox escape vulnerability in the Chrome printing architecture on macOS. A compromised HTML renderer can forge the is_modifiable flag during a print preview request. Because the browser fails to validate this flag against the actual renderer type, the attacker can bypass the sandboxed PrintCompositor and directly supply malicious PDF bytes. When printed, these bytes are parsed by Apple's CoreGraphics library within an unsandboxed utility process (or the browser process), creating a direct path to a sandbox escape.

Technical Details

1. Unvalidated IPC Parameter When a renderer initiates a print preview, it sends a RequestPrintPreview or ShowScriptedPrintPreview IPC to PrintViewManager (chrome/browser/printing/print_view_manager.cc). The renderer provides a mojom::RequestPrintPreviewParams struct containing an is_modifiable boolean. The browser passes this parameter directly to the PrintPreviewDialogController without verifying if the renderer actually hosts a PDF document (e.g., by checking render_frame_host->GetProcess()->IsPdf()).

2. PrintCompositor Bypass When the WebUI triggers PrintPreviewUI::MetafileReadyForPrinting (chrome/browser/ui/webui/print_preview/print_preview_ui.cc), the browser calls ShouldUseCompositor(). This function simply returns the unvalidated is_modifiable flag. If the attacker sets this to false, the browser bypasses the sandboxed PrintCompositor and accepts the renderer's raw shared memory region as a valid PDF document. The only validation performed in release builds is LooksLikePdf, which trivially checks that the payload begins with %PDF- and is at least 50 bytes long.

3. Unsandboxed Sink on macOS When the user clicks "Print" in the preview dialog, the payload is sent to the PrintBackendService. On macOS, features::kEnableOopPrintDriversSandbox is false by default (printing/printing_features.cc), meaning the PrintBackendService is launched completely unsandboxed (Sandbox::kNoSandbox). The payload eventually reaches PdfMetafileCg::RenderPage (printing/pdf_metafile_cg_mac.cc), where the bytes are parsed using Apple CoreGraphics APIs (CGPDFDocumentCreateWithProvider and CGContextDrawPDFPage). Exploiting memory corruption in the system CoreGraphics PDF parser would yield full unsandboxed code execution.

Potential Attacker Steps

(Note: These are suggested/potential steps to trigger the vulnerability, as our tooling agent does not currently have the ability to run code to provide a working proof-of-concept.)

  1. Gain code execution in a standard HTML renderer process (e.g., via a V8 or Blink vulnerability).
  2. Send a RequestPrintPreview IPC to the browser process, maliciously setting the is_modifiable flag to false in the parameters.
  3. Wait for the Print Preview WebUI to initialize and bind the mojom::PrintPreviewUI interface back to the compromised renderer.
  4. Call MetafileReadyForPrinting on the PrintPreviewUI interface, passing a shared memory region containing a crafted PDF designed to exploit a known or zero-day vulnerability in Apple's CoreGraphics PDF parser.
  5. The attacker can use the compromised renderer to spoof the preview visual to look benign. When the user clicks "Print", the malicious payload is processed by the unsandboxed PrintBackendService, resulting in a sandbox escape.

Suggested Fix

The browser should not trust the is_modifiable flag provided by the renderer in PrintViewManager::RequestPrintPreview and PrintViewManager::ShowScriptedPrintPreview.

Instead, the browser should securely determine this state itself. For example, it can override or validate the renderer's flag using the process state:

C++
params->is_modifiable = !render_frame_host->GetProcess()->IsPdf();

This is similar to how PrintViewManagerBase::CompleteScriptedPrint already securely determines if the document is modifiable.

Evaluated with Chrome root at commit: ff3d2b74fa39431785bd60e51463b08fcc71ee33


Results from so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; data from false positives will be used to improve accuracy over time. And please feel free to reach out to me directly if you have concerns or feedback on the project.

The original report as published on the Chromium issue tracker. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The browser trusts the renderer-supplied is_modifiable flag without checking whether the renderer actually hosts a PDF, allowing the sandboxed PrintCompositor to be bypassed.

Impact

A compromised renderer could achieve full unsandboxed code execution on macOS by exploiting memory corruption in CoreGraphics, though the report notes this is a potential path and no working proof-of-concept was provided.

What the attacker needed

Compromised renderer process; user clicks Print in preview

The fix

The browser should not trust the renderer's is_modifiable flag and should instead determine it securely, for example by checking whether the renderer process is a PDF process.

How it was found

  1. Gain code execution in a standard HTML renderer process.
  2. Send a RequestPrintPreview IPC with is_modifiable set to false.
  3. Wait for the Print Preview WebUI to bind the PrintPreviewUI interface.
  4. Call MetafileReadyForPrinting with a shared memory region containing a crafted PDF.
  5. Spoof the preview to look benign and wait for the user to click Print, causing the unsandboxed PrintBackendService to process the payload.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A web page runs inside a restricted 'sandbox' so that if it is hacked, the attacker cannot take over the whole computer. This report shows that a hacked page can lie about a setting during printing, causing the browser to pass a malicious PDF to a part of the system that is not sandboxed. If that PDF exploits a bug in Apple's PDF reader, the attacker could escape the sandbox and run code on the machine.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.