---
title: "CWE-72: Improper Handling of Apple HFS+ Alternate Data Stream Path"
url: https://radicalnotion.ai/cwe/cwe-72
type: cwe
description: "The product does not properly handle special paths that may identify the data or resource fork of a file on the HFS+ file system."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-72: Improper Handling of Apple HFS+ Alternate Data Stream Path

- **Abstraction:** Variant
- **Structure:** Simple
- **Status:** Incomplete
- **CVEs with this as primary weakness:** 0
- **Of those, in CISA KEV:** 0
- **New in 2026:** 0
- **CWE catalog version:** 4.21

## Description

The product does not properly handle special paths that may identify the data or resource fork of a file on the HFS+ file system.

## Background

The Apple HFS+ file system permits files to have multiple data input streams, accessible through special paths. The Mac OS X operating system provides a way to access the different data input streams through special paths and as an extended attribute: - Resource fork: file/..namedfork/rsrc, file/rsrc (deprecated), xattr:com.apple.ResourceFork - Data fork: file/..namedfork/data (only versions prior to Mac OS X v10.5) Additionally, on filesystems that lack native support for multiple streams, the resource fork and file metadata may be stored in a file with ".\_" prepended to the name. Forks can also be accessed through non-portable APIs. Forks inherit the file system access controls of the file they belong to. Programs need to control access to these paths, if the processing of a file system object is dependent on the structure of its path.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Implementation | - |

## Applicable platforms

**Operating systems:** macOS (Undetermined)

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Confidentiality, Integrity | Read Files or Directories, Modify Files or Directories, Bypass Protection Mechanism | If the product chooses actions to take based on the file name, then if an attacker provides the data or resource fork, the product may take unexpected actions. Further, if the product intends to restrict access to a file, then an attacker might still be able to bypass intended access restrictions by requesting the data or resource fork for that file. |

## Demonstrative examples

### Example 1

Consider a web server that uses the Apple HFS+ file system. It interprets FILE.cgi as processing instructions.

An adversary could request "FILE.cgi/..namedfork/data" to prevent FILE.cgi from being executed, instead disclosing the source code for FILE.cgi. This might occur because the web server invokes the default handler which may return the contents of the file.

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2004-1084 | Server allows remote attackers to read files and resource fork content via HTTP requests to certain special file names related to multiple data streams in HFS+. |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-66](https://radicalnotion.ai/cwe/cwe-66) | Improper Handling of File Names that Identify Virtual Resources |

## Frequently asked questions

### What is CWE-72?

The product does not properly handle special paths that may identify the data or resource fork of a file on the HFS+ file system.

### What are the consequences of CWE-72?

Exploiting CWE-72 can lead to: Read Files or Directories, Modify Files or Directories, Bypass Protection Mechanism.

Primary source: [MITRE CWE](https://cwe.mitre.org/data/definitions/72.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/cwe/cwe-72). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
