{"answers":{"affected":"1 open source package ship an affected version, including base.","exploited":"There is no known exploitation of HSEC-2024-0006 in the wild and no public exploit code.","fix":"Upgrade base to 4.15.1.0 or later.","what":"HSEC-2024-0006 is a vulnerability in base, published on 14 Nov 2025."},"fix_prompt":"Check this codebase for HSEC-2024-0006 and fix it if it is affected.\n\nWhat it is: HSEC-2024-0006 is a vulnerability in base, published on 14 Nov 2025. \nExploitation: There is no known exploitation of HSEC-2024-0006 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- base (Hackage): affected from 4.15.0.0; fixed in 4.15.1.0\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-2024-0006/ (Markdown: https://insights.sbomify.com/HSEC-2024-0006/index.md)","id":"HSEC-2024-0006","markdown":"https://insights.sbomify.com/HSEC-2024-0006/index.md","name":"HSEC-2024-0006","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"patch","impacts":["data_modify","denial_of_service"],"network_reachable":"unknown","non_default_config":true,"product_category":"Haskell base library","requires_auth":"none","summary":"Incorrect integer conversions in Haskell's fromIntegral function can cause data corruption or crashes, potentially leading to buffer overflows.","user_interaction":"not_required","vuln_class":"integer_overflow"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"# `fromIntegral`: conversion error\n\n`fromIntegral` may result in coercion errors when used with optimization flags `-O1` or `-O2`\nin the following situation:\n\n- Converting negative `Int` to `Natural` does not throw an arithmetic underflow error\n- Converting large `Integer` greater than 2^64 to `Natural` overflow.\n\nFor the most part, these errors in and of themselves result only in availability and data integrity issues.\nHowever, in some circumstances, they may result in other, more complicated security related flaws, such as buffer overflow conditions.","ecosystems":["Hackage"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"fromIntegral: conversion error","id":"HSEC-2024-0006","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":null,"product":null,"products":[],"type":"integer_overflow","year":"2025"},"n_packages":1,"n_references":null,"packages":[{"ecosystem":"Hackage","fixed":["4.15.1.0"],"introduced":["4.15.0.0"],"last_affected":[],"package":"base","purl":"pkg:hackage/base","source":"HSEC-2024-0006"}],"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":"Incorrect integer conversions in Haskell's fromIntegral function can cause data corruption or crashes, potentially leading to buffer overflows.","url":"https://insights.sbomify.com/HSEC-2024-0006/"}