CVE-2026-120452

Source
https://cve.org/CVERecord?id=CVE-2026-120452
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-120452.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-120452
Downstream
Published
2026-11-02T14:29:10Z
Modified
2026-11-04T07:08:08Z
Severity
  • 5.2 (Medium) CVSS_V4 - CVSS:4.0/AV:P/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N CVSS Calculator
Summary
libgphoto2 through 2.5.34 Heap Out-of-Bounds Read/Write via jl2005c Thumbnail Conversion
Details

libgphoto2 through 2.5.34 contains a heap out-of-bounds read and write vulnerability in jl2005bcd_decompress() that allows malicious USB cameras to corrupt heap memory via oversized thumbnail processing. Attackers can supply small allocation-table values and a thumbnail header byte so in-place byte-swapping exceeds the buffer by about 30 KB, leaking heap contents in preview images.

Database specific
{
    "cna_assigner":  "VulnCheck",
    "cwe_ids":  [
        "CWE-787"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/120xxx/CVE-2026-120452.json"
}
References

Affected packages

Git / github.com/gphoto/libgphoto2

Affected ranges

Type
GIT
Repo
https://github.com/gphoto/libgphoto2
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "0"
                },
                {
                    "last_affected":  "2.5.34"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StandardRange"
        },
        {
            "range":  [
                {
                    "fixed":  "af3b8e9c542cda863fb5f2f3cfeb261bd78e4442"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "range":  [
                {
                    "fixed":  "30bf7ace6d47cfe1232ea73bde2aceb95aba4bfb"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        }
    ]
}

Affected versions

Other
libgphoto2-2_5_0-release
libgphoto2-2_5_1-release
libgphoto2-2_5_10-release
libgphoto2-2_5_11-release
libgphoto2-2_5_12-release
libgphoto2-2_5_13-release
libgphoto2-2_5_14-release
libgphoto2-2_5_15-release
libgphoto2-2_5_16-release
libgphoto2-2_5_17-release
libgphoto2-2_5_18-release
libgphoto2-2_5_19-release
libgphoto2-2_5_1_1-release
libgphoto2-2_5_2-release
libgphoto2-2_5_20-release
libgphoto2-2_5_21-release
libgphoto2-2_5_22-release
libgphoto2-2_5_23-release
libgphoto2-2_5_24-release
libgphoto2-2_5_25-release
libgphoto2-2_5_26-release
libgphoto2-2_5_27-release
libgphoto2-2_5_28-release
libgphoto2-2_5_29-release
libgphoto2-2_5_3-release
libgphoto2-2_5_30-release
libgphoto2-2_5_31-release
libgphoto2-2_5_32-release
libgphoto2-2_5_34-release
libgphoto2-2_5_3_1-release
libgphoto2-2_5_4-release
libgphoto2-2_5_5-release
libgphoto2-2_5_5_1-release
libgphoto2-2_5_6-release
libgphoto2-2_5_7-release
libgphoto2-2_5_8-release
libgphoto2-2_5_9-release
v2.*
v2.5.24
v2.5.25
v2.5.26
v2.5.27
v2.5.28
v2.5.29
v2.5.30
v2.5.31
v2.5.32
v2.5.34

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-120452.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "186795467781599455575681830360529645690",
            "length":  4909
        },
        "id":  "CVE-2026-120452-7e2e77e6",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/gphoto/libgphoto2/commit/30bf7ace6d47cfe1232ea73bde2aceb95aba4bfb",
        "target":  {
            "file":  "camlibs/jl2005c/jl2005bcd_decompress.c",
            "function":  "jl2005bcd_decompress"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "253831431337293839390932995748194585388",
                "5861968022940552983401984918824834018",
                "227195544656674987569564576742528463615",
                "309510561165222969414203442789323260213"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2026-120452-8d7ddd7a",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/gphoto/libgphoto2/commit/30bf7ace6d47cfe1232ea73bde2aceb95aba4bfb",
        "target":  {
            "file":  "camlibs/jl2005c/jl2005bcd_decompress.c"
        }
    }
]
vanir_signatures_modified
"2026-11-04T07:08:08Z"