Skip to content
Fencer Intel
high 8.0

CVE-2020-12865 json

A heap buffer overflow in SANE Backends before 1.0.30 may allow a malicious device connected to the same local network as the victim to exe…

published 6y ago modified 4mo ago also EUVD-2020-5147

cvss
8.0
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
1.5%
EPSS 1.5% chance of exploitation in 30 days, percentile 73%
public exploits
0
none known

Summary

A heap buffer overflow in SANE Backends before 1.0.30 may allow a malicious device connected to the same local network as the victim to execute arbitrary code, aka GHSL-2020-084.

Patch / fix

  • sane-project sane_backends 1.0.30
  • sane-backends Debian 14, Debian 13, Debian 12 1.0.31-2

debian advisories DEBIAN-CVE-2020-12865

  • sane-backends Ubuntu 16.04 LTS 1.0.25+git20150528-1ubuntu2.16.04.3
  • sane-backends Ubuntu 18.04 LTS 1.0.27-1~experimental3ubuntu2.3
  • sane-backends Ubuntu 20.04 LTS 1.0.29-0ubuntu5.1

ubuntu advisories UBUNTU-CVE-2020-12865

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • sane-backends RHEL 8 1.0.27-19.el8_2.1
  • sane-backends-libs RHEL 8 1.0.27-19.el8_2.1
  • sane-backends-daemon RHEL 8 1.0.27-19.el8_2.1
  • sane-backends-drivers-cameras RHEL 8 1.0.27-19.el8_2.1
  • sane-backends-drivers-scanners RHEL 8 1.0.27-19.el8_2.1
  • sane-backends RHEL 8.0 E4S 1.0.27-19.el8_0.1
  • sane-backends-libs RHEL 8.0 E4S 1.0.27-19.el8_0.1
  • sane-backends-daemon RHEL 8.0 E4S 1.0.27-19.el8_0.1

red hat advisories RHSA-2020:3045RHSA-2020:2967RHSA-2020:2902

  • sane-backends SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES for SAP 12 SP3 +16 more 1.0.31-4.3.1
  • sane-backends SLE Module for Package Hub 15 SP2, SLE Module for Package Hub 15 SP1, SLE Module for Desktop Applications 15 SP2 +1 more 1.0.31-6.3.2

suse advisories SUSE-SU-2020:3125-1SUSE-SU-2020:3065-1

  • sane-backends openSUSE Leap 15.2 1.0.31-lp152.7.3.1
  • sane-backends openSUSE Leap 15.1 1.0.31-lp151.6.3.1

opensuse advisories openSUSE-SU-2020:1798-1openSUSE-SU-2020:1791-1

  • sane Alpine 3.24, Alpine 3.23, Alpine 3.22 +10 more 1.0.30-r0

alpine advisories ALPINE-CVE-2020-12865

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Is CVE-2020-12865 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2020-12865 updated cvss 8.0

sane-backends: Heap buffer overflow in esci2_img

  • Red Hat Enterprise Linux AppStream (v. 8) sane-backends 1.0.27-19.el8_2.1, sane-backends-libs 1.0.27-19.el8_2.1, sane-backends-daemon 1.0.27-19.el8_2.1, sane-backends-drivers-cameras 1.0.27-19.el8_2.1, sane-backends-drivers-scanners 1.0.27-19.el8_2.1
    fixed: vendor fix RHSA-2020:2902
  • Red Hat Enterprise Linux AppStream E4S (v. 8.0) sane-backends 1.0.27-19.el8_0.1, sane-backends-libs 1.0.27-19.el8_0.1, sane-backends-daemon 1.0.27-19.el8_0.1, sane-backends-drivers-cameras 1.0.27-19.el8_0.1, sane-backends-drivers-scanners 1.0.27-19.el8_0.1
    fixed: vendor fix RHSA-2020:3045
  • Red Hat Enterprise Linux AppStream EUS (v. 8.1) sane-backends 1.0.27-19.el8_1.1, sane-backends-libs 1.0.27-19.el8_1.1, sane-backends-daemon 1.0.27-19.el8_1.1, sane-backends-drivers-cameras 1.0.27-19.el8_1.1, sane-backends-drivers-scanners 1.0.27-19.el8_1.1
    fixed: vendor fix RHSA-2020:2967
  • Red Hat Enterprise Linux 5 sane-backends Red Hat Enterprise Linux 6 sane-backends, sane-backends-libs, sane-backends-libs-gphoto2 Red Hat Enterprise Linux 7 sane-backends, sane-backends-libs, sane-backends-drivers-cameras, sane-backends-drivers-scanners
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

1.46% chance of exploitation in the next 30 days, higher than 73% of all scored CVEs (FIRST EPSS, 2026-11-09).

Exploits and checks

  • securitylab.github.com https://securitylab.github.com/advisories/GHSL-2020-075-libsane referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 3.1 8.0 CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD 2.0 5.2 AV:A/AC:L/Au:S/C:P/I:P/A:P

Classification

Weakness

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.