CVE-2018-12680 CoAPthon DoS due to Exceptions
Attackers can cause denial of service in CoAPthon applications by sending crafted CoAP messages that trigger mishandled exceptions during deserialization.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2018-12680?
CVE-2018-12680 is a high-severity unsafe deserialization vulnerability in n/a, published on 2 Apr 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-502
Which versions are affected by CVE-2018-12680?
3 open source packages ship an affected version, including coapthon and CoAPthon. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
coapthon PyPI | All versions to 4.0.2 | None |
coapthon PyPI | From 3.1 | None |
CoAPthon PyPI | All versions to 4.0.2 | None |
Products include Coapthon Project Coapthon.
How do I fix CVE-2018-12680?
No fix has been published for CVE-2018-12680 yet. Limit exposure of the affected software until one is available.
Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.
Is CVE-2018-12680 being exploited?
There is no known exploitation of CVE-2018-12680 in the wild and no public exploit code.
Sources
Also known as GHSA-5xc6-fpc7-4qvg, PYSEC-2019-165.