CVE-2023-2227: Modoboa Improper Authorization Vulnerability

CRITICAL
Advisory Identifier: GHSA-67mg-gm8m-ph5r
CVSS 9.1
CWE-285
Published
Advisory Summary

CVE-2023-2227 is a CRITICAL (CVSS 9.1) improper authorization vulnerability (CWE-285: Improper Authorization) affecting Modoboa libraries in the PyPI ecosystem. The issue involves improper authorization in modoboa. Remediation is available by upgrading affected packages to version 2.1.0.

CVE-2023-2227 at a Glance

CVE Identifier CVE-2023-2227
GHSA Identifier GHSA-67mg-gm8m-ph5r
Severity CRITICAL
CVSS v3.1 Base Score 9.1
CWE Classification CWE-285: Improper Authorization
Affected Product Modoboa
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 9.1

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:H/I:H/A:N).

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 High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2023-2227

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-2227, 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-285: Improper Authorization, where the product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action. 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

In modoboa prior to 2.1.0, sending a GET request to the endpoint `/api/v2/parameters/core/` returns sensitive information without any authentication or authorization.

CVE-2023-2227 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-2227?
CVE-2023-2227 is a security vulnerability in Modoboa involving Improper Authorization in modoboa under CWE-285: Improper Authorization.
Which Modoboa versions are affected?
Affected versions include releases prior to 2.1.0 across affected packages: modoboa.
What version fixes CVE-2023-2227?
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-2227?
CVE-2023-2227 has a CVSS v3.1 base score of 9.1 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2023-2227?
CVE-2023-2227 is classified under CWE-285: Improper Authorization (The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action.).
How can I check PyPI dependencies for CVE-2023-2227?
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-67mg-gm8m-ph5r",
  "modified" : "2024-09-24T21:26:20Z",
  "published" : "2023-04-21T15:30:18Z",
  "aliases" : [ "CVE-2023-2227" ],
  "summary" : "Improper Authorization in modoboa",
  "details" : "In modoboa prior to 2.1.0, sending a GET request to the endpoint `/api/v2/parameters/core/` returns sensitive information without any authentication or authorization.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "modoboa"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.1.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-2227"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/modoboa/modoboa/commit/7bcd3f6eb264d4e3e01071c97c2bac51cdd6fe97"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/modoboa/modoboa"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/modoboa/PYSEC-2023-35.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://huntr.dev/bounties/351f9055-2008-4af0-b820-01ff66678bf3"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-285" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-04-24T20:23:45Z",
    "nvd_published_at" : "2023-04-21T13:15:07Z"
  }
}