PatchaPalooza

CVE-2022-43552: A use after free vulnerability exists in curl <7.87.0. Curl can be asked to *tunnel* virtually all protocols it supports through an HTTP proxy. HTTP proxies can (and often do) deny such tunnel operations. When getting denied to tunnel the specific protocols SMB or TELNET curl would use a heap-allocated struct after it had been freed in its transfer shutdown code path.

CVE-2022-43552 is a vulnerability in A use after free vulnerability exists in curl <7.87.0. Curl can be asked to *tunnel* virtually all protocols it supports through an HTTP proxy. HTTP proxies can (and often do) deny such tunnel operations. When getting denied to tunnel the specific protocols SMB or TELNET curl would use a heap-allocated struct after it had been freed in its transfer shutdown code path., rated Moderate by Microsoft, with a CVSS 3.1 base score of 5.9 (Medium). An attacker can exploit it remotely over the network, without any privileges and without user interaction. Microsoft has not reported exploitation in the wild. It was publicly disclosed before the fix was released. The EPSS model estimates a 2.77% probability of exploitation activity in the next 30 days, higher than 87% of all scored vulnerabilities. Microsoft released the fix on 9 February 2023, outside Patch Tuesday. It affects 12 products in 1 product family (Mariner).

Key facts

CVE ID
CVE-2022-43552
Severity
Medium CVSS 5.9
Microsoft severity
Moderate
Exploited in the wild
No
Publicly disclosed
Yes
Weakness
CWE-416
EPSS
2.77% (percentile 87%)
CISA KEV
Not listed
Released
Last updated
Patch Tuesday
February 2023 Patch Tuesday
Product families
Mariner

CVSS score and vector

Microsoft scores CVE-2022-43552 at 5.9 (temporal 5.9) using CVSS 3.1. Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

MetricValue
Attack vectorNetwork
Attack complexityHigh
Privileges requiredNone
User interactionNone
ScopeUnchanged
Confidentiality impactNone
Integrity impactNone
Availability impactHigh

Frequently asked questions (Microsoft)

What is the curl open-source project?

Curl is a computer software project providing a library (libcurl) and command-line tool (curl) for transferring data using various network protocols. The name stands for "Client for URL". The Windows implementation provides access to the command-line tool, not the library.

What version of curl addresses this CVE?

Curl version 7.87.0 addresses this vulnerability.

Where can I find more information about this curl vulnerability?

More information can be found at NVD and curl.se

Are there any workarounds that can be implemented?

Preventing the execution of curl.exe is a workaround to be considered

Use a WDAC policy to deny execution of the \system32\curl.exe executable. You can merge the deny into an existing policy or create a new policy with it using the Merge-CIPolicy cmdlet; Merge-CIPolicy (ConfigCI) | Microsoft Learn. Once the policy XML file with the deny has been created or merged with an existing policy it must be deployed.

Choose how to deploy the policy; Deploying Windows Defender Application Control (WDAC) policies | Microsoft Learn

  • Deploy using a Mobile Device Management (MDM) solution, such as Microsoft Intune
  • Deploy using Microsoft Configuration Manager
  • Deploy via script
  • Deploy via group policy

For example:

Create a new policy: (These steps will create a new policy named Deny-Curl.xml by merging the deny using the example policy named AllowAll.xml)

$rule = new-cipolicyrule -DriverFilePath "$env:systemroot\system32\curl.exe" -Level FilePublisher -Deny

$rule[0].attributes["MinimumFileVersion"] = "0.0.0.0"

$rule[0].attributes["MaximumFileVersion"] = "7.87.0.0"

merge-cipolicy "$env:systemroot\schemas\CodeIntegrity\ExamplePolicies\AllowAll.xml" -Rules $rule -OutputFilePath "Deny-Curl.xml"

Merge into an existing policy

$rule = new-cipolicyrule -DriverFilePath "$env:systemroot\system32\curl.exe" -Level FilePublisher -Deny

$rule[0].attributes["MinimumFileVersion"] = "0.0.0.0"

$rule[0].attributes["MaximumFileVersion"] = "7.87.0.0"

merge-cipolicy "existing_policy.xml" -Rules $rule -OutputFilePath "existing_policy.xml"

How to undo this workaround?

Guidance for how to remove WDAC policies can be found in the following documentation: Remove Windows Defender Application Control (WDAC) policies

Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?

One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.

Affected products (12)

Mariner

ProductSecurity updateTypeFixed buildRestart
azl3 cmake 3.21.4-10 on Azure Linux 3.0CBL-Mariner ReleasesSecurity Update3.28.2-1No
cm1 rust 1.59.0-1 on CBL Mariner 1.0CBL-Mariner ReleasesSecurity Update1.59.0-1No
cm1 mysql 8.0.32-1 on CBL Mariner 1.0CBL-Mariner ReleasesSecurity Update8.0.32-1No
cm1 curl 7.86.0-3 on CBL Mariner 1.0CBL-Mariner ReleasesSecurity Update7.86.0-3No
cm1 cmake 3.21.4-3 on CBL Mariner 1.0CBL-Mariner ReleasesSecurity Update3.21.4-3No
cbl2 rust 1.72.0-2 on CBL Mariner 2.0CBL-Mariner ReleasesSecurity Update1.72.0-2No
cbl2 mysql 8.0.33-1 on CBL Mariner 2.0CBL-Mariner ReleasesSecurity Update8.0.33-1No
cbl2 curl 7.86.0-3 on CBL Mariner 2.0CBL-Mariner ReleasesSecurity Update7.86.0-3No
cbl2 cmake 3.21.4-13 on CBL Mariner 2.0CBL-Mariner ReleasesSecurity Update3.21.4-13No
azl3 tensorflow 2.16.1-1 on Azure Linux 3.0CBL-Mariner ReleasesSecurity Update2.16.1-1No
azl3 cmake 3.28.2-1 on Azure Linux 3.0CBL-Mariner ReleasesSecurity Update3.28.2-1No
azl3 tensorflow 2.11.1-1 on Azure Linux 3.0CBL-Mariner ReleasesSecurity Update2.16.1-1No

NIST NVD data

NVD status
Modified
NVD CVSS
5.9 (MEDIUM)
NVD weakness
CWE-416
Published to NVD
NVD last modified

Affected configurations (CPE)

ProductVulnerable versions
curlbefore 7.87.0
macosfrom 13.0, before 13.3
universal forwarderfrom 8.2.0, before 8.2.12
universal forwarderfrom 9.0.0, before 9.0.6
universal forwarder 9.1.0all listed versions

References

Acknowledgments

Revision history

VersionDateDescription
1.0Information published.
1.1CVE updated to add Windows software as Microsoft is aware that certain versions of Windows are affected by the cURL vulnerability. Microsoft will incorporate the new cURL Open Source library that addresses this issue in an upcoming security release.
1.2Microsoft is announcing the availability of the April 2023 security updates to address this vulnerability for all supported versions of Windows 10 version 1809, Windows 10 version 20H2, Windows 10 version 21H2, Windows 10 version 22H2, Windows 11 version 21H2, Windows 11 version 22H2, Windows Server 2019, and Windows Server 2022. Microsoft strongly recommends that customers install the April 2023 updates to be fully protected from this vulnerability. Customers whose systems are configured to receive automatic updates do not need to take any further action.
1.3Updated FAQ information. This is an informational change only.
1.4Information published.
1.5Added cmake to CBL-Mariner 2.0 Added rust to CBL-Mariner 2.0 Added mysql to CBL-Mariner 2.0 Added curl to CBL-Mariner 2.0 Added tensorflow to Azure Linux 3.0 Added cmake to Azure Linux 3.0 Added curl to CBL-Mariner 1.0
1.6Information published.
2.0Information published.
3.0Information published.

Sources