CVE-2026-40386

libexif: libexif: Denial of Service and information disclosure via integer underflow in MakerNote decoding

Published Apr 12, 2026 CVSS 3.1 · 4 Medium EPSS < 1% KEV · Not listed
Description
In libexif through 0.6.25, an integer underflow in size checking for Fuji and Olympus MakerNote decoding could be used by attackers to crash or leak information out of libexif-using programs.

Analysis

AI-generated

Technical impact

The vulnerability arises from an integer underflow during size verification when decoding Fuji and Olympus MakerNote data. This flaw can cause libexif to crash or expose internal memory contents, resulting in potential loss of availability or leakage of sensitive information processed by the library.

Affected Systems

The libexif project’s libexif component is affected in all releases up through version 0.6.25. Applications that incorporate libexif for handling image metadata are at risk.

Risk and Exploitability

The CVSS score of 4.0 indicates a moderate risk. No EPSS data is available, and the vulnerability is not listed in CISA’s KEV catalog. The likely attack vector is local or remote exploitation by supplying a crafted image that forces the library to process malformed MakerNote sections. Exploitation would require the target program to parse such an image, a condition that is relatively easy to satisfy for any image-capturing or viewing software using libexif.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade libexif to version 0.6.26 or later.
  • If an upgrade is delayed, isolate the image parsing routine in a restricted environment or sandbox.
  • Validate or sanitize MakerNote data before rendering or processing it.
  • Apply the patch from commit dc6eac6e9655d14d0779d99e82d0f5f442d2f34b by rebuilding libexif from source.

Generated by OpenCVE AI on April 12, 2026 at 19:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4558-1 libexif security update
Ubuntu USN Ubuntu USN USN-8531-1 libexif vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title libexif: libexif: Denial of Service and information disclosure via integer underflow in MakerNote decoding
References
Metrics threat_severity

None

threat_severity

Moderate

Type Values Removed Values Added
Description In libexif through 0.6.25, an integer underflow in size checking for Fuji and Olympus MakerNote decoding could be used by attackers to crash or leak information out of libexif-using programs.
First Time appeared Libexif Project
Libexif Project libexif
Weaknesses CWE-191
CPEs cpe:2.3:a:libexif_project:libexif:*:*:*:*:*:*:*:*
Vendors & Products Libexif Project
Libexif Project libexif
References
Metrics cvssV3_1

{'score': 4, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L'}

Weaknesses
  • CWE-191

    Integer Underflow (Wrap or Wraparound)

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Apr 14, 2026, 4:33 PM
Reserved
Apr 12, 2026, 6:19 PM
Status
Analyzed
Published
Apr 12, 2026, 7:16 PM
Modified
Jun 17, 2026, 10:45 AM
Severity
Moderate
Public date
Apr 12, 2026, 6:19 PM