CVE-2020-7791: I18n Denial of Service Vulnerability

HIGH
Advisory Identifier: GHSA-hfvc-g252-rp4g
CVSS 7.5
CWE-400 CWE-20
Published
Advisory Summary

CVE-2020-7791 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting I18n libraries in the NuGet ecosystem. The issue involves denial of service in i18n. Remediation is available by upgrading affected packages to version 2.1.15.

CVE-2020-7791 at a Glance

CVE Identifier CVE-2020-7791
GHSA Identifier GHSA-hfvc-g252-rp4g
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product I18n
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-2020-7791

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

i18n fixed: 2.1.15
Upgrade i18n to 2.1.15
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 i18n

How to Check if You Are Affected

To determine whether your application is affected by CVE-2020-7791, inspect your project dependencies for I18n:

inspect dependencies for i18n

Analyze the terminal output to locate any version of I18n in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.1.15), 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 I18n, 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

This affects the package i18n before version 2.1.15. Vulnerability arises out of insufficient handling of erroneous language tags in src/i18n/Concrete/TextLocalizer.cs and src/i18n/LocalizedApplication.cs.

CVE-2020-7791 Affected I18n Versions

1 component(s)
Fixed Versions:
2.1.15
Product / Package Ecosystem Affected Versions Fixed Version
i18n
NuGet
< 2.1.15
2.1.15

References

NVD — CVE-2020-7791 NVD
https://nvd.nist.gov/vuln/detail/CVE-2020-7791
I18n Source Repository REPOSITORY
https://github.com/turquoiseowl/i18n/issues/387
Security Fix Commit FIX COMMIT
https://github.com/turquoiseowl/i18n/commit/c418e3345313dc896c1951d8c46ab0b9b12fcbd3
lists.apache.org/thread.html/r1573c5... WEB
https://lists.apache.org/thread.html/r1573c58dc283b05f7a40a3f5ff0079b5bbde0492d406ee0fe98d40b6@%3Ccommits.druid.apache.org%3E
lists.apache.org/thread.html/r266728... WEB
https://lists.apache.org/thread.html/r2667286c8ceffaf893b16829b9612d8f7c4ee6b30362c6c1b583e3c2@%3Ccommits.druid.apache.org%3E
lists.apache.org/thread.html/r33dc23... WEB
https://lists.apache.org/thread.html/r33dc233634aedb04fa77db3eb79ea12d15ca4da89fa46a1c585ecb0b@%3Ccommits.druid.apache.org%3E
lists.apache.org/thread.html/r394b1a... WEB
https://lists.apache.org/thread.html/r394b1ae54693609a60ea8aab02ff045dc92f593aa3aebff562e69958@%3Ccommits.druid.apache.org%3E
lists.apache.org/thread.html/r5e0883... WEB
https://lists.apache.org/thread.html/r5e08837e695efd36be73510ce58ec05785dbcea077819d8acc2d990d@%3Ccommits.druid.apache.org%3E
lists.apache.org/thread.html/r974457... WEB
https://lists.apache.org/thread.html/r9744574911e7e4edf5f4eeae92a4ccc83e3723cec937950062bb8775@%3Ccommits.druid.apache.org%3E
lists.apache.org/thread.html/ra50473... WEB
https://lists.apache.org/thread.html/ra5047392edf1fecba441c9adc8807ed6c5f7d2cc71f2f3bb89f35371@%3Ccommits.druid.apache.org%3E
lists.apache.org/thread.html/rc2abba... WEB
https://lists.apache.org/thread.html/rc2abba7aa0450198494bbee654fce9b97fad72a4989323e189faede4@%3Cdev.myfaces.apache.org%3E
lists.apache.org/thread.html/rc850d0... WEB
https://lists.apache.org/thread.html/rc850d0fce066f9eb9e8553172d9207bad7df4d2059d93abc5c7e85c4@%3Ccommits.druid.apache.org%3E
snyk.io/vuln/snyk-dotnet-i1... WEB
https://snyk.io/vuln/SNYK-DOTNET-I18N-1050179

Frequently Asked Questions

What is CVE-2020-7791?
CVE-2020-7791 is a security vulnerability in I18n involving Denial of Service in i18n under CWE-400: Uncontrolled Resource Consumption.
Which I18n versions are affected?
Affected versions include releases prior to 2.1.15 across affected packages: i18n.
What version fixes CVE-2020-7791?
Upgrading to 2.1.15 (or the latest patched release for your respective branch) resolves the vulnerability.
Is i18n affected?
Yes, i18n is affected in releases prior to 2.1.15. Upgrade your dependency to 2.1.15 or later.
What is the CVSS score of CVE-2020-7791?
CVE-2020-7791 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-2020-7791?
CVE-2020-7791 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-2020-7791?
Run the dependency tree command: 'inspect dependencies for i18n'. 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-hfvc-g252-rp4g",
  "modified" : "2022-09-08T14:04:10Z",
  "published" : "2020-12-14T19:50:22Z",
  "aliases" : [ "CVE-2020-7791" ],
  "summary" : "Denial of Service in i18n",
  "details" : "This affects the package i18n before version 2.1.15. Vulnerability arises out of insufficient handling of erroneous language tags in src/i18n/Concrete/TextLocalizer.cs and src/i18n/LocalizedApplication.cs.",
  "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" : "i18n"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.1.15"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-7791"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/turquoiseowl/i18n/issues/387"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/turquoiseowl/i18n/commit/c418e3345313dc896c1951d8c46ab0b9b12fcbd3"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r1573c58dc283b05f7a40a3f5ff0079b5bbde0492d406ee0fe98d40b6@%3Ccommits.druid.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r2667286c8ceffaf893b16829b9612d8f7c4ee6b30362c6c1b583e3c2@%3Ccommits.druid.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r33dc233634aedb04fa77db3eb79ea12d15ca4da89fa46a1c585ecb0b@%3Ccommits.druid.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r394b1ae54693609a60ea8aab02ff045dc92f593aa3aebff562e69958@%3Ccommits.druid.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r5e08837e695efd36be73510ce58ec05785dbcea077819d8acc2d990d@%3Ccommits.druid.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r9744574911e7e4edf5f4eeae92a4ccc83e3723cec937950062bb8775@%3Ccommits.druid.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/ra5047392edf1fecba441c9adc8807ed6c5f7d2cc71f2f3bb89f35371@%3Ccommits.druid.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/rc2abba7aa0450198494bbee654fce9b97fad72a4989323e189faede4@%3Cdev.myfaces.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/rc850d0fce066f9eb9e8553172d9207bad7df4d2059d93abc5c7e85c4@%3Ccommits.druid.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://snyk.io/vuln/SNYK-DOTNET-I18N-1050179"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20", "CWE-400" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-12-14T19:48:58Z",
    "nvd_published_at" : "2020-12-11T17:15:00Z"
  }
}