Skip to content
Heist/ feed
Back to feed
CriticalFix available

libphp-phpmailer — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2020-36326

PHPMailer 6.1.8 through 6.4.0 allows object injection through Phar Deserialization via addAttachment with a UNC pathname. NOTE: this is similar to CVE-2018-19296, but arose because 6.1.8 fixed a functionality problem in which UNC pathnames were always considered unreadable by PHPMailer, even in safe contexts. As an unintended side effect, this fix eliminated the code that blocked addAttachment exploitation.

Products
libphp-phpmailer
Affected versions
Not specified
Fixed versions
6.2.0-2
CVEs
CVE-2020-36326
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 14:00 UTC · Revision 1

Source evidence

DEBIAN-CVE-2020-36326

core-osv · Original source

Published 28 Apr 2021, 03:15 UTC

PHPMailer 6.1.8 through 6.4.0 allows object injection through Phar Deserialization via addAttachment with a UNC pathname. NOTE: this is similar to CVE-2018-19296, but arose because 6.1.8 fixed a functionality problem in which UNC pathnames were always considered unreadable by PHPMailer, even in safe contexts. As an unintended side effect, this fix eliminated the code that blocked addAttachment exploitation.

osv:DEBIAN-CVE-2020-36326

libphp-phpmailer

Fixed versions: 6.2.0-2

libphp-phpmailer

Fixed versions: 6.2.0-2

libphp-phpmailer

Fixed versions: 6.2.0-2

Complete source record
{
  "id": "996b1505d2218e2ba0d1fb2eeafea7c9a4f0e6af0eb922b8c60eebf2cc1762e7",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2020-36326",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2020-36326",
    "summary": "PHPMailer 6.1.8 through 6.4.0 allows object injection through Phar Deserialization via addAttachment with a UNC pathname. NOTE: this is similar to CVE-2018-19296, but arose because 6.1.8 fixed a functionality problem in which UNC pathnames were always considered unreadable by PHPMailer, even in safe contexts. As an unintended side effect, this fix eliminated the code that blocked addAttachment exploitation.",
    "evidence": "osv:DEBIAN-CVE-2020-36326",
    "products": [
      {
        "name": {
          "value": "libphp-phpmailer",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.2.0-2",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "libphp-phpmailer",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.2.0-2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "libphp-phpmailer",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.2.0-2",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "DEBIAN-CVE-2020-36326",
      "aliases": [
        "DEBIAN-CVE-2020-36326"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "6.2.0-2"
                }
              ]
            }
          ],
          "package": {
            "name": "libphp-phpmailer",
            "purl": "pkg:deb/debian/libphp-phpmailer?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2020-36326.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "6.2.0-2"
                }
              ]
            }
          ],
          "package": {
            "name": "libphp-phpmailer",
            "purl": "pkg:deb/debian/libphp-phpmailer?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2020-36326.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "6.2.0-2"
                }
              ]
            }
          ],
          "package": {
            "name": "libphp-phpmailer",
            "purl": "pkg:deb/debian/libphp-phpmailer?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2020-36326.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-26T12:02:49.214548230Z",
      "provider": "osv",
      "upstream": [
        "CVE-2020-36326"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2020-36326"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2020-36326",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 453064,
  "published_at": "2021-04-28T03:15:07.4+00:00"
}