HSEC-2024-0006
MEDIUM 6.8CVSS 3.1fromIntegral: conversion error
fromIntegral: conversion error
fromIntegral may result in coercion errors when used with optimization flags -O1 or -O2
in the following situation:
- Converting negative
InttoNaturaldoes not throw an arithmetic underflow error - Converting large
Integergreater than 2^64 toNaturaloverflow.
For the most part, these errors in and of themselves result only in availability and data integrity issues.
However, in some circumstances, they may result in other, more complicated security related flaws, such as buffer overflow conditions.
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | HSEC | CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Hackage | base | >= 4.15.0.0, < 4.15.1.0 | 4.15.1.0 |
References
- https://gitlab.haskell.org/ghc/ghc/-/issues/19345 · REPORT
- https://gitlab.haskell.org/ghc/ghc/-/issues/20066 · REPORT
- https://gitlab.haskell.org/ghc/ghc/-/merge_requests/4980 · FIX
- https://gitlab.haskell.org/ghc/ghc/-/merge_requests/6109 · FIX
History
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 14 Nov 2025)