# CVE-2021-22282: RCE in B&R Automation Studio with crafted project files

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.3
- **CVSS:** 8.3 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: Required; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.40% (percentile 25, 2026-11-26)
- **CWE:** CWE-94
- **Published:** 2024-02-02T06:38:32.358Z
- **Modified:** 2026-06-17T03:36:55.973Z

## Who should check

- Anyone running B&R Industrial Automation Automation Studio \>= 4.0, \<= 4.12

## Description

Improper Control of Generation of Code ('Code Injection') vulnerability in B&R Industrial Automation Automation Studio allows Local Execution of Code.This issue affects Automation Studio: from 4.0 through 4.12.

## Affected and fixed versions

- B&R Industrial Automation Automation Studio: \>= 4.0, \<= 4.12 (cvelist)

## Mitigation

- Vendor workaround: B&R recommends the following specific workarounds and mitigations:
- Open only B&R Automation Studio project files from trusted source.
- Protect locations where B&R Automation Studio projects are stored from unauthorized access. This 
- includes PLCs, when using the feature to back up project source files on target.
- Do not run B&R Automation Studio in elevated mode.
- Verify integrity of B&R Automation Studio project files, which are exchanged via potentially insecure 
- channels.
- Make sure, that Windows User Access Control (UAC) is enabled.
- In general, B&R recommends implementing the Cyber Security guidelines.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-22282. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-22282.md
Affected: B&R Industrial Automation Automation Studio >= 4.0, <= 4.12
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for B&R Industrial Automation Automation Studio: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-22282 being exploited?

There is no confirmed exploitation: CVE-2021-22282 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.40% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-22282?

High: CVSS 8.3 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2021-22282?

B&R Industrial Automation Automation Studio \>= 4.0, \<= 4.12.

### Is there a fix for CVE-2021-22282?

No fixed version is listed in the sources yet. Vendor workaround: B&R recommends the following specific workarounds and mitigations: Open only B&R Automation Studio project files from trusted source. Protect locations where B&R Automation Studio projects are stored from unauthorized access. This  includes PLCs, when using the feature to back up project source files on target. Do not run B&R Automation Studio in elevated mode. Verify integrity of B&R Automation Studio project files, which are exchanged via potentially insecure  channels. Make sure, that Windows User Access Control (UAC) is enabled. In general, B&R recommends implementing the Cyber Security guidelines.

### How do I check if I'm affected by CVE-2021-22282?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://www.br-automation.com/fileadmin/2021-12_RCE_Vulnerability_in_BnR_Automation_Studio-1b993aeb.pdf>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-22282>

HTML: <https://flawdb.com/CVE-2021-22282> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-22282>
