Vulnerabilities in pkg:nuget/Yarp.ReverseProxy

PACKAGE
Advisory Identifier: GHSA-jrjw-qgr2-wfcg
Advisory Summary

CVE-2023-33141 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) 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.1.2, 2.0.1.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:nuget/Yarp.ReverseProxy

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:nuget/Yarp.ReverseProxy. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-jrjw-qgr2-wfcg CVE-2023-33141 HIGH YARP Denial of Service Vulnerability
GHSA-8xc6-g8xw-h2c4 CVE-2022-26924 HIGH YARP Denial of Service Vulnerability

CVE-2023-33141 at a Glance

CVE Identifier CVE-2023-33141
GHSA Identifier GHSA-jrjw-qgr2-wfcg
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-400: Uncontrolled Resource Consumption
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-2023-33141

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.1.2
Upgrade Yarp.ReverseProxy to 1.1.2
Yarp.ReverseProxy fixed: 2.0.1
Upgrade Yarp.ReverseProxy to 2.0.1
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-2023-33141, 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.1.2), 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 CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. 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 YARP. ### Patches If you're using YARP 1.x, you should update to NuGet package version [1.1.2](https://www.nuget.org/packages/Yarp.ReverseProxy/1.1.2). If you're using YARP 2.0.0, you should update to NuGet package version [2.0.1](https://www.nuget.org/packages/Yarp.ReverseProxy/2.0.1). You can do so by updating the `PackageReference` in your `.csproj` file ```diff <ItemGroup> - <PackageReference Include="Yarp.ReverseProxy" Version="2.0.0" /> - <PackageReference Include="Yarp.Telemetry.Consumption" Version="2.0.0" /> + <PackageReference Include="Yarp.ReverseProxy" Version="2.0.1" /> + <PackageReference Include="Yarp.Telemetry.Consumption" Version="2.0.1" /> </ItemGroup> ``` or by selecting `2.0.1` in the NuGet UI inside Visual Studio (`Manage NuGet Packages` / `Updates`) ### References [CVE-2023-33141](https://msrc.microsoft.com/update-guide/vulnerability/CVE-2023-33141)

CVE-2023-33141 Affected Yarp.ReverseProxy Versions

2 component(s)
Fixed Versions:
1.1.22.0.1
Product / Package Ecosystem Affected Versions Fixed Version
Yarp.ReverseProxy
NuGet
< 1.1.2
1.1.2
Yarp.ReverseProxy
NuGet
≥ 2.0.0
< 2.0.1
All 1 versions
2.0.0
2.0.1

References

Frequently Asked Questions

What is CVE-2023-33141?
CVE-2023-33141 is a security vulnerability in Yarp.ReverseProxy involving YARP Denial of Service Vulnerability under CWE-400: Uncontrolled Resource Consumption.
Which Yarp.ReverseProxy versions are affected?
Affected versions include releases prior to 1.1.2, 2.0.1 across affected packages: Yarp.ReverseProxy.
What version fixes CVE-2023-33141?
Upgrading to 1.1.2, 2.0.1 (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.1.2, 2.0.1. Upgrade your dependency to 1.1.2, 2.0.1 or later.
What is the CVSS score of CVE-2023-33141?
CVE-2023-33141 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-2023-33141?
CVE-2023-33141 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check NuGet dependencies for CVE-2023-33141?
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-jrjw-qgr2-wfcg",
  "modified" : "2023-06-23T21:37:26Z",
  "published" : "2023-06-23T21:37:26Z",
  "aliases" : [ "CVE-2023-33141" ],
  "summary" : "YARP Denial of Service Vulnerability",
  "details" : "### Impact\nA denial of service vulnerability exists in YARP.\n\n### Patches\nIf you're using YARP 1.x, you should update to NuGet package version [1.1.2](https://www.nuget.org/packages/Yarp.ReverseProxy/1.1.2).\nIf you're using YARP 2.0.0, you should update to NuGet package version [2.0.1](https://www.nuget.org/packages/Yarp.ReverseProxy/2.0.1).\n\n\nYou can do so by updating the `PackageReference` in your `.csproj` file\n```diff\n<ItemGroup>\n- <PackageReference Include=\"Yarp.ReverseProxy\" Version=\"2.0.0\" />\n- <PackageReference Include=\"Yarp.Telemetry.Consumption\" Version=\"2.0.0\" />\n+ <PackageReference Include=\"Yarp.ReverseProxy\" Version=\"2.0.1\" />\n+ <PackageReference Include=\"Yarp.Telemetry.Consumption\" Version=\"2.0.1\" />\n</ItemGroup>\n```\nor by selecting `2.0.1` in the NuGet UI inside Visual Studio (`Manage NuGet Packages` / `Updates`)\n\n### References\n\n[CVE-2023-33141](https://msrc.microsoft.com/update-guide/vulnerability/CVE-2023-33141)\n",
  "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.1.2"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.1.1"
    }
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Yarp.ReverseProxy"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.0.1"
      } ]
    } ],
    "versions" : [ "2.0.0" ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/microsoft/reverse-proxy/security/advisories/GHSA-jrjw-qgr2-wfcg"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-33141"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/microsoft/reverse-proxy"
  }, {
    "type" : "WEB",
    "url" : "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2023-33141"
  }, {
    "type" : "WEB",
    "url" : "https://www.nuget.org/packages/Yarp.ReverseProxy/1.1.2"
  }, {
    "type" : "WEB",
    "url" : "https://www.nuget.org/packages/Yarp.ReverseProxy/2.0.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-06-23T21:37:26Z",
    "nvd_published_at" : "2023-06-23T02:15:09Z"
  }
}