cve.bz

CVE-2020-12861 Out-of-bounds Write

8.8 highExploit referenceEPSS 3.0%Fix available

High (8.8). EPSS 3.0% estimated probability of exploitation activity in the next 30 days.

On this page
A heap buffer overflow in SANE Backends before 1.0.30 allows a malicious device connected to the same local network as the victim to execute arbitrary code, aka GHSL-2020-080.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
3.0% (unchanged from 3.0% a week ago; 3.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 88th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-12861 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-12861?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-12861?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-12861 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
sane-project:sane_backendsbefore 1.0.30
canonical:ubuntu_linux16.04
canonical:ubuntu_linux18.04
canonical:ubuntu_linux20.04
opensuse:leap15.1
opensuse:leap15.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14sane-backends1.0.31-2DEBIAN-CVE-2020-12861
Ubuntu16.04:LTSsane-backends1.0.25+git20150528-1ubuntu2.16.04.3USN-4470-1
Ubuntu18.04:LTSsane-backends1.0.27-1~experimental3ubuntu2.3UBUNTU-CVE-2020-12861 USN-4470-1
Ubuntu20.04:LTSsane-backends1.0.29-0ubuntu5.1UBUNTU-CVE-2020-12861 USN-4470-1
Red Hatenterprise_linux:8::appstreamsane-backends, sane-backends-doc, sane-backends-libs and 10 more0:1.0.27-19.el8_2.1RHSA-2020:2902
Red Hatrhel_e4s:8.0::appstreamsane-backends, sane-backends-doc, sane-backends-libs and 10 more0:1.0.27-19.el8_0.1RHSA-2020:3045
Red Hatrhel_eus:8.1::appstreamsane-backends, sane-backends-doc, sane-backends-libs and 10 more0:1.0.27-19.el8_1.1RHSA-2020:2967
SUSEEnterprise Storage 5, HPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL and 16 moresane-backends1.0.31-4.3.1SUSE-SU-2020:3125-1
SUSELinux Enterprise Module for Desktop Applications 15 SP1, Linux Enterprise Module for Desktop Applications 15 SP2, Linux Enterprise Module for Package Hub 15 SP1 and 1 moresane-backends1.0.31-6.3.2SUSE-SU-2020:3065-1
openSUSELeap 15.1sane-backends1.0.31-lp151.6.3.1openSUSE-SU-2020:1791-1
openSUSELeap 15.2sane-backends1.0.31-lp152.7.3.1openSUSE-SU-2020:1798-1
Alpinev3.12, v3.13, v3.14 and 10 moresane1.0.30-r0ALPINE-CVE-2020-12861

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

The vulnerable code is a part of "driver for Epson ESC/I-2 scanners" which was first introduced in sane-backends-1.0.25 (via https://gitlab.com/sane-project/backends/-/commit/d72f4663c0ad6e6f779c15c8baf5f92b675ae19a). Therefore, only versions of sane-backends shipped with Red Hat Enterprise Linux 8 are affected by this flaw.

Red Hat's mitigation

This flaw can be mitigated by limiting network scanner discovery to a trusted subnet via the "net" configuration in the "/etc/sane.d/epsonds.conf" configuration file. Also, automatic network scanner discovery can be turned off by commenting out the line "net autodiscovery" in the same configuration file.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8sane-backends-0:1.0.27-19.el8_2.1Fixed 2020-07-14RHSA-2020:2902
Red Hat Enterprise Linux 8.0 Update Services for SAP Solutionssane-backends-0:1.0.27-19.el8_0.1Fixed 2020-07-21RHSA-2020:3045
Red Hat Enterprise Linux 8.1 Extended Update Supportsane-backends-0:1.0.27-19.el8_1.1Fixed 2020-07-16RHSA-2020:2967
Red Hat Enterprise Linux 5sane-backendsNot affected
Red Hat Enterprise Linux 6sane-backendsNot affected
Red Hat Enterprise Linux 7sane-backendsNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-12861.

References

Check your stackJSON