CVE-2018-1000089: Django anymail Django-anymail Includes Sensitive Information Vulnerability

CRITICAL
Advisory Identifier: GHSA-qh9x-mc42-vg4g
CVSS 7.4
CWE-532
Published
Advisory Summary

CVE-2018-1000089 is a CRITICAL (CVSS 7.4) django-anymail includes sensitive information vulnerability (CWE-532: Insertion of Sensitive Information into Log File) affecting Django anymail libraries in the PyPI ecosystem. The issue involves django-anymail includes sensitive information in log files. Remediation is available by upgrading affected packages to version 1.4.

CVE-2018-1000089 at a Glance

CVE Identifier CVE-2018-1000089
GHSA Identifier GHSA-qh9x-mc42-vg4g
Severity CRITICAL
CVSS v3.1 Base Score 7.4
CWE Classification CWE-532: Insertion of Sensitive Information into Log File
Affected Product Django anymail
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.4

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2018-1000089

To remediate this vulnerability, upgrade all affected Django anymail dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

django-anymail fixed: 1.4
pip install django-anymail>=1.4
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show django-anymail

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2018-1000089, inspect your installed packages using pip:

pip show django-anymail

Analyze the terminal output to locate any version of Django anymail in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.4), your application is affected.

Note: The pip show django-anymail command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-532: Insertion of Sensitive Information into Log File, where the product writes sensitive information to a log file. In Django anymail, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Anymail django-anymail version version 0.2 through 1.3 contains a CWE-532, CWE-209 vulnerability in WEBHOOK_AUTHORIZATION setting value that can result in An attacker with access to error logs could fabricate email tracking events. This attack appear to be exploitable via If you have exposed your Django error reports, an attacker could discover your ANYMAIL_WEBHOOK setting and use this to post fabricated or malicious Anymail tracking/inbound events to your app. This vulnerability appears to have been fixed in v1.4.

CVE-2018-1000089 Affected Django anymail Versions

1 component(s)
Fixed Versions:
1.4
Product / Package Ecosystem Affected Versions Fixed Version
django-anymail
PyPI
≥ 0.2
< 1.4
1.4

References

Frequently Asked Questions

What is CVE-2018-1000089?
CVE-2018-1000089 is a security vulnerability in Django anymail involving django-anymail Includes Sensitive Information in Log Files under CWE-532: Insertion of Sensitive Information into Log File.
Which Django anymail versions are affected?
Affected versions include releases prior to 1.4 across affected packages: django-anymail.
What version fixes CVE-2018-1000089?
Upgrading to 1.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is django-anymail affected?
Yes, django-anymail is affected in releases prior to 1.4. Upgrade your dependency to 1.4 or later.
What is the CVSS score of CVE-2018-1000089?
CVE-2018-1000089 has a CVSS v3.1 base score of 7.4 (CRITICAL) with vector string CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2018-1000089?
CVE-2018-1000089 is classified under CWE-532: Insertion of Sensitive Information into Log File (The product writes sensitive information to a log file.).
How can I check PyPI dependencies for CVE-2018-1000089?
Run the dependency tree command: 'pip show django-anymail'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-qh9x-mc42-vg4g",
  "modified" : "2024-11-18T16:26:21Z",
  "published" : "2022-05-14T03:32:28Z",
  "aliases" : [ "CVE-2018-1000089" ],
  "summary" : "django-anymail Includes Sensitive Information in Log Files",
  "details" : "Anymail django-anymail version version 0.2 through 1.3 contains a CWE-532, CWE-209 vulnerability in WEBHOOK_AUTHORIZATION setting value that can result in An attacker with access to error logs could fabricate email tracking events. This attack appear to be exploitable via If you have exposed your Django error reports, an attacker could discover your ANYMAIL_WEBHOOK setting and use this to post fabricated or malicious Anymail tracking/inbound events to your app. This vulnerability appears to have been fixed in v1.4.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "django-anymail"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.2"
      }, {
        "fixed" : "1.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-1000089"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/anymail/django-anymail/commit/1a6086f2b58478d71f89bf27eb034ed81aefe5ef"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-qh9x-mc42-vg4g"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/anymail/django-anymail"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/anymail/django-anymail/releases/tag/v1.4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/django-anymail/PYSEC-2018-46.yaml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-532" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-07-27T21:33:52Z",
    "nvd_published_at" : "2018-03-13T15:29:00Z"
  }
}