---
id: "CVE-2023-29659"
page: "https://infrastack.ai/live/CVE-2023-29659"
kind: "vulnerability"
aliases: ["CVE-2023-29659", "GHSA-22fx-6r9m-r8h9"]
title: "libheif vulnerable to segmentation fault via floating point exception"
severity: "medium"
cvss: 6.5
epss: 0.00927
exploited: false
status: "open"
category: "package"
products: [{"name": "github.com/strukturag/libheif", "fixed": ["1.15.2"], "affected": "< 1.15.2", "ecosystem": "go"}, {"name": "struktur libheif", "fixed": [], "affected": "= 1.15.1", "ecosystem": "vendor"}, {"name": "fedoraproject fedora", "fixed": [], "affected": "= 36", "ecosystem": "vendor"}, {"name": "fedoraproject fedora", "fixed": [], "affected": "= 37", "ecosystem": "vendor"}]
ecosystems: ["go", "vendor"]
tags: ["cwe-369", "go", "image-processing", "libheif", "package"]
not_affected_if: ["libheif-1.15.2-or-later", "no-untrusted-heif-input"]
published_at: "2023-05-05T16:15:09+00:00"
first_seen_at: "2026-11-12T22:42:03+00:00"
updated_at: "2026-11-12T23:10:46+00:00"
sources: [{"source": "ghsa", "url": "https://github.com/advisories/GHSA-22fx-6r9m-r8h9", "first_seen_at": "2026-11-12T22:42:03+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-29659", "first_seen_at": "2026-11-12T23:10:46+00:00"}]
exploit_sources: [{"type": "poc", "url": "https://github.com/strukturag/libheif/issues/794"}, {"type": "epss", "score": 0.00927, "url": "https://api.first.org/data/v1/epss?cve=CVE-2023-29659"}]
---

# libheif vulnerable to segmentation fault via floating point exception

Link for people: https://infrastack.ai/live/CVE-2023-29659 (this .md is for agents)

libheif, a library for reading HEIF and HEIC images, has a segmentation fault caused by a floating point exception in its Fraction::round() function in box.cc. A crafted image file makes any program that decodes it crash, which is a denial of service.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- go:github.com/strukturag/libheif affected < 1.15.2 fixed 1.15.2
- vendor:struktur libheif affected = 1.15.1 fixed no fixed version listed
- vendor:fedoraproject fedora affected = 36 fixed no fixed version listed
- vendor:fedoraproject fedora affected = 37 fixed no fixed version listed

## How to check

- Check the version of the Go module in `go.mod` for `github.com/strukturag/libheif`; affected versions are below `1.15.2`.
- Run `go list -m github.com/strukturag/libheif` to see the resolved version.

## Fix

- `github.com/strukturag/libheif` `1.15.2`

## Timeline

- 2026-11-12T22:42:03+00:00 ghsa https://github.com/advisories/GHSA-22fx-6r9m-r8h9
- 2026-11-12T23:10:46+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2023-29659

## Documents

- [fix] Patch: github.com https://github.com/strukturag/libheif/commit/e05e15b57a38ec411cb9acb38512a1c36ff62991
- [poc] Exploit: github.com https://github.com/strukturag/libheif/issues/794

## From the sources

A Segmentation fault caused by a floating point exception exists in libheif 1.15.1 using crafted heif images via the heif::Fraction::round() function in box.cc, which causes a denial of service.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
