Vulnerabilities in pkg:pypi/CoAPthon

PACKAGE
Advisory Identifier: GHSA-5xc6-fpc7-4qvg
Advisory Summary

CVE-2018-12680 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-502: Deserialization of Untrusted Data) affecting CoAPthon libraries in the PyPI ecosystem. The issue involves coapthon dos due to exceptions. Remediation is available in the latest vendor maintenance releases.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/CoAPthon

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/CoAPthon. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-5xc6-fpc7-4qvg CVE-2018-12680 HIGH CoAPthon DoS due to Exceptions

CVE-2018-12680 at a Glance

CVE Identifier CVE-2018-12680
GHSA Identifier GHSA-5xc6-fpc7-4qvg
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product CoAPthon
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.0/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-2018-12680

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

CoAPthon fixed: Latest secure release
pip install CoAPthon>=Latest secure release
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 CoAPthon

How to Check if You Are Affected

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

pip show CoAPthon

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

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

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In CoAPthon, 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 `Serialize.deserialize()` method in CoAPthon 3.1, 4.0.0, 4.0.1, and 4.0.2 mishandles certain exceptions, leading to a denial of service in applications that use this library (e.g., the standard CoAP server, CoAP client, CoAP reverse proxy, example collect CoAP server and client) when they receive crafted CoAP messages.

CVE-2018-12680 Affected CoAPthon Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
CoAPthon
PyPI
≤ 4.0.2

References

Frequently Asked Questions

What is CVE-2018-12680?
CVE-2018-12680 is a security vulnerability in CoAPthon involving CoAPthon DoS due to Exceptions under CWE-502: Deserialization of Untrusted Data.
Which CoAPthon versions are affected?
Affected versions include releases prior to current release patches across affected packages: CoAPthon.
What version fixes CVE-2018-12680?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is CoAPthon affected?
Yes, CoAPthon is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2018-12680?
CVE-2018-12680 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2018-12680?
CVE-2018-12680 is classified under CWE-502: Deserialization of Untrusted Data (The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.).
How can I check PyPI dependencies for CVE-2018-12680?
Run the dependency tree command: 'pip show CoAPthon'. 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-5xc6-fpc7-4qvg",
  "modified" : "2024-09-13T14:31:59Z",
  "published" : "2019-04-08T15:19:01Z",
  "aliases" : [ "CVE-2018-12680" ],
  "summary" : "CoAPthon DoS due to Exceptions",
  "details" : "The `Serialize.deserialize()` method in CoAPthon 3.1, 4.0.0, 4.0.1, and 4.0.2 mishandles certain exceptions, leading to a denial of service in applications that use this library (e.g., the standard CoAP server, CoAP client, CoAP reverse proxy, example collect CoAP server and client) when they receive crafted CoAP messages.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/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" : "CoAPthon"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "4.0.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-12680"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Tanganelli/CoAPthon/issues/135"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/Tanganelli/CoAPthon"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-5xc6-fpc7-4qvg"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/coapthon/PYSEC-2019-165.yaml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400", "CWE-502" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:17:34Z",
    "nvd_published_at" : null
  }
}