CVE-2026-116589
IAST string formatting can cause unhandled errors, crashing the Python process.
- CVSS 8.2
- CWE-248
- Input Validation and Sanitization
- Remote
Datadog dd-trace-py is the Datadog Python APM client. From 3.13.0 until 4.15.5, the IAST string-processing instrumentation does not properly handle certain internal errors while old-style % string formatting processes attacker-controlled input. An unhandled error can terminate the Python process and interrupt the work it is handling. Exploitation requires IAST to be enabled, which is not the default, and application code to apply the affected formatting operation to attacker-controlled input. This issue is fixed in version 4.15.5.
- CWE
- CWE-248
- CVSS base score
- 8.2
- Published
- 2026-10-26
- OWASP
- A06 Vulnerable and Outdated Components
- Orthogonal defect classification
- Checking
- Code defect classification
- Missing Check
- Category
- Input Validation and Sanitization
- Subcategory
- Insecure Parsing or Deserialization
- Accessibility scope
- Remote
- Impact
- Denial of Service (DoS)
- Affected component
- Python
- Fixed by upgrading
- Yes
Solution
Upgrade the dd-trace-py package to version 4.15.5 or later.
Vulnerable code sample
import ddtrace
from ddtrace import tracer
def process_user_input(user_input: str):
# VULNERABLE: old-style % formatting can raise internal IAST error on attacker-controlled input
message = "User said: %s" % user_input
tracer.trace("process.input").set_tag("message", message)
return messagePatched code sample
import ddtrace
from ddtrace import tracer
def process_user_input(user_input: str):
# FIX: use safe formatting to avoid IAST internal error
message = f"User said: {user_input}"
tracer.trace("process.input").set_tag("message", message)
return messageCite this entry
@misc{vaitp:cve2026116589,
title = {{IAST string formatting can cause unhandled errors, crashing the Python process.}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2026},
note = {VAITP Python Vulnerability Dataset, entry CVE-2026-116589},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-116589/}}
}
Introducing the "VAITP dataset": a specialized repository of Python vulnerabilities and patches, meticulously compiled for the use of the security research community. As Python's prominence grows, understanding and addressing potential security vulnerabilities become crucial. Crafted by and for the cybersecurity community, this dataset offers a valuable resource for researchers, analysts, and developers to analyze and mitigate the security risks associated with Python. Through the comprehensive exploration of vulnerabilities and corresponding patches, the VAITP dataset fosters a safer and more resilient Python ecosystem, encouraging collaborative advancements in programming security.
The supreme art of war is to subdue the enemy without fighting.
Sun Tzu – “The Art of War”
:: Shaping the future through research and ingenuity ::
