{"answers":{"affected":"3 open source packages ship an affected version, including rust-i18n-support.","exploited":"There is no known exploitation of GHSA-c8v3-jhv9-4ppc in the wild and no public exploit code.","fix":"Upgrade rust-i18n-support to 3.0.1 or later.","what":"GHSA-c8v3-jhv9-4ppc is an use after free vulnerability in rust-i18n-support, published on 19 Jan 2024."},"fix_prompt":"Check this codebase for GHSA-c8v3-jhv9-4ppc and fix it if it is affected.\n\nWhat it is: GHSA-c8v3-jhv9-4ppc is an use after free vulnerability in rust-i18n-support, published on 19 Jan 2024. \nExploitation: There is no known exploitation of GHSA-c8v3-jhv9-4ppc in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- rust-i18n-support (crates.io): affected from 3.0.0; fixed in 3.0.1\n- rust-i18n-support (crates.io): affected from 3.0.0; fixed in 3.0.1\n- rust-i18n-support (crates.io): affected from 3.0.0; fixed in 3.0.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-c8v3-jhv9-4ppc/ (Markdown: https://insights.sbomify.com/GHSA-c8v3-jhv9-4ppc/index.md)","id":"GHSA-c8v3-jhv9-4ppc","markdown":"https://insights.sbomify.com/GHSA-c8v3-jhv9-4ppc/index.md","name":"GHSA-c8v3-jhv9-4ppc","record":{"aliases":["RUSTSEC-2024-0007"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","denial_of_service"],"network_reachable":"unknown","non_default_config":false,"product_category":"Rust locale library","requires_auth":"none","summary":"A use-after-free vulnerability in a Rust locale library allows attackers to cause crashes or execute arbitrary code via concurrent locale changes.","user_interaction":"not_required","vuln_class":"use_after_free"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"Version 3.0.0 introduced an `AtomicStr` type, that is used to store the current locale. It stores the locale as a raw pointer to an `Arc\u003cString\u003e`. The locale can be read with `AtomicStr::as_str()`. `AtomicStr::as_str()` does not increment the usage counter of the `Arc`.\n\nIf the locale is changed in one thread, another thread can have a stale -- possibly already freed -- reference to the stored string.","ecosystems":["crates.io"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Use-after-free when setting the locale","id":"GHSA-c8v3-jhv9-4ppc","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"use_after_free","year":"2024"},"n_packages":3,"n_references":null,"packages":[{"ecosystem":"crates.io","fixed":["3.0.1"],"introduced":["3.0.0"],"last_affected":[],"package":"rust-i18n-support","purl":null,"source":"GHSA-c8v3-jhv9-4ppc"},{"ecosystem":"crates.io","fixed":["3.0.1"],"introduced":["3.0.0"],"last_affected":[],"package":"rust-i18n-support","purl":"pkg:cargo/rust-i18n-support","source":"GHSA-c8v3-jhv9-4ppc"},{"ecosystem":"crates.io","fixed":["3.0.1"],"introduced":["3.0.0"],"last_affected":[],"package":"rust-i18n-support","purl":"pkg:cargo/rust-i18n-support","source":"RUSTSEC-2024-0007"}],"products":null,"published":"2024-01-19","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"open","licence":"CC0 1.0","name":"RustSec","prefix":"RUSTSEC"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"A use-after-free vulnerability in a Rust locale library allows attackers to cause crashes or execute arbitrary code via concurrent locale changes.","url":"https://insights.sbomify.com/GHSA-c8v3-jhv9-4ppc/"}