CVE-2019-19702: Modoboa dmarc Modoboa Is Vulnerable To An Vulnerability

HIGH
Advisory Identifier: GHSA-vc42-mgr2-w34r
CVSS 7.5
CWE-91
Published
Advisory Summary

CVE-2019-19702 is a HIGH (CVSS 7.5) modoboa is vulnerable to an vulnerability (CWE-91: XML Injection (aka Blind XPath Injection)) affecting Modoboa dmarc libraries in the PyPI ecosystem. The issue involves modoboa is vulnerable to an xml external entity injection (xxe). Remediation is available by upgrading affected packages to version 1.2.0.

CVE-2019-19702 at a Glance

CVE Identifier CVE-2019-19702
GHSA Identifier GHSA-vc42-mgr2-w34r
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-91: XML Injection (aka Blind XPath Injection)
Affected Product Modoboa dmarc
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.5

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

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

How to Fix CVE-2019-19702

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

modoboa-dmarc fixed: 1.2.0
pip install modoboa-dmarc>=1.2.0
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 modoboa-dmarc

How to Check if You Are Affected

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

pip show modoboa-dmarc

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

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

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-91: XML Injection (aka Blind XPath Injection), where the product does not properly neutralize special elements that are used in xml, allowing attackers to modify the syntax, content, or commands of the xml before it is processed by an end system. In Modoboa dmarc, 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

The modoboa-dmarc plugin 1.1.0 for Modoboa is vulnerable to an XML External Entity Injection (XXE) attack when processing XML data. A remote attacker could exploit this to perform a denial of service against the DMARC reporting functionality, such as by referencing the /dev/random file within XML documents that are emailed to the address in the rua field of the DMARC records of a domain.

CVE-2019-19702 Affected Modoboa dmarc Versions

1 component(s)
Fixed Versions:
1.2.0
Product / Package Ecosystem Affected Versions Fixed Version
modoboa-dmarc
PyPI
< 1.2.0
1.2.0

References

Frequently Asked Questions

What is CVE-2019-19702?
CVE-2019-19702 is a security vulnerability in Modoboa dmarc involving Modoboa is vulnerable to an XML External Entity Injection (XXE) under CWE-91: XML Injection (aka Blind XPath Injection).
Which Modoboa dmarc versions are affected?
Affected versions include releases prior to 1.2.0 across affected packages: modoboa-dmarc.
What version fixes CVE-2019-19702?
Upgrading to 1.2.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is modoboa-dmarc affected?
Yes, modoboa-dmarc is affected in releases prior to 1.2.0. Upgrade your dependency to 1.2.0 or later.
What is the CVSS score of CVE-2019-19702?
CVE-2019-19702 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2019-19702?
CVE-2019-19702 is classified under CWE-91: XML Injection (aka Blind XPath Injection) (The product does not properly neutralize special elements that are used in XML, allowing attackers to modify the syntax, content, or commands of the XML before it is processed by an end system.).
How can I check PyPI dependencies for CVE-2019-19702?
Run the dependency tree command: 'pip show modoboa-dmarc'. 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-vc42-mgr2-w34r",
  "modified" : "2024-11-22T18:16:51Z",
  "published" : "2022-05-24T17:03:09Z",
  "aliases" : [ "CVE-2019-19702" ],
  "summary" : "Modoboa is vulnerable to an XML External Entity Injection (XXE)",
  "details" : "The modoboa-dmarc plugin 1.1.0 for Modoboa is vulnerable to an XML External Entity Injection (XXE) attack when processing XML data. A remote attacker could exploit this to perform a denial of service against the DMARC reporting functionality, such as by referencing the /dev/random file within XML documents that are emailed to the address in the rua field of the DMARC records of a domain.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "modoboa-dmarc"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.2.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-19702"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/modoboa/modoboa-dmarc/issues/38"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/modoboa/modoboa-dmarc/commit/14c29e0ad9487bdbe4cc0bd1f8bc711285bf9933"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/modoboa/modoboa-dmarc"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/modoboa-dmarc/PYSEC-2019-105.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/modoboa/PYSEC-2019-251.yaml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-91" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-29T10:19:54Z",
    "nvd_published_at" : "2019-12-10T20:15:00Z"
  }
}