You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: site/security/index.md
+27Lines changed: 27 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,33 @@ Apache ORC is a library rather than an execution framework and thus
7
7
is less likely to have security vulnerabilities. However, if you have
8
8
discovered one, please follow the process below.
9
9
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
+
10
37
## Reporting a Vulnerability
11
38
12
39
We strongly encourage folks to report security vulnerabilities to our
0 commit comments