{
  "threat_severity" : "Important",
  "public_date" : "2020-05-17T00:00:00Z",
  "bugzilla" : {
    "description" : "sane-backends: Heap buffer overflow in esci2_img",
    "id" : "1850598",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1850598"
  },
  "cvss3" : {
    "cvss3_base_score" : "8.0",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
    "status" : "verified"
  },
  "cwe" : "CWE-190",
  "details" : [ "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.", "A flaw was found in sane-backends in versions prior to 1.0.30. A heap buffer overflow in the esci2_img function could lead to a remote code execution. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability." ],
  "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.",
  "affected_release" : [ {
    "product_name" : "Red Hat Enterprise Linux 8",
    "release_date" : "2020-07-14T00:00:00Z",
    "advisory" : "RHSA-2020:2902",
    "cpe" : "cpe:/a:redhat:enterprise_linux:8",
    "package" : "sane-backends-0:1.0.27-19.el8_2.1"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8.0 Update Services for SAP Solutions",
    "release_date" : "2020-07-21T00:00:00Z",
    "advisory" : "RHSA-2020:3045",
    "cpe" : "cpe:/a:redhat:rhel_e4s:8.0",
    "package" : "sane-backends-0:1.0.27-19.el8_0.1"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8.1 Extended Update Support",
    "release_date" : "2020-07-16T00:00:00Z",
    "advisory" : "RHSA-2020:2967",
    "cpe" : "cpe:/a:redhat:rhel_eus:8.1",
    "package" : "sane-backends-0:1.0.27-19.el8_1.1"
  } ],
  "package_state" : [ {
    "product_name" : "Red Hat Enterprise Linux 5",
    "fix_state" : "Not affected",
    "package_name" : "sane-backends",
    "cpe" : "cpe:/o:redhat:enterprise_linux:5"
  }, {
    "product_name" : "Red Hat Enterprise Linux 6",
    "fix_state" : "Not affected",
    "package_name" : "sane-backends",
    "cpe" : "cpe:/o:redhat:enterprise_linux:6"
  }, {
    "product_name" : "Red Hat Enterprise Linux 7",
    "fix_state" : "Not affected",
    "package_name" : "sane-backends",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2020-12865\nhttps://nvd.nist.gov/vuln/detail/CVE-2020-12865\nhttps://gitlab.com/sane-project/backends/-/issues/279#issue-9-ghsl-2020-084-buffer-overflow-in-esci2_img" ],
  "name" : "CVE-2020-12865",
  "mitigation" : {
    "value" : "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.",
    "lang" : "en:us"
  },
  "csaw" : false
}