CVE-2018-7247

Source
https://nvd.nist.gov/vuln/detail/CVE-2018-7247
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-7247.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2018-7247
Downstream
Related
Published
2018-02-19T18:29:00Z
Modified
2025-10-21T04:38:15.778094Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

An issue was discovered in pixHtmlViewer in prog/htmlviewer.c in Leptonica before 1.75.3. Unsanitized input (rootname) can overflow a buffer, leading potentially to arbitrary code execution or possibly unspecified other impact.

References

Affected packages

Git / github.com/danbloomberg/leptonica

Affected ranges

Type
GIT
Repo
https://github.com/danbloomberg/leptonica
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

1.*

1.74.0
1.74.1
1.74.2
1.74.3
1.74.4
1.75.0
1.75.1
1.75.2
1.75.3

v1.*

v1.42
v1.44
v1.46
v1.48
v1.50
v1.52
v1.54
v1.56
v1.58
v1.60
v1.61
v1.62
v1.63
v1.64
v1.65
v1.66
v1.67
v1.68
v1.69
v1.70
v1.71
v1.72
v1.73
v1.74.3

Database specific

vanir_signatures

[
    {
        "source": "https://github.com/danbloomberg/leptonica/commit/c1079bb8e77cdd426759e466729917ca37a3ed9f",
        "target": {
            "file": "prog/htmlviewer.c"
        },
        "deprecated": false,
        "id": "CVE-2018-7247-9a10d3db",
        "signature_version": "v1",
        "signature_type": "Line",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "86131722677607723836386531335628579842",
                "321864641632423368605542367013098034770",
                "125405979290422972298820614717049585014",
                "63566823817719195583457703102878675001",
                "250866039938653795677324993901594496235",
                "244251171216041348305455856739691320093",
                "247430095452367124053452919071023693657",
                "208986908692489209629208892835202775509",
                "82185525019101152392144563271275276878",
                "217501793217674591336551416808823416899"
            ]
        }
    },
    {
        "source": "https://github.com/danbloomberg/leptonica/commit/c1079bb8e77cdd426759e466729917ca37a3ed9f",
        "target": {
            "function": "pixHtmlViewer",
            "file": "prog/htmlviewer.c"
        },
        "deprecated": false,
        "id": "CVE-2018-7247-fdfb99b6",
        "signature_version": "v1",
        "signature_type": "Function",
        "digest": {
            "length": 3985.0,
            "function_hash": "285240336880957559950408789745258391992"
        }
    }
]