Common Weakness Enumeration

CWE-1339

Allowed

Insufficient Precision or Accuracy of a Real Number

Abstraction: Base · Status: Draft

The product processes a real number with an implementation in which the number's representation does not preserve required accuracy and precision in its fractional part, causing an incorrect result.

1 vulnerability references this CWE, most recent first.

GHSA-4F34-XV5X-8JFH

Vulnerability from github – Published: 2026-09-24 15:31 – Updated: 2026-10-06 18:31
VLAI
Details

libvips 8.19.0 contains a memory access vulnerability when processing little-endian PFM images. If the PFM text header length is not a multiple of four bytes, the mmap-based loader can expose pixel data at an address that is not properly aligned for float access. vips_avg_scan() subsequently dereferences the buffer through a float pointer, resulting in undefined behavior and process termination on strict-alignment architectures or UBSan-instrumented builds, leading to denial of service.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-88360"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-1339"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-09-24T14:18:18Z",
    "severity": "HIGH"
  },
  "details": "libvips 8.19.0 contains a memory access vulnerability when processing little-endian PFM images. If the PFM text header length is not a multiple of four bytes, the mmap-based loader can expose pixel data at an address that is not properly aligned for float access. vips_avg_scan() subsequently dereferences the buffer through a float pointer, resulting in undefined behavior and process termination on strict-alignment architectures or UBSan-instrumented builds, leading to denial of service.",
  "id": "GHSA-4f34-xv5x-8jfh",
  "modified": "2026-10-06T18:31:19Z",
  "published": "2026-09-24T15:31:31Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-88360"
    },
    {
      "type": "WEB",
      "url": "https://github.com/libvips/libvips/issues/5187"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
      "type": "CVSS_V3"
    }
  ]
}

Mitigation
Implementation Patching and Maintenance

The developer or maintainer can move to a more accurate representation of real numbers. In extreme cases, the programmer can move to representations such as ratios of BigInts which can represent real numbers to extremely fine precision. The programmer can also use the concept of an Unum real. The memory and CPU tradeoffs of this change must be examined. Since floating point reals are used in many products and many locations, they are implemented in hardware and most format changes will cause the calculations to be moved into software resulting in slower products.

No CAPEC attack patterns related to this CWE.