Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-32740

Addressable is an alternative implementation to the URI implementation that is part of Ruby's standard library. An uncontrolled resource consumption vulnerability exists after version 2.3.0 through version 2.7.0. Within the URI template implementation in Addressable, a maliciously crafted template may result in uncontrolled resource consumption, leading to denial of service when matched against a URI. In typical usage, templates would not normally be read from untrusted user input, but nonetheless, no previous security advisory for Addressable has cautioned against doing this. Users of the parsing capabilities in Addressable but not the URI template capabilities are unaffected. The vulnerability is patched in version 2.8.0. As a workaround, only create Template objects from trusted sources that have been validated not to produce catastrophic backtracking.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-32740
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:47 UTC · Revision 1

Source evidence

CVE-2021-32740

core-osv · Original source

Published 6 Jul 2021, 15:15 UTC

Addressable is an alternative implementation to the URI implementation that is part of Ruby's standard library. An uncontrolled resource consumption vulnerability exists after version 2.3.0 through version 2.7.0. Within the URI template implementation in Addressable, a maliciously crafted template may result in uncontrolled resource consumption, leading to denial of service when matched against a URI. In typical usage, templates would not normally be read from untrusted user input, but nonetheless, no previous security advisory for Addressable has cautioned against doing this. Users of the parsing capabilities in Addressable but not the URI template capabilities are unaffected. The vulnerability is patched in version 2.8.0. As a workaround, only create Template objects from trusted sources that have been validated not to produce catastrophic backtracking.

osv:CVE-2021-32740
Complete source record
{
  "id": "403d502b9f49110e348367c15dccf388ab09231fe1e9460776fa9731a8ef67a9",
  "url": "https://osv.dev/vulnerability/CVE-2021-32740",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-32740",
    "summary": "Addressable is an alternative implementation to the URI implementation that is part of Ruby's standard library. An uncontrolled resource consumption vulnerability exists after version 2.3.0 through version 2.7.0. Within the URI template implementation in Addressable, a maliciously crafted template may result in uncontrolled resource consumption, leading to denial of service when matched against a URI. In typical usage, templates would not normally be read from untrusted user input, but nonetheless, no previous security advisory for Addressable has cautioned against doing this. Users of the parsing capabilities in Addressable but not the URI template capabilities are unaffected. The vulnerability is patched in version 2.8.0. As a workaround, only create Template objects from trusted sources that have been validated not to produce catastrophic backtracking.",
    "evidence": "osv:CVE-2021-32740",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-32740",
      "aliases": [
        "CVE-2021-32740",
        "GHSA-jxhc-q857-3j6g"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/sporkmonger/addressable",
              "type": "GIT",
              "events": [
                {
                  "introduced": "768b408ef1e731bb3c9fdf29fbcf23cad5c42d18"
                },
                {
                  "fixed": "6469a232c0f1892809ff66737370c765d574e16c"
                },
                {
                  "fixed": "0d8a3127e35886ce9284810a7f2438bff6b43cbc"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:addressable_project:addressable:*:*:*:*:*:ruby:*:*",
                    "range": [
                      {
                        "introduced": "2.3.0"
                      },
                      {
                        "fixed": "2.8.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "0d8a3127e35886ce9284810a7f2438bff6b43cbc"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "addressable-2.7.0",
            "addressable-2.6.0",
            "addressable-2.5.2",
            "addressable-2.5.1",
            "addressable-2.5.0",
            "addressable-2.4.0",
            "addressable-2.3.8",
            "addressable-2.3.7",
            "addressable-2.3.6",
            "addressable-2.3.5",
            "addressable-2.3.4",
            "addressable-2.3.3",
            "addressable-2.3.2",
            "addressable-2.3.1",
            "addressable-2.3.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-32740.json"
          }
        }
      ],
      "modified": "2026-10-20T10:54:43.250440335Z",
      "provider": "osv",
      "references": [
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SDFQM2NHNAZ3NNUQZEJTYECYZYXV4UDS/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WYPVOOQU7UB277UUERJMCNQLRCXRCIQ5/",
        "https://github.com/sporkmonger/addressable/security/advisories/GHSA-jxhc-q857-3j6g",
        "https://github.com/sporkmonger/addressable/commit/0d8a3127e35886ce9284810a7f2438bff6b43cbc"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*",
              "cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*"
            ],
            "vendor_product": "fedoraproject:fedora",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "33"
                  },
                  {
                    "last_affected": "33"
                  },
                  {
                    "introduced": "34"
                  },
                  {
                    "last_affected": "34"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2021-32740",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 385992,
  "published_at": "2021-07-06T15:15:07.647+00:00"
}