CVE-2018-5813

Source
https://cve.org/CVERecord?id=CVE-2018-5813
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2018-5813.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2018-5813
Downstream
Related
Published
2018-12-07T22:29:01.520Z
Modified
2026-05-18T17:44:43.719712Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

An error within the "parse_minolta()" function (dcraw/dcraw.c) in LibRaw versions prior to 0.18.11 can be exploited to trigger an infinite loop via a specially crafted file.

Database specific
{
    "unresolved_ranges": [
        {
            "vendor_product": "canonical:ubuntu_linux",
            "cpes": [
                "cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*",
                "cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*",
                "cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*"
            ],
            "source": "CPE_FIELD",
            "extracted_events": [
                {
                    "last_affected": "14.04"
                },
                {
                    "last_affected": "16.04"
                },
                {
                    "last_affected": "18.04"
                }
            ]
        }
    ]
}
References

Affected packages

Git / github.com/libraw/libraw

Affected ranges

Type
GIT
Repo
https://github.com/libraw/libraw
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
{
    "cpe": "cpe:2.3:a:libraw:libraw:*:*:*:*:*:*:*:*",
    "source": [
        "CPE_FIELD",
        "REFERENCES"
    ],
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "0.18.11"
        }
    ]
}

Affected versions

0.*
0.12.0
0.13.0
0.13.1
0.13.2
0.13.3
0.13.4
0.13.5
0.13.6
0.14.0
0.14.1
0.14.2
0.14.3
0.14.4
0.14.5
0.14.6
0.15.0
0.16.0
0.17.0
0.18.0
0.18.1
0.18.10
0.18.2
0.18.3
0.18.4
0.18.5
0.18.6
0.18.7
0.18.9

Database specific

vanir_signatures
[
    {
        "source": "https://github.com/libraw/libraw/commit/e47384546b43d0fd536e933249047bc397a4d88b",
        "signature_version": "v1",
        "target": {
            "file": "internal/dcraw_common.cpp"
        },
        "signature_type": "Line",
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "138481034920068687057640270736735149783",
                "155008637328667895771217093114123597413",
                "202468380364842969293143948639227716452",
                "43362345418300741757744580791995773669",
                "93498740150145970412707948942946017657",
                "43849796945480050784384972864088438034",
                "69979759779499482055485378711069337766",
                "81314346554430816809408695689807658024",
                "326138784518238356426912359781180545145"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2018-5813-2f06c7a3"
    },
    {
        "source": "https://github.com/libraw/libraw/commit/e47384546b43d0fd536e933249047bc397a4d88b",
        "signature_version": "v1",
        "target": {
            "file": "dcraw/dcraw.c"
        },
        "signature_type": "Line",
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "138481034920068687057640270736735149783",
                "155008637328667895771217093114123597413",
                "202468380364842969293143948639227716452",
                "43362345418300741757744580791995773669",
                "93498740150145970412707948942946017657",
                "43849796945480050784384972864088438034",
                "69979759779499482055485378711069337766",
                "81314346554430816809408695689807658024",
                "326138784518238356426912359781180545145"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2018-5813-a26917b4"
    },
    {
        "source": "https://github.com/libraw/libraw/commit/e47384546b43d0fd536e933249047bc397a4d88b",
        "signature_version": "v1",
        "target": {
            "function": "parse_minolta",
            "file": "internal/dcraw_common.cpp"
        },
        "signature_type": "Function",
        "deprecated": false,
        "digest": {
            "length": 3854.0,
            "function_hash": "336648434298068837655732362148006286611"
        },
        "id": "CVE-2018-5813-a456f537"
    },
    {
        "source": "https://github.com/libraw/libraw/commit/e47384546b43d0fd536e933249047bc397a4d88b",
        "signature_version": "v1",
        "target": {
            "function": "parse_minolta",
            "file": "dcraw/dcraw.c"
        },
        "signature_type": "Function",
        "deprecated": false,
        "digest": {
            "length": 3854.0,
            "function_hash": "336648434298068837655732362148006286611"
        },
        "id": "CVE-2018-5813-df5e2481"
    }
]
vanir_signatures_modified
"2026-05-18T17:44:43Z"
source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2018-5813.json"