alamb commented on code in PR #9730:
URL: https://github.com/apache/arrow-rs/pull/9730#discussion_r3133330989


##########
SECURITY.md:
##########
@@ -0,0 +1,83 @@
+<!---
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
+# Security Policy
+
+This document outlines the security model for the Rust implementation of 
Apache Arrow (`arrow-rs`) and how to report vulnerabilities.
+
+## Security Model
+
+The `arrow-rs` project follows the [Apache Arrow Security Model]. In 
particular:
+
+- Reading data from untrusted sources (e.g., over a network or from a file) 
requires explicit validation.
+- Failure to validate untrusted data before use may lead to security issues.
+
+This implementation provides APIs such as [`ArrayData::validate_full`] to
+validate that Arrow data conforms to the specification.
+
+Unexpected behavior (e.g., panics, crashes, or infinite loops) triggered by
+malformed input is generally considered a **bug**, not a security
+vulnerability, unless it is **exploitable** and could allow an attacker to
+
+* Execute arbitrary code (Remote Code Execution);

Review Comment:
   Thankfully (?) I am not aware of any such bugs in arrow-rs so I don't have 
any to list
   
   I had codex find past examples, and the ones it found are as follows, which 
are mostly old undefined behavior issues
   
     - https://github.com/apache/arrow-rs/issues/198
     - https://github.com/apache/arrow-rs/issues/322
     - https://github.com/apache/arrow-rs/issues/772
     - https://github.com/apache/arrow-rs/issues/773
     - https://github.com/apache/arrow-rs/issues/776
     - https://github.com/apache/arrow-rs/issues/786
     - https://github.com/apache/arrow-rs/issues/817
     - https://github.com/apache/arrow-rs/issues/221
     - https://github.com/apache/arrow-rs/issues/1874
     - https://github.com/apache/arrow-rs/issues/1486
     - https://github.com/apache/arrow-rs/issues/1231
     - https://github.com/apache/arrow-rs/issues/1144



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to