Skip to content

Commit 99b043d

Browse files
committed
Update security model for ORC site
1 parent c02f99c commit 99b043d

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

site/security/index.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,33 @@ Apache ORC is a library rather than an execution framework and thus
77
is less likely to have security vulnerabilities. However, if you have
88
discovered one, please follow the process below.
99

10+
## Threat Model
11+
12+
We align our threat model with other foundational data format libraries like [Apache Arrow](https://arrow.apache.org/docs/dev/format/Security.html). When evaluating potential security vulnerabilities, especially those discovered via fuzzing tools, we apply the following principles to distinguish between normal robustness bugs and actual security vulnerabilities.
13+
14+
### 1. Trusted vs. Untrusted Data Boundaries
15+
16+
Apache ORC is a low-level format library designed to read and write data from trusted storage systems (e.g., internal data lakes, HDFS, S3). The parsing APIs assume that the underlying data originates from a trusted internal source.
17+
18+
If an attacker is able to write arbitrary, maliciously crafted ORC files into your internal storage, the system is already compromised at the infrastructure or access control level (e.g., IAM permissions, API gateways). The `orc` library itself is not the appropriate security boundary to defend against compromised storage infrastructure.
19+
20+
### 2. Robustness Issues vs. Security Vulnerabilities
21+
22+
A crash, Out-Of-Memory (OOM), Out-Of-Bounds (OOB) read, or assertion failure caused by feeding a maliciously fuzzed file directly into the low-level parser is considered a **robustness issue** (a regular software bug), not a security vulnerability.
23+
24+
Such issues are only treated as security vulnerabilities (CVEs) if they:
25+
* Lead to Remote Code Execution (RCE).
26+
* Bypass a defined security boundary or cause cross-tenant data leakage.
27+
* Occur in a server component explicitly designed to process unverified, external data.
28+
29+
Missing bounds checks or crashes during the parsing of malformed files do not typically lead to code execution or break isolation sandboxes. They are treated as regular software defects.
30+
31+
### 3. Responsibilities of the Low-Level Library
32+
33+
The primary goal of a low-level serialization/deserialization library like ORC is high performance. Mandating strict defensive programming and validation on every internal memory operation would severely degrade performance.
34+
35+
Security validation and sanitization of untrusted inputs should occur at the data ingestion layer (e.g., before data is admitted into the data lake). It is outside the scope of the format parser to proactively defend against all possible artificially corrupted bits.
36+
1037
## Reporting a Vulnerability
1138

1239
We strongly encourage folks to report security vulnerabilities to our

0 commit comments

Comments
 (0)