CVE-2026-5342

Source
https://cve.org/CVERecord?id=CVE-2026-5342
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-5342.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-5342
Downstream
Related
Published
2026-04-02T14:30:14.897Z
Modified
2026-05-30T05:20:47.977301Z
Severity
  • 5.5 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P CVSS Calculator
Summary
LibRaw TIFF/NEF decoders_libraw.cpp nikon_load_padded_packed_raw out-of-bounds
Details

A flaw has been found in LibRaw up to 0.22.0. This affects the function LibRaw::nikonloadpaddedpackedraw of the file src/decoders/decoderslibraw.cpp of the component TIFF/NEF. Executing a manipulation of the argument loadflags/raw_width can lead to out-of-bounds read. It is possible to launch the attack remotely. The exploit has been published and may be used. Upgrading to version 0.22.1 mitigates this issue. This patch is called b8397cd45657b84e88bd1202528d1764265f185c. It is advisable to upgrade the affected component.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/5xxx/CVE-2026-5342.json",
    "unresolved_ranges": [
        {
            "extracted_events": [
                {
                    "last_affected": "0.1"
                },
                {
                    "last_affected": "0.2"
                },
                {
                    "last_affected": "0.3"
                },
                {
                    "last_affected": "0.4"
                },
                {
                    "last_affected": "0.5"
                },
                {
                    "last_affected": "0.6"
                },
                {
                    "last_affected": "0.7"
                },
                {
                    "last_affected": "0.8"
                },
                {
                    "last_affected": "0.9"
                },
                {
                    "last_affected": "0.10"
                }
            ],
            "source": "AFFECTED_FIELD"
        }
    ],
    "cwe_ids": [
        "CWE-119",
        "CWE-125"
    ],
    "cna_assigner": "VulDB"
}
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

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.20-RC2
0.20.0
0.20.1
0.20.2
0.21-Beta1
0.21.0
0.21.1
0.22.0

Database specific

vanir_signatures_modified
"2026-05-30T05:20:47Z"
vanir_signatures
[
    {
        "target": {
            "file": "src/metadata/tiff.cpp",
            "function": "LibRaw::apply_tiff"
        },
        "id": "CVE-2026-5342-1c5ba764",
        "signature_type": "Function",
        "digest": {
            "function_hash": "75762778109458427875769868541149481938",
            "length": 18461.0
        },
        "signature_version": "v1",
        "source": "https://github.com/libraw/libraw/commit/b8397cd45657b84e88bd1202528d1764265f185c",
        "deprecated": false
    },
    {
        "target": {
            "file": "src/decoders/decoders_libraw.cpp",
            "function": "LibRaw::nikon_load_padded_packed_raw"
        },
        "id": "CVE-2026-5342-313d2854",
        "signature_type": "Function",
        "digest": {
            "function_hash": "84981703727095246191539248690892626236",
            "length": 1156.0
        },
        "signature_version": "v1",
        "source": "https://github.com/libraw/libraw/commit/b8397cd45657b84e88bd1202528d1764265f185c",
        "deprecated": false
    },
    {
        "target": {
            "file": "src/decoders/decoders_libraw.cpp"
        },
        "id": "CVE-2026-5342-33412754",
        "signature_type": "Line",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "28244586361528992352522152194319482398",
                "92157897365039769988828882281683992520",
                "249419145314412054435341265046189754782",
                "147838370502341082218215597431389232700",
                "268852207816429060776474755319238157629",
                "19833769672006721639578250071944379213",
                "108147390792519766460047328957182456943",
                "193998266684608617211010662832227538321",
                "9342119849890528820223737516730364104",
                "138232008353031034202073290338649308539",
                "132295669638616007946044778428761391761",
                "51145738289976052827562857012528571353",
                "279545017355210863464581914152843540103",
                "126576192636509665505602364602811841240",
                "100569988196465285714214852750654529770",
                "276122923454765561941918136488648270401",
                "35727505169355187103433350353149522185"
            ]
        },
        "signature_version": "v1",
        "source": "https://github.com/libraw/libraw/commit/b8397cd45657b84e88bd1202528d1764265f185c",
        "deprecated": false
    },
    {
        "target": {
            "file": "src/metadata/tiff.cpp"
        },
        "id": "CVE-2026-5342-ce793a40",
        "signature_type": "Line",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "237739710694465869779659605822927391528",
                "284840264059880553985438553535815150122",
                "193763208134149196329007091648312408011",
                "16778219902612833982178182206358732840",
                "256008877216685110381393122834397204954"
            ]
        },
        "signature_version": "v1",
        "source": "https://github.com/libraw/libraw/commit/b8397cd45657b84e88bd1202528d1764265f185c",
        "deprecated": false
    }
]
source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-5342.json"