CVE-2024-41178: Apache Arrow Rust Object Store AWS WebIdentityToken Exposure Vulnerability
MODERATECVE-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
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).
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.
Upgrade object_store to 0.10.2
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
CVE-2024-41178 Affected Apache Arrow Rust Object Store Versions
1 component(s)| 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?
Which Apache Arrow Rust Object Store versions are affected?
What version fixes CVE-2024-41178?
Is object_store affected?
What is the CVSS score of CVE-2024-41178?
What CWE is associated with CVE-2024-41178?
How can I check crates.io dependencies for CVE-2024-41178?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}