CVE-2022-26924: Yarp.ReverseProxy Denial of Service Vulnerability

HIGH
Advisory Identifier: GHSA-8xc6-g8xw-h2c4
CVSS 7.5
Published
Advisory Summary

CVE-2022-26924 is a HIGH (CVSS 7.5) denial of service vulnerability (General Security Weakness) affecting Yarp.ReverseProxy libraries in the NuGet ecosystem. The issue involves yarp denial of service vulnerability. Remediation is available by upgrading affected packages to version 1.0.1, 1.1.0-rc.1.22211.2.

CVE-2022-26924 at a Glance

CVE Identifier CVE-2022-26924
GHSA Identifier GHSA-8xc6-g8xw-h2c4
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification General Security Weakness
Affected Product Yarp.ReverseProxy
Package Ecosystem NuGet
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2022-26924

To remediate this vulnerability, upgrade all affected Yarp.ReverseProxy dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

Yarp.ReverseProxy fixed: 1.0.1
Upgrade Yarp.ReverseProxy to 1.0.1
Yarp.ReverseProxy fixed: 1.1.0-rc.1.22211.2
Upgrade Yarp.ReverseProxy to 1.1.0-rc.1.22211.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for Yarp.ReverseProxy

How to Check if You Are Affected

To determine whether your application is affected by CVE-2022-26924, inspect your project dependencies for Yarp.ReverseProxy:

inspect dependencies for Yarp.ReverseProxy

Analyze the terminal output to locate any version of Yarp.ReverseProxy in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.1), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Yarp.ReverseProxy, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact A denial of service vulnerability exists in how YARP processes input. ### Patches If you're using YARP `1.0.0`, you should update to NuGet package version [`1.0.1`](https://www.nuget.org/packages/Yarp.ReverseProxy/1.0.1). If you're using YARP `1.1.0-RC.1`, you should update to NuGet package version [`1.1.0-rc.1.22211.2`](https://www.nuget.org/packages/Yarp.ReverseProxy/1.1.0-rc.1.22211.2). You can do so by updating the `PackageReference` in your `.csproj` file ```diff <ItemGroup> - <PackageReference Include="Yarp.ReverseProxy" Version="1.0.0" /> - <PackageReference Include="Yarp.Telemetry.Consumption" Version="1.0.0" /> + <PackageReference Include="Yarp.ReverseProxy" Version="1.0.1" /> + <PackageReference Include="Yarp.Telemetry.Consumption" Version="1.0.1" /> </ItemGroup> ``` or by selecting `1.0.1` in the NuGet UI inside Visual Studio (`Manage NuGet Packages` / `Updates`) ![image](https://user-images.githubusercontent.com/25307628/162951795-a30f8ed7-77ef-4c4f-920e-58d9e1587ad1.png) ### References [CVE-2022-26924](https://msrc.microsoft.com/update-guide/vulnerability/CVE-2022-26924)

CVE-2022-26924 Affected Yarp.ReverseProxy Versions

2 component(s)
Fixed Versions:
1.0.11.1.0-rc.1.22211.2
Product / Package Ecosystem Affected Versions Fixed Version
Yarp.ReverseProxy
NuGet
< 1.0.1
1.0.1
Yarp.ReverseProxy
NuGet
≥ 1.1.0-rc.1.22152.1
< 1.1.0-rc.1.22211.2
All 1 versions
1.1.0-rc.1.22152.1
1.1.0-rc.1.22211.2

References

Frequently Asked Questions

What is CVE-2022-26924?
CVE-2022-26924 is a security vulnerability in Yarp.ReverseProxy involving YARP Denial of Service Vulnerability under General Security Weakness.
Which Yarp.ReverseProxy versions are affected?
Affected versions include releases prior to 1.0.1, 1.1.0-rc.1.22211.2 across affected packages: Yarp.ReverseProxy.
What version fixes CVE-2022-26924?
Upgrading to 1.0.1, 1.1.0-rc.1.22211.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is Yarp.ReverseProxy affected?
Yes, Yarp.ReverseProxy is affected in releases prior to 1.0.1, 1.1.0-rc.1.22211.2. Upgrade your dependency to 1.0.1, 1.1.0-rc.1.22211.2 or later.
What is the CVSS score of CVE-2022-26924?
CVE-2022-26924 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2022-26924?
CVE-2022-26924 is classified under General Security Weakness.
How can I check NuGet dependencies for CVE-2022-26924?
Run the dependency tree command: 'inspect dependencies for Yarp.ReverseProxy'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-8xc6-g8xw-h2c4",
  "modified" : "2022-04-22T20:23:44Z",
  "published" : "2022-04-22T20:23:44Z",
  "aliases" : [ "CVE-2022-26924" ],
  "summary" : "YARP Denial of Service Vulnerability",
  "details" : "### Impact\n\nA denial of service vulnerability exists in how YARP processes input.\n\n### Patches\n\nIf you're using YARP `1.0.0`, you should update to NuGet package version [`1.0.1`](https://www.nuget.org/packages/Yarp.ReverseProxy/1.0.1).\nIf you're using YARP `1.1.0-RC.1`, you should update to NuGet package version [`1.1.0-rc.1.22211.2`](https://www.nuget.org/packages/Yarp.ReverseProxy/1.1.0-rc.1.22211.2).\n\nYou can do so by updating the `PackageReference` in your `.csproj` file\n```diff\n<ItemGroup>\n- <PackageReference Include=\"Yarp.ReverseProxy\" Version=\"1.0.0\" />\n- <PackageReference Include=\"Yarp.Telemetry.Consumption\" Version=\"1.0.0\" />\n+ <PackageReference Include=\"Yarp.ReverseProxy\" Version=\"1.0.1\" />\n+ <PackageReference Include=\"Yarp.Telemetry.Consumption\" Version=\"1.0.1\" />\n</ItemGroup>\n```\nor by selecting `1.0.1` in the NuGet UI inside Visual Studio (`Manage NuGet Packages` / `Updates`)\n![image](https://user-images.githubusercontent.com/25307628/162951795-a30f8ed7-77ef-4c4f-920e-58d9e1587ad1.png)\n\n### References\n\n[CVE-2022-26924](https://msrc.microsoft.com/update-guide/vulnerability/CVE-2022-26924)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Yarp.ReverseProxy"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.0.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Yarp.ReverseProxy"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.1.0-rc.1.22152.1"
      }, {
        "fixed" : "1.1.0-rc.1.22211.2"
      } ]
    } ],
    "versions" : [ "1.1.0-rc.1.22152.1" ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/microsoft/reverse-proxy/security/advisories/GHSA-8xc6-g8xw-h2c4"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-26924"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/microsoft/reverse-proxy/commit/11e6272da17beb03d0b44a19d3c4f1ffa52b7c38"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/microsoft/reverse-proxy"
  }, {
    "type" : "WEB",
    "url" : "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2022-26924"
  }, {
    "type" : "WEB",
    "url" : "https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2022-26924"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-04-22T20:23:44Z",
    "nvd_published_at" : "2022-04-15T19:15:00Z"
  }
}