CVE-2026-144446: bitproto before 1.3.3 Code Injection via Unescaped String Constants
bitproto before 1.3.3 contains a code injection vulnerability that allows attackers to inject code into generated sources by embedding double quotes in .bitproto string constants. Attackers can supply a crafted schema whose constant closes the literal in the generated bp.py module, executing Python code when developers or CI jobs import it.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Developers and CI jobs that generate Python sources from attacker-supplied or otherwise untrusted .bitproto schemas are exposed if they import the generated _bp.py module. The affected package is bitproto before version 1.3.3.
What must an attacker do to trigger code execution?
An attacker must provide a crafted .bitproto schema containing a string constant with double quotes that closes a generated Python literal. The injected Python code executes when the generated _bp.py module is imported.
Are projects that only use trusted schemas affected?
The described attack requires a crafted schema, so exposure depends on whether an attacker can influence schemas processed by the project. The provided information does not identify a separate runtime-only trigger.
What can be done if upgrading is not immediately possible?
Do not generate or import Python output from untrusted .bitproto schemas. Restrict schema inputs to trusted sources and review string constants for embedded double quotes before generation.