cve-2025-27221
Vulnerability from cvelistv5
Published
2025-03-03 00:00
Modified
2025-03-04 16:39
Summary
In the URI gem before 1.0.3 for Ruby, the URI handling methods (URI.join, URI#merge, URI#+) have an inadvertent leakage of authentication credentials because userinfo is retained even after changing the host.
Impacted products
Vendor Product Version
ruby-lang URI Version: 0   < 0.11.3
Version: 0.12.0   < 0.12.4
Version: 0.13.0   < 0.13.2
Version: 1.0.0   < 1.0.3
Create a notification for this product.
Show details on NVD website


{
   containers: {
      adp: [
         {
            metrics: [
               {
                  other: {
                     content: {
                        id: "CVE-2025-27221",
                        options: [
                           {
                              Exploitation: "none",
                           },
                           {
                              Automatable: "no",
                           },
                           {
                              "Technical Impact": "partial",
                           },
                        ],
                        role: "CISA Coordinator",
                        timestamp: "2025-03-04T16:38:46.135358Z",
                        version: "2.0.3",
                     },
                     type: "ssvc",
                  },
               },
            ],
            providerMetadata: {
               dateUpdated: "2025-03-04T16:39:00.368Z",
               orgId: "134c704f-9b21-4f2e-91b3-4a467353bcc0",
               shortName: "CISA-ADP",
            },
            title: "CISA ADP Vulnrichment",
         },
      ],
      cna: {
         affected: [
            {
               defaultStatus: "unaffected",
               product: "URI",
               vendor: "ruby-lang",
               versions: [
                  {
                     lessThan: "0.11.3",
                     status: "affected",
                     version: "0",
                     versionType: "custom",
                  },
                  {
                     lessThan: "0.12.4",
                     status: "affected",
                     version: "0.12.0",
                     versionType: "custom",
                  },
                  {
                     lessThan: "0.13.2",
                     status: "affected",
                     version: "0.13.0",
                     versionType: "custom",
                  },
                  {
                     lessThan: "1.0.3",
                     status: "affected",
                     version: "1.0.0",
                     versionType: "custom",
                  },
               ],
            },
         ],
         cpeApplicability: [
            {
               nodes: [
                  {
                     cpeMatch: [
                        {
                           criteria: "cpe:2.3:a:ruby-lang:uri:*:*:*:*:*:*:*:*",
                           versionEndExcluding: "0.11.3",
                           vulnerable: true,
                        },
                        {
                           criteria: "cpe:2.3:a:ruby-lang:uri:*:*:*:*:*:*:*:*",
                           versionEndExcluding: "0.12.4",
                           versionStartIncluding: "0.12.0",
                           vulnerable: true,
                        },
                        {
                           criteria: "cpe:2.3:a:ruby-lang:uri:*:*:*:*:*:*:*:*",
                           versionEndExcluding: "0.13.2",
                           versionStartIncluding: "0.13.0",
                           vulnerable: true,
                        },
                        {
                           criteria: "cpe:2.3:a:ruby-lang:uri:*:*:*:*:*:*:*:*",
                           versionEndExcluding: "1.0.3",
                           versionStartIncluding: "1.0.0",
                           vulnerable: true,
                        },
                     ],
                     negate: false,
                     operator: "OR",
                  },
               ],
            },
         ],
         descriptions: [
            {
               lang: "en",
               value: "In the URI gem before 1.0.3 for Ruby, the URI handling methods (URI.join, URI#merge, URI#+) have an inadvertent leakage of authentication credentials because userinfo is retained even after changing the host.",
            },
         ],
         metrics: [
            {
               cvssV3_1: {
                  baseScore: 3.2,
                  baseSeverity: "LOW",
                  vectorString: "CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N",
                  version: "3.1",
               },
            },
         ],
         problemTypes: [
            {
               descriptions: [
                  {
                     cweId: "CWE-212",
                     description: "CWE-212 Improper Removal of Sensitive Information Before Storage or Transfer",
                     lang: "en",
                     type: "CWE",
                  },
               ],
            },
         ],
         providerMetadata: {
            dateUpdated: "2025-03-03T23:58:48.831Z",
            orgId: "8254265b-2729-46b6-b9e3-3dfca2d5bfca",
            shortName: "mitre",
         },
         references: [
            {
               url: "https://hackerone.com/reports/2957667",
            },
            {
               url: "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/uri/CVE-2025-27221.yml",
            },
         ],
         x_generator: {
            engine: "enrichogram 0.0.1",
         },
      },
   },
   cveMetadata: {
      assignerOrgId: "8254265b-2729-46b6-b9e3-3dfca2d5bfca",
      assignerShortName: "mitre",
      cveId: "CVE-2025-27221",
      datePublished: "2025-03-03T00:00:00.000Z",
      dateReserved: "2025-02-20T00:00:00.000Z",
      dateUpdated: "2025-03-04T16:39:00.368Z",
      state: "PUBLISHED",
   },
   dataType: "CVE_RECORD",
   dataVersion: "5.1",
   "vulnerability-lookup:meta": {
      nvd: "{\"cve\":{\"id\":\"CVE-2025-27221\",\"sourceIdentifier\":\"cve@mitre.org\",\"published\":\"2025-03-04T00:15:31.847\",\"lastModified\":\"2025-03-05T14:05:49.230\",\"vulnStatus\":\"Analyzed\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the URI gem before 1.0.3 for Ruby, the URI handling methods (URI.join, URI#merge, URI#+) have an inadvertent leakage of authentication credentials because userinfo is retained even after changing the host.\"},{\"lang\":\"es\",\"value\":\"En la gema URI anterior a 1.0.3 para Ruby, los métodos de gestión de URI (URI.join, URI#merge, URI#+) tienen una fuga involuntaria de credenciales de autenticación porque la información del usuario se conserva incluso después de cambiar el host.\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"cve@mitre.org\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N\",\"baseScore\":3.2,\"baseSeverity\":\"LOW\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"HIGH\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"NONE\",\"scope\":\"CHANGED\",\"confidentialityImpact\":\"LOW\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"NONE\"},\"exploitabilityScore\":1.4,\"impactScore\":1.4},{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N\",\"baseScore\":5.3,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"LOW\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"NONE\"},\"exploitabilityScore\":3.9,\"impactScore\":1.4}]},\"weaknesses\":[{\"source\":\"cve@mitre.org\",\"type\":\"Secondary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-212\"}]},{\"source\":\"nvd@nist.gov\",\"type\":\"Secondary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-212\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:tal:url:*:*:*:*:*:ruby:*:*\",\"versionEndExcluding\":\"0.11.3\",\"matchCriteriaId\":\"C655E620-3EA7-4A4E-B744-76F0A04A3417\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:tal:url:*:*:*:*:*:ruby:*:*\",\"versionStartIncluding\":\"0.12.0\",\"versionEndExcluding\":\"0.12.4\",\"matchCriteriaId\":\"81DF3903-2BF5-46F8-8EE4-0C6CEF6179B6\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:tal:url:*:*:*:*:*:ruby:*:*\",\"versionStartIncluding\":\"0.13.0\",\"versionEndExcluding\":\"0.13.2\",\"matchCriteriaId\":\"650C2267-9E99-4CC3-9252-C4B20DB7A27C\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:tal:url:*:*:*:*:*:ruby:*:*\",\"versionStartIncluding\":\"1.0.0\",\"versionEndExcluding\":\"1.0.3\",\"matchCriteriaId\":\"338FD493-9163-4B7F-AD4C-34DE29B6423A\"}]}]}],\"references\":[{\"url\":\"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/uri/CVE-2025-27221.yml\",\"source\":\"cve@mitre.org\",\"tags\":[\"Third Party Advisory\"]},{\"url\":\"https://hackerone.com/reports/2957667\",\"source\":\"cve@mitre.org\",\"tags\":[\"Permissions Required\"]}]}}",
      vulnrichment: {
         containers: "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2025-27221\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2025-03-04T16:38:46.135358Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2025-03-04T16:38:53.645Z\"}}], \"cna\": {\"metrics\": [{\"cvssV3_1\": {\"version\": \"3.1\", \"baseScore\": 3.2, \"baseSeverity\": \"LOW\", \"vectorString\": \"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N\"}}], \"affected\": [{\"vendor\": \"ruby-lang\", \"product\": \"URI\", \"versions\": [{\"status\": \"affected\", \"version\": \"0\", \"lessThan\": \"0.11.3\", \"versionType\": \"custom\"}, {\"status\": \"affected\", \"version\": \"0.12.0\", \"lessThan\": \"0.12.4\", \"versionType\": \"custom\"}, {\"status\": \"affected\", \"version\": \"0.13.0\", \"lessThan\": \"0.13.2\", \"versionType\": \"custom\"}, {\"status\": \"affected\", \"version\": \"1.0.0\", \"lessThan\": \"1.0.3\", \"versionType\": \"custom\"}], \"defaultStatus\": \"unaffected\"}], \"references\": [{\"url\": \"https://hackerone.com/reports/2957667\"}, {\"url\": \"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/uri/CVE-2025-27221.yml\"}], \"x_generator\": {\"engine\": \"enrichogram 0.0.1\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the URI gem before 1.0.3 for Ruby, the URI handling methods (URI.join, URI#merge, URI#+) have an inadvertent leakage of authentication credentials because userinfo is retained even after changing the host.\"}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-212\", \"description\": \"CWE-212 Improper Removal of Sensitive Information Before Storage or Transfer\"}]}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:a:ruby-lang:uri:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"0.11.3\"}, {\"criteria\": \"cpe:2.3:a:ruby-lang:uri:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"0.12.4\", \"versionStartIncluding\": \"0.12.0\"}, {\"criteria\": \"cpe:2.3:a:ruby-lang:uri:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"0.13.2\", \"versionStartIncluding\": \"0.13.0\"}, {\"criteria\": \"cpe:2.3:a:ruby-lang:uri:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"1.0.3\", \"versionStartIncluding\": \"1.0.0\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"8254265b-2729-46b6-b9e3-3dfca2d5bfca\", \"shortName\": \"mitre\", \"dateUpdated\": \"2025-03-03T23:58:48.831Z\"}}}",
         cveMetadata: "{\"cveId\": \"CVE-2025-27221\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2025-03-04T16:39:00.368Z\", \"dateReserved\": \"2025-02-20T00:00:00.000Z\", \"assignerOrgId\": \"8254265b-2729-46b6-b9e3-3dfca2d5bfca\", \"datePublished\": \"2025-03-03T00:00:00.000Z\", \"assignerShortName\": \"mitre\"}",
         dataType: "CVE_RECORD",
         dataVersion: "5.1",
      },
   },
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.