CVE-2018-12680: CoAPthon Library Denial of Service Vulnerability

coapthon Updated 02 Oct 2025

Summary

02/04/2019
No i
High
7.5

CVE-2018-12680: 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... Affects coapthon versions >= 3.1. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

CoAPthon is a Python library that provides support for the Constrained Application Protocol (CoAP), a specialized web transfer protocol for constrained devices and networks. It allows developers to create CoAP servers, clients, reverse proxies, and other related applications. The library is commonly used in IoT (Internet of Things) projects and applications. However, versions 3.1 to 4.0.2 of CoAPthon are vulnerable to a denial of service (DoS) attack when handling certain exceptions in the Serialize.deserialize() method. This vulnerability can be exploited by sending crafted CoAP messages, leading to a disruption of service in affected applications.

Vulnerability Detail

The vulnerability in CoAPthon arises from mishandling certain exceptions in the Serialize.deserialize() method. When an application using the library receives a specially crafted CoAP message, the mishandling of exceptions can result in a denial of service. This can impact various components built with CoAPthon, such as the standard CoAP server, CoAP client, CoAP reverse proxy, and example collect CoAP server and client. The vulnerability can be exploited remotely by an attacker without requiring any authentication.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to update the CoAPthon library to the patched version to mitigate the risk of a denial of service attack.

Conclusion

The CoAPthon library versions 3.1 to 4.0.2 are vulnerable to a denial of service (DoS) attack due to mishandling of exceptions in the Serialize.deserialize() method. To address this vulnerability, it is recommended to update the library to version 4.0.3 or later. Users should upgrade their dependencies and ensure they are using the patched version to prevent potential disruptions in their CoAP applications. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for coapthon →

Share this vulnerability

FAQ

CoAPthon is a Python library that provides support for the Constrained Application Protocol (CoAP), a specialized web transfer protocol for constrained devices and networks. It allows developers to create CoAP servers, clients, reverse proxies, and other related applications.

The vulnerability in CoAPthon can lead to a denial of service (DoS) attack in applications that use the library. This can result in a disruption of service, rendering the affected components unresponsive.

The vulnerability can be exploited by sending crafted CoAP messages to applications that use the CoAPthon library. By mishandling certain exceptions, the library can be forced into a state of unresponsiveness, causing a denial of service.

No, authentication is not required to exploit this vulnerability. An attacker can remotely exploit the vulnerability without any authentication.

No, there is no known workaround for this vulnerability. It is crucial to update the CoAPthon library to the patched version to mitigate the risk of a denial of service attack.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback