Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2018-7998

In libvips before 8.6.3, a NULL function pointer dereference vulnerability was found in the vips_region_generate function in region.c, which allows remote attackers to cause a denial of service or possibly have unspecified other impact via a crafted image file. This occurs because of a race condition involving a failed delayed load and other worker threads.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2018-7998
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 09:06 UTC · Revision 1

Source evidence

CVE-2018-7998

core-osv · Original source

Published 9 Mar 2018, 19:29 UTC

In libvips before 8.6.3, a NULL function pointer dereference vulnerability was found in the vips_region_generate function in region.c, which allows remote attackers to cause a denial of service or possibly have unspecified other impact via a crafted image file. This occurs because of a race condition involving a failed delayed load and other worker threads.

osv:CVE-2018-7998
Complete source record
{
  "id": "c79a1a2c603402f6f2109a50c5855e19e35cf96785e5e953ddd9c77e8d251654",
  "url": "https://osv.dev/vulnerability/CVE-2018-7998",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2018-7998",
    "summary": "In libvips before 8.6.3, a NULL function pointer dereference vulnerability was found in the vips_region_generate function in region.c, which allows remote attackers to cause a denial of service or possibly have unspecified other impact via a crafted image file. This occurs because of a race condition involving a failed delayed load and other worker threads.",
    "evidence": "osv:CVE-2018-7998",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2018-7998",
      "aliases": [
        "CVE-2018-7998"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/jcupitt/libvips",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "20d840e6da15c1574b3ed998bc92f91d1e36c2a5"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "fixed": "20d840e6da15c1574b3ed998bc92f91d1e36c2a5"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v8.6.2",
            "v8.6.1",
            "v8.6.0",
            "v8.6.0-beta2",
            "v8.6.0-beta1",
            "v8.6.0-alpha2",
            "v8.6.0-alpha1",
            "v8.5.3",
            "v8.5.2",
            "v8.5.1",
            "v8.3.0",
            "v8.2.2",
            "v8.1",
            "v8.0-beta",
            "v7.28.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-7998.json",
            "vanir_signatures": [
              {
                "id": "CVE-2018-7998-2415b40c",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "306926423683472828317704438232217260033",
                    "277502447855396680736552641980594366635",
                    "60324371128634066185810503912703753954",
                    "46965884156854872856711803342893603777"
                  ]
                },
                "source": "https://github.com/jcupitt/libvips/commit/20d840e6da15c1574b3ed998bc92f91d1e36c2a5",
                "target": {
                  "file": "libvips/include/vips/foreign.h"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2018-7998-6b377808",
                "digest": {
                  "length": 727,
                  "function_hash": "218512315501625304912560481540080997760"
                },
                "source": "https://github.com/jcupitt/libvips/commit/20d840e6da15c1574b3ed998bc92f91d1e36c2a5",
                "target": {
                  "file": "libvips/foreign/foreign.c",
                  "function": "vips_foreign_load_start"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2018-7998-b7f96901",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "74971341457739111062111131691742175785",
                    "269345774935057705419413702627315801641",
                    "168304705553438508146335368674068646877",
                    "56335366994696899431774619255624391828",
                    "339680074312113606083540884884732141390",
                    "29243557630705950689171324433621822952",
                    "23393416851620940943205440885912574856",
                    "47612449997992787440572348434302158533",
                    "101420819265531338736456940068176335718",
                    "56780132785993053343655089612002781683",
                    "184858710503790449278907834426119569883",
                    "339659324962237870371255317078229467245"
                  ]
                },
                "source": "https://github.com/jcupitt/libvips/commit/20d840e6da15c1574b3ed998bc92f91d1e36c2a5",
                "target": {
                  "file": "libvips/foreign/foreign.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-24T14:08:49Z"
          }
        },
        {
          "ranges": [
            {
              "repo": "https://github.com/libvips/libvips",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "29e05dabaf0772bac57bad63b2e09ce1c9298c4b"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:libvips:libvips:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "8.6.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v8.6.2",
            "v8.6.1",
            "v8.6.0",
            "v8.6.0-beta2",
            "v8.6.0-beta1",
            "v8.6.0-alpha2",
            "v8.6.0-alpha1",
            "v8.5.3",
            "v8.5.2",
            "v8.5.1",
            "v8.3.0",
            "v8.2.2",
            "v8.1",
            "v8.0-beta",
            "v7.28.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-7998.json",
            "vanir_signatures": [
              {
                "id": "CVE-2018-7998-51caee8d",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "74971341457739111062111131691742175785",
                    "44772031049909002966425481476098777198",
                    "102701039234728829292451413723282066390",
                    "145609127429089827125319393627334277342",
                    "178398260312620861944776409928790400255",
                    "328738077399853880013936568294173244734",
                    "259987416250558282849050694309490209494",
                    "233140730868419980135888439614774466878",
                    "54581753103257050674532694059278708035",
                    "47813536290551216746321807822127493885",
                    "325053430058307081669778602120269925429",
                    "95521321950089192257447280734394407591",
                    "100603343823782997565240292078322801838",
                    "337152236042029709084901898249719314304",
                    "168170405060649004115573762720131899176",
                    "270610453301636106727844918001982753000",
                    "267164239819226960294607640470899918859"
                  ]
                },
                "source": "https://github.com/libvips/libvips/commit/29e05dabaf0772bac57bad63b2e09ce1c9298c4b",
                "target": {
                  "file": "libvips/colour/icc_transform.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1",
                "match_only_versions": [
                  "v7.28.0",
                  "v8.0-beta",
                  "v8.1",
                  "v8.2.2",
                  "v8.3.0",
                  "v8.5.1",
                  "v8.5.2",
                  "v8.5.3",
                  "v8.6.0",
                  "v8.6.0-alpha1",
                  "v8.6.0-alpha2",
                  "v8.6.0-beta1",
                  "v8.6.0-beta2",
                  "v8.6.1",
                  "v8.6.2"
                ]
              },
              {
                "id": "CVE-2018-7998-c1855c16",
                "digest": {
                  "length": 977,
                  "function_hash": "133729574824333541002856427186533978344"
                },
                "source": "https://github.com/libvips/libvips/commit/29e05dabaf0772bac57bad63b2e09ce1c9298c4b",
                "target": {
                  "file": "libvips/colour/icc_transform.c",
                  "function": "vips_icc_import_build"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1",
                "match_only_versions": [
                  "v7.28.0",
                  "v8.0-beta",
                  "v8.1",
                  "v8.2.2",
                  "v8.3.0",
                  "v8.5.1",
                  "v8.5.2",
                  "v8.5.3",
                  "v8.6.0",
                  "v8.6.0-alpha1",
                  "v8.6.0-alpha2",
                  "v8.6.0-beta1",
                  "v8.6.0-beta2",
                  "v8.6.1",
                  "v8.6.2"
                ]
              }
            ],
            "vanir_signatures_modified": "2026-10-24T14:08:49Z"
          }
        }
      ],
      "modified": "2026-10-24T14:08:49.533871358Z",
      "provider": "osv",
      "references": [
        "https://lists.debian.org/debian-lts-announce/2018/03/msg00009.html",
        "https://github.com/jcupitt/libvips/commit/20d840e6da15c1574b3ed998bc92f91d1e36c2a5",
        "https://github.com/jcupitt/libvips/issues/893"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2018-7998",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 443095,
  "published_at": "2018-03-09T19:29:01.07+00:00"
}