CVE-2023-2160: Modoboa Modoboa Has Weak Password Requirements Vulnerability

MODERATE
Advisory Identifier: GHSA-9gxx-32p7-ff7m
CVSS 6.3
CWE-521
Published
Advisory Summary

CVE-2023-2160 is a MODERATE (CVSS 6.3) modoboa has weak password requirements vulnerability (CWE-521: Weak Password Requirements) affecting Modoboa libraries in the PyPI ecosystem. The issue involves modoboa has weak password requirements. Remediation is available by upgrading affected packages to version 2.1.0.

CVE-2023-2160 at a Glance

CVE Identifier CVE-2023-2160
GHSA Identifier GHSA-9gxx-32p7-ff7m
Severity MODERATE
CVSS v3.1 Base Score 6.3
CWE Classification CWE-521: Weak Password Requirements
Affected Product Modoboa
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 6.3

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

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

How to Fix CVE-2023-2160

To remediate this vulnerability, upgrade all affected Modoboa 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 fixed: 2.1.0
pip install modoboa>=2.1.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

How to Check if You Are Affected

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

pip show modoboa

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

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

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-521: Weak Password Requirements, where the product does not require that users should have strong passwords. In Modoboa, 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

Modoboa 2.0.5 and prior allows users to set unsafe passwords, such as `1` or `HACK`. This issue is fixed in commit 130257c96a2392ada795785a91178e656e27015c and is part of version 2.1.0.

CVE-2023-2160 Affected Modoboa Versions

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

References

Frequently Asked Questions

What is CVE-2023-2160?
CVE-2023-2160 is a security vulnerability in Modoboa involving Modoboa has Weak Password Requirements under CWE-521: Weak Password Requirements.
Which Modoboa versions are affected?
Affected versions include releases prior to 2.1.0 across affected packages: modoboa.
What version fixes CVE-2023-2160?
Upgrading to 2.1.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is modoboa affected?
Yes, modoboa is affected in releases prior to 2.1.0. Upgrade your dependency to 2.1.0 or later.
What is the CVSS score of CVE-2023-2160?
CVE-2023-2160 has a CVSS v3.1 base score of 6.3 (MODERATE) with vector string CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2023-2160?
CVE-2023-2160 is classified under CWE-521: Weak Password Requirements (The product does not require that users should have strong passwords.).
How can I check PyPI dependencies for CVE-2023-2160?
Run the dependency tree command: 'pip show modoboa'. 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-9gxx-32p7-ff7m",
  "modified" : "2024-09-30T20:47:28Z",
  "published" : "2023-04-18T18:30:29Z",
  "aliases" : [ "CVE-2023-2160" ],
  "summary" : "Modoboa has Weak Password Requirements",
  "details" : "Modoboa 2.0.5 and prior allows users to set unsafe passwords, such as `1` or `HACK`. This issue is fixed in commit 130257c96a2392ada795785a91178e656e27015c and is part of version 2.1.0.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "modoboa"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.1.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.0.5"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-2160"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/modoboa/modoboa/commit/130257c96a2392ada795785a91178e656e27015c"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/modoboa/modoboa"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/modoboa/PYSEC-2023-34.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://huntr.dev/bounties/54fb6d6a-6b39-45b6-b62a-930260ba484b"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-521" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-04-21T20:25:27Z",
    "nvd_published_at" : "2023-04-18T16:15:09Z"
  }
}