Contents
The Rust parquet crate, which arrow-rs ships and a lot of Rust data tooling builds on, has supported Parquet modular encryption since 55.0.0. From 55.0.0 through 60.1.0, if you enabled bloom filters on an encrypted column, the writer encrypted the column’s pages and then wrote its bloom filter in plaintext. CVE-2026-125651, published on November 22, rates this low severity. That rating is fair for most deployments, but for the specific people who turned on column encryption, it undercuts the feature: a bloom filter is a membership oracle built with an unkeyed hash, so leaving it in plaintext leaks part of what the encryption was there to hide.
The fixed versions are 57.3.3, 58.4.2, 59.3.3 and 60.2.0. They don’t encrypt the filter. They refuse to write it.
What the spec requires
The Parquet encryption spec lists the modules that are always encrypted with the column key when a column is encrypted, and “bloom filter headers and bitsets” are on that list. They get their own AAD module types, BloomFilter Header (8) and BloomFilter Bitset (9), and are encrypted with AES-GCM like every other non-page module. The bloom filter spec gives the reason: a filter reveals whether a value is present, so the filter for a sensitive column should be encrypted with that column’s key.
The Rust writer never implemented that part. PR #12165, merged on November 11, describes the old behavior directly: with both features on, the bloom filter of an encrypted column was “silently written in plaintext.” The Arrow C++ writer has rejected the same combination with a “not yet implemented” error, and the Rust fix copies that approach. Support for writing encrypted filters is tracked in issue #12166.
Why a plaintext filter matters
A Parquet split block bloom filter hashes each value with XXH64, seed 0. There is no key or salt, and no per-file secret. To test a candidate value you hash it, pick a 256-bit block from the upper 32 bits of the hash, and check eight bits derived from the lower 32. If any of those bits is unset, the value is definitely absent. If all are set, it is probably present.
That makes the filter a lossy, unsalted hash set of the column’s distinct values. For high-entropy columns such as random tokens, you can’t enumerate candidates, so it leaks little. For the columns people usually encrypt, such as email addresses, phone numbers, national IDs and account numbers, the candidate space is either small or already known to an attacker. “Is this person in this file?” is the question column encryption is supposed to make unanswerable without the key, and a plaintext filter answers it.
The threat model is anyone who can read the file but doesn’t hold that column’s key. That’s the case that justifies column-level keys in the first place: a shared lake where analysts get the footer key but not the PII key, a storage operator, or a leaked bucket.
Reproducing it
The reproduction writes a 1,000-row file with parquet 60.1.0: an id column, and an email column encrypted with its own key, using the default encrypted footer. The setup is ordinary writer configuration:
let fep = FileEncryptionProperties::builder(footer_key)
.with_column_key("email", col_key)
.build()?;
let props = WriterProperties::builder()
.with_file_encryption_properties(fep)
.set_column_bloom_filter_enabled("email".into(), true)
.build();
The column data was encrypted correctly. None of the email strings appeared anywhere in the file’s bytes. Then, without any key, a scan of the 35 KB file looked for byte ranges that parse as a bloom filter header followed by a bitset. Sbbf::from_bytes found one at offset 33,604, with a 16-byte header and a 1,024-byte bitset. Candidate values were checked against it with the crate’s own Sbbf::check:
| Probe | Reported present |
|---|---|
| The 1,000 emails in the file | 1,000 of 1,000 |
| 100,000 similar emails not in the file | 2,546 of 100,000 |
No false negatives, and about a 2.5 percent false positive rate. That matches the filter’s own estimated_fpp() of 0.0227, which is below the 0.05 default target because the writer sizes the filter for a large expected count and then folds it down only as far as that target allows. With the encrypted footer, the filter’s offset is stored in encrypted column metadata, but that doesn’t help much. The header is a small Thrift struct, and the naive scan above, which tries every offset, is what found it.
What 60.2.0 does instead
Running the same program against 60.2.0 fails at ArrowWriter::try_new, before any data is written:
NYI: Encryption is not currently supported with bloom filters, but bloom filters are enabled for encrypted column 'email'
The check runs once per column when the file encryptor is created. Any column that is encrypted and resolves to having bloom filter properties fails the whole writer. With uniform encryption (a footer key and no column keys), every column is encrypted, so the global set_bloom_filter_enabled(true) fails on the first column. Bloom filters on columns that aren’t encrypted, inside a file that is otherwise encrypted, still work.
Failing at writer construction is the right call, since no partial file gets written. But the PR is labeled api-change for a reason. A writer configuration that worked last week now errors out, and since 60.2.0 is a minor release from November 21, a cargo update will pull it in.
The opt-out that doesn’t opt out
The obvious fix for that error is to keep bloom filters on globally and exclude the encrypted columns:
.set_bloom_filter_enabled(true)
.set_column_bloom_filter_enabled("email".into(), false)
That still fails on 60.2.0 with the same error naming email. On 60.1.0, it writes a plaintext bloom filter for email. Reading that file’s metadata with the decryption keys gives each column’s filter offset, and parsing the bytes at the email offset needs no key at all: all 1,000 emails tested present.
The cause is in properties.rs. Setting a column’s bloom filter to false stores None in that column’s override, and resolution reads that override with column.and_then(...).or_else(|| default...). An explicit “off” is indistinguishable from “not set,” so the global default wins. Both 60.1.0 and 60.2.0 have the same code. The method’s documentation says it “sets whether a bloom filter should be written for a specific column,” which is only true when the answer is yes.
This matters beyond the error message. Anyone who set the global flag and believed they had excluded their sensitive columns had plaintext filters for exactly those columns, on top of the CVE as written. If that’s your configuration, treat files written with it as affected even if you thought you’d opted out.
The configuration that works on every version leaves the global default off, which is already the crate default, and enables filters for each unencrypted column you want them on:
WriterProperties::builder()
.with_file_encryption_properties(fep)
.set_column_bloom_filter_enabled("id".into(), true)
.build()
Existing files
Upgrading stops new leaks. It does nothing for files already in storage, and the advisory’s only remedy is to rewrite them with bloom filters disabled. To find them, read each encrypted file’s metadata with your keys. For every encrypted column that has a bloom_filter_offset, read bloom_filter_length bytes at that offset and try Sbbf::from_bytes. An AES-GCM ciphertext is very unlikely to parse as a valid header whose bitset length exactly fills the range. A leaked filter parses cleanly.
Do that sweep before you rewrite anything, and keep the list. Rewriting fixes the current objects, but you also need to know which older copies, snapshots and replicas carried the same filters and who could read them. Neither the parquet crate nor the advisory can answer that for you.
Sources
- oss-security: CVE-2026-125651, Apache Arrow Rust bloom filters written as plaintext when writing encrypted Parquet
- arrow-rs PR #12165: error when writing bloom filters for encrypted columns
- arrow-rs issue #12166: Support writing encrypted BloomFilters
- Parquet Modular Encryption spec
- Parquet Bloom Filter spec
WriterPropertiesBuilderdocs, parquet 60.2.0- parquet crate versions on crates.io