Skip to main content
Version: Next

Dependency Vulnerability Remediation & Container Scanner Guidance

This guide addresses third-party dependency vulnerabilities reported by container security scanners (such as Trivy, Grype, and Snyk) in Apache Superset environments, specifically regarding dependency constraint handling for cryptography, msgpack, and pyarrow (referencing issue #45087).

1. Vulnerability Applicability & Risk Assessment​

When security scanners evaluate Apache Superset container images, findings frequently arise in transitive or pinned direct dependencies. The table below summarizes recently reported findings, their severity, and remediated version targets across Superset components:

PackageFinding IDSeverityFixedTarget Floor
cryptographyCVE-2026-69247HIGH50.0.0>=50.0.2
cryptographyCVE-2026-69249HIGH49.0.0>=50.0.2
cryptographyCVE-2026-69248MEDIUM49.0.0>=50.0.2
cryptographyGHSA-537c-gmf6-5ccfHIGH48.0.1>=50.0.2
msgpackGHSA-6v7p-g79w-8964HIGH1.2.1>=1.2.3
msgpackGHSA-j586-36cw-2gc2HIGH1.2.3>=1.2.3
pyarrowCVE-2026-25087HIGH23.0.1>=23.0.1 (core), >=26.0.1 (app)

Code Path & Exploitability Analysis​

Cryptography Advisories​

  • CVE-2026-69247 (Bleichenbacher timing and error decryption oracle in PKCS#7 EnvelopedData decryption): The vulnerable routines in cryptography are located in PKCS#7 EnvelopedData decryption (cryptography.hazmat.primitives.serialization.pkcs7). Superset does not consume, parse, or decrypt PKCS#7 or S/MIME enveloped data structures. Direct cryptography usage in Superset covers symmetric secret encryption at rest via sqlalchemy-utils EncryptedType (Fernet/AES in superset/utils/encrypt.py and superset/extensions/storage/persistent_dao.py), leaf X.509 PEM certificate parsing (cryptography.x509.load_pem_x509_certificate in superset/utils/core.py), and asymmetric PEM private-key loading plus PKCS#8 DER encoding for Snowflake keypair authentication (cryptography.hazmat.primitives.serialization.load_pem_private_key and private_bytes in superset/db_engine_specs/snowflake.py). Transitive connector and auth dependencies (such as database drivers, pyOpenSSL, and JWT/OAuth libraries) may also invoke cryptography, and none of Superset's direct cryptography code paths call PKCS#7 decryption.

  • CVE-2026-69249 (Denial of service via duplicate intermediate certificates during X.509 path-building): The algorithmic complexity denial of service affects certificate path building when constructing certificate chains from duplicate intermediates. Superset does not perform untrusted X.509 certification path building or chain validation using cryptography's path-building APIs during web request processing. Leaf certificates for database connections are parsed individually via load_pem_x509_certificate (superset/utils/core.py) and Snowflake keypair credentials are loaded via load_pem_private_key (superset/db_engine_specs/snowflake.py), while TLS transport path validation is handled by the Python standard library ssl module and system OpenSSL, leaving cryptography's X.509 path-building engine uncalled.

  • CVE-2026-69248 (Wildcard-DNS name-constraint validation bypass in PolicyBuilder): This vulnerability exists in cryptography.x509.verification.PolicyBuilder when evaluating wildcard DNS entries against name constraints during X.509 verification. Superset never calls cryptography's certificate verification or policy validation APIs (cryptography.x509.verification). TLS transport verification for outbound HTTP requests and database connections is executed directly by the Python standard library ssl and underlying database drivers via OpenSSL, which enforce standard RFC 5280 name constraints independently of cryptography's verification APIs.

  • GHSA-537c-gmf6-5ccf / CVE-2026-34180 (Vulnerabilities in OpenSSL bundled in binary wheels): Pre-compiled binary wheels of cryptography distributed on PyPI bundle a statically linked build of OpenSSL. Older wheels bundled OpenSSL versions subject to security advisories. In Superset, cryptography's internal OpenSSL routines are not used for public-facing TLS termination or exposed directly to untrusted callers. Shipped container images update these dependencies via the pinned requirements (cryptography==50.0.2, fixed upstream in wheels from 48.0.1). Note that this finding is scoped to the binary wheel's bundled OpenSSL and does not affect source distributions linked against host libssl.

Msgpack Advisories​

  • GHSA-6v7p-g79w-8964 / CVE-2026-57585 (Out-of-bounds read and crash on Unpacker reuse after caught error): Superset uses msgpack for SQL Lab and async SQL execution result serialization (RESULTS_BACKEND_USE_MSGPACK), plus nested column sidecars. Production deserialization paths invoke one-shot msgpack.loads() calls (superset/views/utils.py, superset/sql/execution/executor.py, and superset/sql/execution/serialization.py) and do not instantiate or reuse msgpack.Unpacker across error boundaries.

  • GHSA-j586-36cw-2gc2 (Memory leak in C extension on map key validation failure): When map key validation raises an exception during unpacking with default strict_map_key=True, older C extension releases leak memory. In Superset, msgpack.loads(payload, raw=False) in superset/views/utils.py, msgpack.loads(decompressed, raw=False) in superset/sql/execution/executor.py, and msgpack.loads(data) in _decode_nested_scalar (superset/sql/execution/serialization.py) run with the default strict_map_key=True on cached query payloads and sidecars from the results backend (while deserialize_nested_columns in superset/sql/execution/serialization.py sets strict_map_key=False). Although these blobs come from internal Celery workers rather than arbitrary external bytes, operators should upgrade to msgpack>=1.2.3 (Option A) to eliminate the leak path directly.

PyArrow Advisory​

  • CVE-2026-25087 / GHSA-rgxp-2hwp-jwgg (Use-after-free in IPC file reader with pre-buffering): The vulnerability occurs in the Arrow C++ IPC file reader (RecordBatchFileReader) when pre-buffering is enabled. Superset uses pyarrow.parquet for columnar uploads and Hive reads (superset/commands/database/uploaders/columnar_reader.py, superset/db_engine_specs/hive.py) and Arrow IPC streams via pyarrow.ipc.open_stream / pyarrow.ipc.new_stream (superset/views/utils.py, superset/sql/execution/executor.py, superset/sqllab/utils.py, superset/common/query_context_processor.py); it does not invoke pyarrow.ipc.open_file or RecordBatchFileReader. The minimum floor of pyarrow>=23.0.1 is enforced in superset-core, while application builds and locked container requirements enforce pyarrow>=26.0.1.

2. Dependency Constraint Architecture​

Apache Superset manages dependencies across two layers:

  1. Package Declarations (pyproject.toml and superset-core/pyproject.toml): Specifies flexible semantic version ranges to avoid dependency resolver conflicts in downstream custom deployments.

    • cryptography: Root pyproject.toml declares >=50.0.2, <51.0.0 (enforcing remediated releases covering PKCS#7, path-building, certificate verification name constraints, and wheel OpenSSL advisories).
    • msgpack: Root pyproject.toml declares >=1.2.3, <1.3 (enforcing remediated releases covering GHSA-6v7p-g79w-8964 and GHSA-j586-36cw-2gc2).
    • pyarrow: Root pyproject.toml declares >=26.0.1, <27 (pinned to 26.0.1 in requirements/base.txt); superset-core/pyproject.toml declares >=23.0.1 (without an upper ceiling) to satisfy CVE-2026-25087 while permitting downstream extensions and application co-installation.
  2. Locked Requirements (requirements/base.in and requirements/base.txt): Pins exact validated versions for official Docker images and deterministic continuous integration builds. requirements/base.in declares cryptography>=50.0.2,<51.0.0, msgpack>=1.2.3,<1.3.0, and pyarrow>=26.0.1,<27.0.0 (matching the versions resolved in requirements/base.txt).

3. Operator Mitigations & Container Workarounds​

If you are running an existing container image where dependency constraints prevent direct pip upgrades, the following approaches allow immediate remediation without breaking Superset:

Option A: Extend Official Docker Image with Patched Dependencies​

The official Docker image executes Superset inside a Python virtual environment located at /app/.venv. To ensure upgraded dependencies are installed directly into the Superset runtime rather than container system packages, use uv pip install --python /app/.venv/bin/python (or /app/.venv/bin/pip install in environments without uv).

When upgrading cryptography>=50.0.2, pyOpenSSL must also be upgraded to >=26.4.0 (matching the version pinned in requirements/base.txt). Older pyOpenSSL releases cap cryptography below 50 (and 25.x releases attempt to access _lib.GEN_EMAIL on OpenSSL.crypto import, which is no longer exposed in cryptography 50.x). Upgrading pyOpenSSL alongside cryptography satisfies the resolver and ensures transitive imports of OpenSSL (used by database and cloud connectors such as Snowflake and Google Cloud) succeed without error:

FROM apache/superset:latest

USER root
RUN uv pip install --no-cache-dir --python /app/.venv/bin/python \
"cryptography>=50.0.2" \
"pyopenssl>=26.4.0" \
"msgpack>=1.2.3" \
"pyarrow>=26.0.1"

USER superset

Option B: Scanner Triage and Ignore Rules (.trivyignore)​

For organizations maintaining automated compliance gates, findings where the specific vulnerable code path is not reachable in the shipped Superset version and configuration can be documented and suppressed in .trivyignore. Note that Trivy matches suppression rules against the exact identifier reported by the scan engine; both CVE and GHSA aliases are provided below where applicable:

# CVE-2026-69247: PKCS#7 EnvelopedData decryption is not used by Superset
CVE-2026-69247

# CVE-2026-69249: Certificate path-building with duplicate intermediates is not used
CVE-2026-69249

# CVE-2026-69248: PolicyBuilder X.509 verifier is not called (Python ssl handles TLS)
CVE-2026-69248

# Msgpack Unpacker reuse after error: Unpacker instances are not reused across errors
CVE-2026-57585
GHSA-6v7p-g79w-8964

# CVE-2026-25087 / GHSA-rgxp-2hwp-jwgg: Arrow IPC file reader with pre-buffering
# is not invoked (remediated in pyarrow>=23.0.1 in core and >=26.0.1 in app)
CVE-2026-25087
GHSA-rgxp-2hwp-jwgg
note

GHSA-j586-36cw-2gc2 is intentionally omitted from the .trivyignore template above. Because msgpack.loads(..., raw=False) in superset/views/utils.py and superset/sql/execution/executor.py (as well as msgpack.loads(data) in _decode_nested_scalar in superset/sql/execution/serialization.py) uses the default strict_map_key=True, which can trigger the C extension memory leak on invalid map keys, operators running msgpack==1.2.2 should remediate by upgrading to msgpack>=1.2.3 (Option A) rather than suppressing the finding.

note

CVE-2026-34180 / GHSA-537c-gmf6-5ccf (vulnerabilities in OpenSSL bundled with binary wheels) is also intentionally omitted from the .trivyignore template above. A plain .trivyignore file only matches bare vulnerability identifiers without package-URL scoping (pkg:pypi/cryptography vs pkg:deb/debian/libssl3), so suppressing CVE-2026-34180 in .trivyignore would unintentionally suppress vulnerabilities for system libssl and any other packages in the container image. Operators should resolve CVE-2026-34180 via Option A by upgrading to cryptography>=50.0.2, or use Trivy policy / VEX configuration if fine-grained PURL scoping is required.

4. Questions & Answers for Security Teams​

Q: Are these findings considered true vulnerabilities in Apache Superset? A: Per the Apache Superset Security Model (documented in SECURITY.md), vulnerabilities in shipped direct dependencies are kept in scope, which is why Superset directly bumps dependency floors to remediated releases. For operators managing legacy container images before upgrades are applied, the exploitability analysis in this guide documents the specific execution paths showing why unpatched intermediate environments are not exposed to remote code execution or authentication bypass.

Q: Why are dependency bounds not completely unpinned? A: Database connectors and analytics engines (e.g., Snowflake, BigQuery, Trino, ClickHouse) impose mutual constraints on foundational packages like PyArrow and Cryptography. Version ranges are carefully calibrated to balance maximum security coverage with multi-database ecosystem stability.