Security mailing lists by PureSourceCode

HSEC-2024-0006

MEDIUM 6.8CVSS 3.1

fromIntegral: 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 Int to Natural does not throw an arithmetic underflow error
  • Converting large Integer greater than 2^64 to Natural overflow.

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.

Published
14 Nov 2025
Last modified
14 Nov 2025
Sources
OSVJSON

Scores

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV Hackage base >= 4.15.0.0, < 4.15.1.0 4.15.1.0

References

History

  • 25 Nov 2026 20:15 UTC · OSV: first stored (published 14 Nov 2025)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.