Siemens ROS# code injection flaw CVE-2026-109097 fixed in version 2.3.1
ROS# before version 2.3.1 fails to escape message definition files, allowing code injection into generated programs.
Reported by CISA
First reported Summary updated
- Public PoC
- Not known
- Exploited
- Not known
- CVSS
- 8.6 High
What happened
Siemens ROS# before version 2.3.1 does not properly escape text in message definition files.1
An attacker who can supply a crafted message definition file may inject arbitrary code into the generated program.1
The flaw is classified as CWE-94, improper control of code generation.1
Who is affected
- Siemens ROS#, All versions before 2.3.11
Is there a public exploit?
Not known None of the sources mentions public exploit code yet.
Exploited in the wild?
Not known None of the sources reports attacks using it so far.
What to do
- Update ROS# to version 2.3.1 or later.1
For bug hunters
This is a code injection flaw in a code generation pipeline: untrusted input (a message definition file) is turned into source code without escaping. Similar bugs appear wherever programs accept templates, schemas or IDL files and emit code, such as API clients, protocol compilers and build tooling. Look for places where user-supplied definitions are concatenated into generated output, and test whether special characters or language constructs survive into the generated program.
What to test
- Submit a message definition file containing quotes, backslashes or newlines and inspect the generated code for unescaped output.
- Try injecting a language statement into a field name or comment and see if it executes when the generated program runs.
- Check whether the generator validates or sanitises definition files before writing code.
- Test file upload or import features that accept schema or IDL files for code generation.
Written by bugbounty.wiki with AI from its source. Every statement above comes with a quote we checked against the source it cites (the numbers link to it); anything we could not check was left out. It can still be wrong, so read the coverage before relying on a detail.
Coverage
The article this story is based on. Each headline opens the outlet's own article.
-
1