Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2018-5806

An error within the "leaf_hdr_load_raw()" function (internal/dcraw_common.cpp) in LibRaw versions prior to 0.18.8 can be exploited to trigger a NULL pointer dereference.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2018-5806
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 12:28 UTC · Revision 1

Source evidence

CVE-2018-5806

core-osv · Original source

Published 7 Dec 2018, 22:29 UTC

An error within the "leaf_hdr_load_raw()" function (internal/dcraw_common.cpp) in LibRaw versions prior to 0.18.8 can be exploited to trigger a NULL pointer dereference.

osv:CVE-2018-5806
Complete source record
{
  "id": "4da343022c72a57b3cfb71855e7bb20f1998014d46d3339829923952f0dad9cb",
  "url": "https://osv.dev/vulnerability/CVE-2018-5806",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2018-5806",
    "summary": "An error within the \"leaf_hdr_load_raw()\" function (internal/dcraw_common.cpp) in LibRaw versions prior to 0.18.8 can be exploited to trigger a NULL pointer dereference.",
    "evidence": "osv:CVE-2018-5806",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2018-5806",
      "aliases": [
        "CVE-2018-5806"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/libraw/libraw",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "9f26ce37f5be86ea11bfc6831366558650b1f6ff"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:libraw:libraw:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.18.8"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "9f26ce37f5be86ea11bfc6831366558650b1f6ff"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "0.18.7",
            "0.18.6",
            "0.18.5",
            "0.18.4",
            "0.18.3",
            "0.18.2",
            "0.18.1",
            "0.18.0",
            "0.17.0",
            "0.16.0",
            "0.15.0",
            "0.14.6",
            "0.14.5",
            "0.14.4",
            "0.14.3",
            "0.14.2",
            "0.14.1",
            "0.14.0",
            "0.13.6",
            "0.13.5",
            "0.13.4",
            "0.13.3",
            "0.13.2",
            "0.13.1",
            "0.13.0",
            "0.12.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-5806.json",
            "vanir_signatures": [
              {
                "id": "CVE-2018-5806-13bbbe0b",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "72157990115405437072869008142403678089",
                    "91095039444715808141075598593361836804",
                    "315779188054838010719781762465619906325",
                    "260867823482545661855188331808218345790",
                    "234857057552208646917438376645131305911",
                    "206146214758716778749074330095339348478",
                    "247960894787937022536739880342149011721",
                    "54330672415625928981528792743779202859",
                    "293547207206286871192173772426146880978",
                    "9874373981138141896568868911025449957",
                    "249788294694743818553041987795189000353",
                    "264130181463166165130195137198822619265",
                    "146931122158647408271548350055420031602",
                    "117494544255263399237070941369421212546",
                    "97144473278721834432589579486142339929",
                    "3456239808480143829133508580993727315",
                    "101678192708612356873560141099496025139"
                  ]
                },
                "source": "https://github.com/libraw/libraw/commit/9f26ce37f5be86ea11bfc6831366558650b1f6ff",
                "target": {
                  "file": "internal/dcraw_common.cpp"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2018-5806-2b94621f",
                "digest": {
                  "length": 3893,
                  "function_hash": "81076601981760701772015192067059885823"
                },
                "source": "https://github.com/libraw/libraw/commit/9f26ce37f5be86ea11bfc6831366558650b1f6ff",
                "target": {
                  "file": "dcraw/dcraw.c",
                  "function": "quicktake_100_load_raw"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2018-5806-8b0bfa86",
                "digest": {
                  "length": 979,
                  "function_hash": "299153711777264910194194674493063076714"
                },
                "source": "https://github.com/libraw/libraw/commit/9f26ce37f5be86ea11bfc6831366558650b1f6ff",
                "target": {
                  "file": "internal/dcraw_common.cpp",
                  "function": "leaf_hdr_load_raw"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2018-5806-95887c80",
                "digest": {
                  "length": 979,
                  "function_hash": "299153711777264910194194674493063076714"
                },
                "source": "https://github.com/libraw/libraw/commit/9f26ce37f5be86ea11bfc6831366558650b1f6ff",
                "target": {
                  "file": "dcraw/dcraw.c",
                  "function": "leaf_hdr_load_raw"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2018-5806-9796cb0a",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "72157990115405437072869008142403678089",
                    "91095039444715808141075598593361836804",
                    "315779188054838010719781762465619906325",
                    "260867823482545661855188331808218345790",
                    "234857057552208646917438376645131305911",
                    "206146214758716778749074330095339348478",
                    "247960894787937022536739880342149011721",
                    "54330672415625928981528792743779202859",
                    "293547207206286871192173772426146880978",
                    "9874373981138141896568868911025449957",
                    "249788294694743818553041987795189000353",
                    "264130181463166165130195137198822619265",
                    "146931122158647408271548350055420031602",
                    "117494544255263399237070941369421212546",
                    "97144473278721834432589579486142339929",
                    "3456239808480143829133508580993727315",
                    "101678192708612356873560141099496025139"
                  ]
                },
                "source": "https://github.com/libraw/libraw/commit/9f26ce37f5be86ea11bfc6831366558650b1f6ff",
                "target": {
                  "file": "dcraw/dcraw.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2018-5806-b0ca8c45",
                "digest": {
                  "length": 3893,
                  "function_hash": "81076601981760701772015192067059885823"
                },
                "source": "https://github.com/libraw/libraw/commit/9f26ce37f5be86ea11bfc6831366558650b1f6ff",
                "target": {
                  "file": "internal/dcraw_common.cpp",
                  "function": "quicktake_100_load_raw"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2018-5806-f82f3fa4",
                "digest": {
                  "length": 61356,
                  "function_hash": "191347036979996368125297428625069425213"
                },
                "source": "https://github.com/libraw/libraw/commit/9f26ce37f5be86ea11bfc6831366558650b1f6ff",
                "target": {
                  "file": "internal/dcraw_common.cpp",
                  "function": "identify"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2018-5806-fc7560f7",
                "digest": {
                  "length": 61356,
                  "function_hash": "191347036979996368125297428625069425213"
                },
                "source": "https://github.com/libraw/libraw/commit/9f26ce37f5be86ea11bfc6831366558650b1f6ff",
                "target": {
                  "file": "dcraw/dcraw.c",
                  "function": "identify"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T13:40:00Z"
          }
        }
      ],
      "modified": "2026-10-20T13:40:00.769596986Z",
      "provider": "osv",
      "references": [
        "https://access.redhat.com/errata/RHSA-2018:3065",
        "https://github.com/LibRaw/LibRaw/blob/master/Changelog.txt",
        "https://secuniaresearch.flexerasoftware.com/advisories/81000/",
        "https://secuniaresearch.flexerasoftware.com/secunia_research/2018-3/",
        "https://github.com/LibRaw/LibRaw/commit/9f26ce37f5be86ea11bfc6831366558650b1f6ff"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_desktop",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_server",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_workstation",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2018-5806",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 387934,
  "published_at": "2018-12-07T22:29:00.88+00:00"
}