{"answers":{"affected":"3 open source packages ship an affected version, including pqc_kyber.","exploited":"There is no known exploitation of GHSA-x5j2-g63m-f8g4 in the wild and no public exploit code.","fix":"No fix has been published for GHSA-x5j2-g63m-f8g4 yet. Limit exposure of the affected software until one is available.","what":"GHSA-x5j2-g63m-f8g4 is a vulnerability in pqc_kyber, published on 1 Dec 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-x5j2-g63m-f8g4 and fix it if it is affected.\n\nWhat it is: GHSA-x5j2-g63m-f8g4 is a vulnerability in pqc_kyber, published on 1 Dec 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-x5j2-g63m-f8g4 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- pqc_kyber (crates.io): affected all versions up to 0.7.1; no fix listed\n- pqc_kyber (crates.io): affected all versions up to 0.7.1; no fix listed\n- pqc_kyber (crates.io): affected from 0.0.0-0; no fix listed\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-x5j2-g63m-f8g4/ (Markdown: https://insights.sbomify.com/GHSA-x5j2-g63m-f8g4/index.md)","id":"GHSA-x5j2-g63m-f8g4","markdown":"https://insights.sbomify.com/GHSA-x5j2-g63m-f8g4/index.md","name":"GHSA-x5j2-g63m-f8g4","record":{"aliases":["RUSTSEC-2023-0079"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Kyber cryptographic library","requires_auth":"none","summary":"Timing side-channel in Kyber libraries leaks secret keys via variable division times, allowing attackers to recover private keys.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"Various Kyber software libraries in various environments leak secret information into timing, specifically because\n\n * these libraries include a line of code that divides a secret numerator by a public denominator,\n * the number of CPU cycles for division in various environments varies depending on the inputs to the division, and\n * this variation appears within the range of numerators used in these libraries.\n\nThe KyberSlash pages track which Kyber [libraries](https://kyberslash.cr.yp.to/libraries.html) have this issue, and include a [FAQ](https://kyberslash.cr.yp.to/faq.html) about the issue.\n\n## Author\n\nThe KyberSlash pages were written by Daniel J. Bernstein. The FAQ originally said \"I\", but some people seemed to have trouble finding this authorship statement, so the FAQ now says \"Bernstein\" instead.\n\n## URL\n\nThe permanent link for the KyberSlash pages is [https://kyberslash.cr.yp.to](https://kyberslash.cr.yp.to).\n\n## Mitigation status in `pqc_kyber` crate\n\nThe issue has not been resolved in the upstream `pqc_kyber` crate.\n\nA third-party fork that mitigates this attack vector has been published as [`safe_pqc_kyber`](https://crates.io/crates/safe_pqc_kyber).\n\n## Alternatives\n\nThe [`ml-kem`](https://crates.io/crates/ml-kem) crate is a maintained\nalternative pure Rust implementation of ML-KEM / Kyber.","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":false,"headline":"KyberSlash: division timings depending on secrets","id":"GHSA-x5j2-g63m-f8g4","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"information_disclosure","year":"2023"},"n_packages":3,"n_references":null,"packages":[{"ecosystem":"crates.io","fixed":[],"introduced":["0"],"last_affected":["0.7.1"],"package":"pqc_kyber","purl":null,"source":"GHSA-x5j2-g63m-f8g4"},{"ecosystem":"crates.io","fixed":[],"introduced":["0"],"last_affected":["0.7.1"],"package":"pqc_kyber","purl":"pkg:cargo/pqc_kyber","source":"GHSA-x5j2-g63m-f8g4"},{"ecosystem":"crates.io","fixed":[],"introduced":["0.0.0-0"],"last_affected":[],"package":"pqc_kyber","purl":"pkg:cargo/pqc_kyber","source":"RUSTSEC-2023-0079"}],"products":null,"published":"2023-12-01","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":"Timing side-channel in Kyber libraries leaks secret keys via variable division times, allowing attackers to recover private keys.","url":"https://insights.sbomify.com/GHSA-x5j2-g63m-f8g4/"}