{"answers":{"affected":"1 open source package ship an affected version, including ghc.","exploited":"There is no known exploitation of HSEC-2025-0001 in the wild and no public exploit code.","fix":"Upgrade ghc to a fixed version for your release line: 9.12.2 or 9.12.4.","what":"HSEC-2025-0001 is a vulnerability in ghc, published on 14 Nov 2025."},"fix_prompt":"Check this codebase for HSEC-2025-0001 and fix it if it is affected.\n\nWhat it is: HSEC-2025-0001 is a vulnerability in ghc, published on 14 Nov 2025. \nExploitation: There is no known exploitation of HSEC-2025-0001 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- ghc (GHC): affected from 9.12.1; fixed in 9.12.2, 9.12.4\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/HSEC-2025-0001/ (Markdown: https://insights.sbomify.com/HSEC-2025-0001/index.md)","id":"HSEC-2025-0001","markdown":"https://insights.sbomify.com/HSEC-2025-0001/index.md","name":"HSEC-2025-0001","record":{"aliases":[],"analysis":{"component_type":"developer_tool","fix_type":"no_fix_stated","impacts":["denial_of_service","data_modify"],"network_reachable":"unknown","non_default_config":true,"product_category":"GHC compiler","requires_auth":"none","summary":"The GHC compiler may generate incorrect subword division results with optimizations, potentially causing data integrity issues or buffer overflows.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"# Subword division operations may produce incorrect results\n\nArithmetic operations may produce incorrect results when compiled with optimizations.\nFor the most part, this bug only causes availability and data integrity issues.\nHowever, in some circumstances, it may result in other, more complicated security related flaws, such as buffer overflow conditions.","ecosystems":["GHC"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Subword division operations may produce incorrect results","id":"HSEC-2025-0001","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":null,"product":null,"products":[],"type":"other","year":"2025"},"n_packages":1,"n_references":null,"packages":[{"ecosystem":"GHC","fixed":["9.12.2","9.12.4"],"introduced":["9.12.1","9.12.3"],"last_affected":[],"package":"ghc","purl":null,"source":"HSEC-2025-0001"}],"products":null,"published":"2025-11-14","related":[],"sources":[{"class":"open","licence":"CC0 1.0","name":"Haskell Security Response Team","prefix":"HSEC"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"The GHC compiler may generate incorrect subword division results with optimizations, potentially causing data integrity issues or buffer overflows.","url":"https://insights.sbomify.com/HSEC-2025-0001/"}