---
id: CVE-2026-114112
title: Sharp before 0.35.4 RCE via bundled libheif AVIF decoding
summary: >-
  Sharp before 0.35.4 bundles a vulnerable libheif dependency that allows
  attackers to achieve possible remote code execution on glibc-based Linux by
  supplying crafted images. Attackers can submit malicious AVIF/HEIF input to
  applications …
severity: high
cvss: 8.9
cvssVector: 'CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H'
cvssSource: cna
cwe:
  - CWE-122
vendor: lovell
product: sharp
affected:
  - sharp < 0.35.4
published: '2026-10-21'
updated: '2026-10-21'
sourceUpdated: '2026-10-21T00:37:11.090Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-114112'
references:
  - url: 'https://github.com/lovell/sharp/security/advisories/GHSA-rgj7-g3m4-5g8c'
    label: GitHub Security Advisory (GHSA-rgj7-g3m4-5g8c)
  - url: >-
      https://www.vulncheck.com/advisories/sharp-before-0.35.4-rce-via-bundled-libheif-avif-decoding
    label: >-
      VulnCheck Advisory: Sharp before 0.35.4 RCE via bundled libheif AVIF
      decoding
tags:
  - cve.org
ingestedAt: '2026-10-21T01:37:08.012Z'
---

## Overview

Sharp before 0.35.4 bundles a vulnerable libheif dependency that allows attackers to achieve possible remote code execution on glibc-based Linux by supplying crafted images. Attackers can submit malicious AVIF/HEIF input to applications processing untrusted images with sharp, triggering libheif decoding flaws to execute code.

## Affected

- `sharp < 0.35.4`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
