# CVE-2019-1167: System.Management.Automation subject to bypass via script debugging

> An attacker can bypass Windows Defender Application Control enforcement, allowing unauthorized code execution on affected Windows systems.

- **Severity:** Medium 4.1 (`CVSS:3.0/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** An administrator
- **Attackable:** Local or same network only
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 19 Jul 2019
- **Updated:** 4 Aug 2024
- **Also known as:** GHSA-5frh-8cmj-gc59

## What is CVE-2019-1167?

CVE-2019-1167 is a medium-severity vulnerability in Microsoft PowerShell Core, published on 19 Jul 2019. It can only be exploited from the same machine or local network, with no action from the victim.

### Official description

A security feature bypass vulnerability exists in Windows Defender Application Control (WDAC) which could allow an attacker to bypass WDAC enforcement, aka 'Windows Defender Application Control Security Feature Bypass Vulnerability'.

## Which versions are affected by CVE-2019-1167?

4 open source packages ship an affected version, including System.Management.Automation. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `System.Management.Automation` | NuGet | From 6.1.0 | 6.1.5 |
| `System.Management.Automation` | NuGet | From 6.1.0 | 6.1.5 |
| `System.Management.Automation` | NuGet | From 6.2.0 | 6.2.2 |
| `System.Management.Automation` | NuGet | From 6.2.0 | 6.2.2 |

Products: Microsoft Powershell Core.

## How do I fix CVE-2019-1167?

Upgrade System.Management.Automation to a fixed version for your release line: 6.1.5 or 6.2.2.

## Is CVE-2019-1167 being exploited?

There is no known exploitation of CVE-2019-1167 in the wild and no public exploit code.

## Other vulnerabilities in Microsoft PowerShell Core

- [CVE-2019-0627](https://insights.sbomify.com/CVE-2019-0627/): Security feature bypass in PowerShell Core (high 7.8)
- [CVE-2019-0631](https://insights.sbomify.com/CVE-2019-0631/): Security feature bypass in PowerShell Core (high 7.8)
- [CVE-2019-0632](https://insights.sbomify.com/CVE-2019-0632/): Security feature bypass in PowerShell Core (high 7.8)
- [CVE-2018-8415](https://insights.sbomify.com/CVE-2018-8415/): Code injection in PowerShell Core (high 7.8)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2019-1167 and fix it if it is affected.

What it is: CVE-2019-1167 is a medium-severity vulnerability in Microsoft PowerShell Core, published on 19 Jul 2019. It can only be exploited from the same machine or local network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2019-1167 in the wild and no public exploit code.

Affected packages and fixed versions:
- System.Management.Automation (NuGet): affected from 6.1.0; fixed in 6.1.5
- System.Management.Automation (NuGet): affected from 6.1.0; fixed in 6.1.5
- System.Management.Automation (NuGet): affected from 6.2.0; fixed in 6.2.2
- System.Management.Automation (NuGet): affected from 6.2.0; fixed in 6.2.2

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2019-1167/ (Markdown: https://insights.sbomify.com/CVE-2019-1167/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2019-1167
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2019-1167
- OSV: https://osv.dev/vulnerability/CVE-2019-1167

---
From sbomify Insights: https://insights.sbomify.com/CVE-2019-1167/
Summaries are generated and may contain mistakes; the official description above is the record.
