CVE-2024-41178: Apache Arrow Rust Object Store AWS WebIdentityToken Exposure Vulnerability

MODERATE
Advisory Identifier: GHSA-c2hf-vcmr-qjrf
CVSS 3.8
CWE-532
Published
Advisory Summary

CVE-2024-41178 is a MODERATE (CVSS 3.8) aws webidentitytoken exposure vulnerability (CWE-532: Insertion of Sensitive Information into Log File) affecting Apache Arrow Rust Object Store libraries in the crates.io ecosystem. The issue involves aws webidentitytoken exposure in log files. Remediation is available by upgrading affected packages to version 0.10.2.

CVE-2024-41178 at a Glance

CVE Identifier CVE-2024-41178
GHSA Identifier GHSA-c2hf-vcmr-qjrf
Severity MODERATE
CVSS v3.1 Base Score 3.8
CWE Classification CWE-532: Insertion of Sensitive Information into Log File
Affected Product Apache Arrow Rust Object Store
Package Ecosystem crates.io
Published Date
Last Updated

Security Impact

CVSS: 3.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2024-41178

To remediate this vulnerability, upgrade all affected Apache Arrow Rust Object Store dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

object_store fixed: 0.10.2
Upgrade object_store to 0.10.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for object_store

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-41178, inspect your project dependencies for Apache Arrow Rust Object Store:

inspect dependencies for object_store

Analyze the terminal output to locate any version of Apache Arrow Rust Object Store in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.10.2), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-532: Insertion of Sensitive Information into Log File, where the product writes sensitive information to a log file. In Apache Arrow Rust Object Store, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Exposure of temporary credentials in logs in Apache Arrow Rust Object Store (`object_store` crate), version 0.10.1 and earlier on all platforms using AWS WebIdentityTokens.  On certain error conditions, the logs may contain the OIDC token passed to AssumeRoleWithWebIdentity https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRoleWithWebIdentity.html . This allows someone with access to the logs to impersonate that identity, including performing their own calls to AssumeRoleWithWebIdentity, until the OIDC token expires. Typically OIDC tokens are valid for up to an hour, although this will vary depending on the issuer. Users are recommended to use a different AWS authentication mechanism, disable logging or upgrade to version 0.10.2, which fixes this issue. Details: When using AWS WebIdentityTokens with the object_store crate, in the event of a failure and automatic retry, the underlying reqwest error, including the full URL with the credentials, potentially in the parameters, is written to the logs.  Thanks to Paul Hatcherian for reporting this vulnerability

CVE-2024-41178 Affected Apache Arrow Rust Object Store Versions

1 component(s)
Fixed Versions:
0.10.2
Product / Package Ecosystem Affected Versions Fixed Version
object_store
crates.io
≥ 0.5.0
< 0.10.2
0.10.2

References

Frequently Asked Questions

What is CVE-2024-41178?
CVE-2024-41178 is a security vulnerability in Apache Arrow Rust Object Store involving AWS WebIdentityToken exposure in log files under CWE-532: Insertion of Sensitive Information into Log File.
Which Apache Arrow Rust Object Store versions are affected?
Affected versions include releases prior to 0.10.2 across affected packages: object_store.
What version fixes CVE-2024-41178?
Upgrading to 0.10.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is object_store affected?
Yes, object_store is affected in releases prior to 0.10.2. Upgrade your dependency to 0.10.2 or later.
What is the CVSS score of CVE-2024-41178?
CVE-2024-41178 has a CVSS v3.1 base score of 3.8 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N.
What CWE is associated with CVE-2024-41178?
CVE-2024-41178 is classified under CWE-532: Insertion of Sensitive Information into Log File (The product writes sensitive information to a log file.).
How can I check crates.io dependencies for CVE-2024-41178?
Run the dependency tree command: 'inspect dependencies for object_store'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-c2hf-vcmr-qjrf",
  "modified" : "2024-07-24T14:59:02Z",
  "published" : "2024-07-23T18:31:07Z",
  "aliases" : [ "CVE-2024-41178" ],
  "summary" : "Apache Arrow Rust Object Store: AWS WebIdentityToken exposure in log files",
  "details" : "Exposure of temporary credentials in logs in Apache Arrow Rust Object Store (`object_store` crate), version 0.10.1 and earlier on all platforms using AWS WebIdentityTokens. \n\nOn certain error conditions, the logs may contain the OIDC token passed to  AssumeRoleWithWebIdentity https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRoleWithWebIdentity.html . This allows someone with access to the logs to impersonate that identity, including performing their own calls to AssumeRoleWithWebIdentity, until the OIDC token expires. Typically OIDC tokens are valid for up to an hour, although this will vary depending on the issuer.\n\nUsers are recommended to use a different AWS authentication mechanism, disable logging or upgrade to version 0.10.2, which fixes this issue.\n\nDetails:\n\nWhen using AWS WebIdentityTokens with the object_store crate, in the event of a failure and automatic retry, the underlying reqwest error, including the full URL with the credentials, potentially in the parameters, is written to the logs. \n\nThanks to Paul Hatcherian for reporting this vulnerability",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:L/SI:L/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "object_store"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.5.0"
      }, {
        "fixed" : "0.10.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-41178"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/arrow-rs/pull/6074"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/arrow-rs/commit/4978e32654235f569062f2cad6c7361e410f1254"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/arrow-rs"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/3t0povdppnt2czv6crlsqhvyko93kcrg"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2024-0358.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2024/07/23/3"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-532" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-07-24T14:59:02Z",
    "nvd_published_at" : "2024-07-23T17:15:12Z"
  }
}