CVE-2023-1000: Dcnnt Dcnnt-py Is Vulnerable To Command Vulnerability

MODERATE
Advisory Identifier: GHSA-8p42-7597-p2f6
CVSS 6.3
CWE-77
Published
Advisory Summary

CVE-2023-1000 is a MODERATE (CVSS 6.3) dcnnt-py is vulnerable to command vulnerability (CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')) affecting Dcnnt libraries in the PyPI ecosystem. The issue involves dcnnt-py is vulnerable to command injection via notification handler. Remediation is available by upgrading affected packages to version 0.9.1.

CVE-2023-1000 at a Glance

CVE Identifier CVE-2023-1000
GHSA Identifier GHSA-8p42-7597-p2f6
Severity MODERATE
CVSS v3.1 Base Score 6.3
CWE Classification CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
Affected Product Dcnnt
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.1/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-1000

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

dcnnt fixed: 0.9.1
pip install dcnnt>=0.9.1
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 dcnnt

How to Check if You Are Affected

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

pip show dcnnt

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

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

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection'), where the product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component. In Dcnnt, 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

A vulnerability was found in cyanomiko dcnnt-py up to 0.9.0. It has been classified as critical. Affected is the function main of the file dcnnt/plugins/notifications.py of the component Notification Handler. The manipulation leads to command injection. It is possible to launch the attack remotely. Upgrading to version 0.9.1 is able to address this issue. The patch is identified as b4021d784a97e25151a5353aa763a741e9a148f5. It is recommended to upgrade the affected component. VDB-262230 is the identifier assigned to this vulnerability.

CVE-2023-1000 Affected Dcnnt Versions

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

References

Frequently Asked Questions

What is CVE-2023-1000?
CVE-2023-1000 is a security vulnerability in Dcnnt involving dcnnt-py is vulnerable to command injection via Notification Handler under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection').
Which Dcnnt versions are affected?
Affected versions include releases prior to 0.9.1 across affected packages: dcnnt.
What version fixes CVE-2023-1000?
Upgrading to 0.9.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is dcnnt affected?
Yes, dcnnt is affected in releases prior to 0.9.1. Upgrade your dependency to 0.9.1 or later.
What is the CVSS score of CVE-2023-1000?
CVE-2023-1000 has a CVSS v3.1 base score of 6.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2023-1000?
CVE-2023-1000 is classified under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection') (The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.).
How can I check PyPI dependencies for CVE-2023-1000?
Run the dependency tree command: 'pip show dcnnt'. 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-8p42-7597-p2f6",
  "modified" : "2024-04-30T08:26:21Z",
  "published" : "2024-04-27T09:30:33Z",
  "aliases" : [ "CVE-2023-1000" ],
  "summary" : "dcnnt-py is vulnerable to command injection via Notification Handler",
  "details" : "A vulnerability was found in cyanomiko dcnnt-py up to 0.9.0. It has been classified as critical. Affected is the function main of the file dcnnt/plugins/notifications.py of the component Notification Handler. The manipulation leads to command injection. It is possible to launch the attack remotely. Upgrading to version 0.9.1 is able to address this issue. The patch is identified as b4021d784a97e25151a5353aa763a741e9a148f5. It is recommended to upgrade the affected component. VDB-262230 is the identifier assigned to this vulnerability.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "dcnnt"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.9.1"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 0.9.0"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-1000"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cyanomiko/dcnnt-py/pull/23"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cyanomiko/dcnnt-py/commit/b4021d784a97e25151a5353aa763a741e9a148f5"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/cyanomiko/dcnnt-py"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cyanomiko/dcnnt-py/releases/tag/0.9.1"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?ctiid.262230"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?id.262230"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-77" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-30T08:26:21Z",
    "nvd_published_at" : "2024-04-27T09:15:08Z"
  }
}