CVE-2020-10378

Source
https://nvd.nist.gov/vuln/detail/CVE-2020-10378
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2020-10378.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2020-10378
Aliases
Downstream
Related
Published
2020-06-25T19:15:12Z
Modified
2025-10-15T11:21:54.204863Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N CVSS Calculator
Summary
[none]
Details

In libImaging/PcxDecode.c in Pillow before 7.1.0, an out-of-bounds read can occur when reading PCX files where state->shuffle is instructed to read beyond state->buffer.

References

Affected packages

Git / github.com/python-pillow/pillow

Affected ranges

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

Affected versions

1.*

1.0
1.2
1.7.6
1.7.7
1.7.8

2.*

2.0.0
2.1.0
2.2.0
2.2.1
2.2.2
2.3.0
2.5.0
2.6.0
2.6.0-rc1
2.7.0
2.8.0
2.8.1
2.9.0
2.9.0.dev0
2.9.0.dev1
2.9.0.dev2

3.*

3.0.0
3.1.0
3.1.0-rc1
3.2.0
3.3.0
3.3.1
3.4.0

4.*

4.0.0
4.0.0a
4.1.0
4.2.0
4.3.0

5.*

5.0.0
5.1.0
5.2.0
5.3.0
5.4.0

6.*

6.0.0
6.1.0
6.2.0

7.*

7.0.0

Database specific

vanir_signatures

[
    {
        "signature_type": "Function",
        "deprecated": false,
        "source": "https://github.com/python-pillow/pillow/commit/6a83e4324738bb0452fbe8074a995b1c73f08de7",
        "signature_version": "v1",
        "target": {
            "function": "ImagingPcxDecode",
            "file": "src/libImaging/PcxDecode.c"
        },
        "digest": {
            "function_hash": "237027674255937501286717290487134717202",
            "length": 1418.0
        },
        "id": "CVE-2020-10378-78acc16d"
    },
    {
        "signature_type": "Line",
        "deprecated": false,
        "source": "https://github.com/python-pillow/pillow/commit/6a83e4324738bb0452fbe8074a995b1c73f08de7",
        "signature_version": "v1",
        "target": {
            "file": "src/libImaging/PcxDecode.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "25901954450279011341742658171344170564",
                "4064274618583996555694994057645488849",
                "28176007691574792831032194145824532472",
                "217779631413749524162890180010505715716",
                "100250632816792623213214653223208827946",
                "24042758865160182801373950721837609446",
                "216173328986995126865716644862015367760"
            ]
        },
        "id": "CVE-2020-10378-ee72a343"
    }
]