Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
HighPublic exploit

Arbitrary File Write in Apple CFNetwork

IdentifiersCVE-2026-20660CWE-22· Improper Limitation of a Pathname…

CVE-2026-20660 is a path-handling flaw in Apple CFNetwork. Apple describes the issue as a path handling issue addressed with improved logic, with the stated impact that a remote user may be able to write arbitrary files. The vulnerability affects CFNetwork as shipped in Apple platforms including macOS Sonoma, macOS Sequoia, macOS Tahoe, iOS, iPadOS, visionOS, and Safari builds that include the vulnerable component. Based on the vendor description, the flaw involves improper handling or validation of file paths during CFNetwork processing, enabling attacker-controlled path influence that can result in unintended file writes.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation allows a remote attacker or remote user to cause arbitrary file writes on the affected system in the context of the vulnerable CFNetwork component. Depending on the destination path and effective privileges of the affected process, this could enable overwriting application or user files, planting attacker-controlled data, corrupting configuration or state, and potentially creating conditions for further compromise. Apple does not provide additional detail on privilege boundaries or post-write code-execution impact in the supplied content.

Mitigation

If you can’t patch tonight, do this now.

No specific vendor workaround is provided in the supplied content. Until patching is completed, reduce exposure to untrusted remote content and network interactions that invoke CFNetwork-mediated file handling, and prioritize patching internet-exposed, high-risk, and user-facing systems. Mitigation details beyond patching are currently not available from the provided advisory content.

Remediation

Patch, then assume compromise.

Apply Apple security updates containing the fix for CVE-2026-20660. The issue is fixed in macOS Tahoe 26.3, macOS Sonoma 14.8.4, iOS 18.7.5, iPadOS 18.7.5, visionOS 26.3, iOS 26.3, iPadOS 26.3, and Safari 26.3. macOS Sequoia is also listed as affected and patched in Apple security content referenced in the provided material. Upgrade affected systems and Safari to the latest vendor-provided fixed release available for the platform.
PUBLIC EXPLOITS

Exploits

1 valid exploit after Mallory filtered fakes, detection scripts, and README-only repos.

VALID 1 / 1 TOTALView more in app
CVE-2026-20660MaturityPoCVerified exploit

This repository is a small standalone Python proof-of-concept bundle for CVE-2026-20660, described as a CFNetwork NSGZipDecoder path traversal issue affecting vulnerable macOS Safari when 'Open safe files after downloading' is enabled. The repo contains two executable Python servers and a README. The main file, server.py, implements an HTTP server that serves a landing page at '/' and a crafted gzip payload at '/download'. Its core capability is generating a valid gzip stream with an attacker-controlled FNAME field in the gzip header via make_gzip_with_fname(). The exploit intentionally keeps the HTTP Content-Disposition filename benign ('report.gz') while embedding traversal sequences like '../' repeated by a configurable depth, or a user-supplied absolute path, in the gzip FNAME. The served payload is a text proof file showing timestamp and chosen FNAME, demonstrating arbitrary file write outside the intended download directory if the target browser auto-opens the archive. The second file, server_overwrite.py, is a narrower variant that imports the gzip builder from server.py and hardcodes a shell script payload plus FNAME '../../pwn.sh', attempting to place a script in the victim user's home directory. Structurally, the repository is simple: README.md documents prerequisites, usage, validation, and observed behavior; server.py is the primary PoC with configurable bind address, port, traversal depth, and target filename; server_overwrite.py is a specialized overwrite demonstration. This is a real exploit PoC rather than a scanner or detection script, but it remains at proof-of-concept maturity because it demonstrates file write with basic hardcoded content rather than a generalized post-exploitation framework.

retX0Disclosed Mar 16, 2026pythonmarkdownnetworkbrowser
EXPOSURE SURFACE

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
AppleIpadosoperating_system
AppleIphone Osoperating_system
AppleMacosoperating_system
AppleSafariapplication
AppleVisionosoperating_system

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware

Malware families riding this exploit, with evidence and IOCs.

Detection signatures1

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity10

Community discussion across Reddit, Mastodon, and other social sources.