CVE-2025-27221

Source
https://cve.org/CVERecord?id=CVE-2025-27221
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-27221.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-27221
Aliases
Downstream
Related
Published
2025-03-03T00:00:00Z
Modified
2026-05-13T07:02:57.114022038Z
Severity
  • 3.2 (Low) CVSS_V3 - CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N CVSS Calculator
Summary
[none]
Details

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.

Database specific
{
    "cna_assigner": "mitre",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/27xxx/CVE-2025-27221.json",
    "unresolved_ranges": [
        {
            "source": "AFFECTED_FIELD",
            "extracted_events": [
                {
                    "fixed": "0.11.3"
                },
                {
                    "introduced": "0.12.0"
                },
                {
                    "fixed": "0.12.4"
                },
                {
                    "introduced": "0.13.0"
                },
                {
                    "fixed": "0.13.2"
                },
                {
                    "introduced": "1.0.0"
                },
                {
                    "fixed": "1.0.3"
                }
            ]
        },
        {
            "source": "CPE_FIELD",
            "extracted_events": [
                {
                    "fixed": "0.11.3"
                },
                {
                    "introduced": "0.12.0"
                },
                {
                    "fixed": "0.12.4"
                },
                {
                    "introduced": "0.13.0"
                },
                {
                    "fixed": "0.13.2"
                },
                {
                    "introduced": "1.0.0"
                },
                {
                    "fixed": "1.0.3"
                }
            ]
        },
        {
            "source": "DESCRIPTION",
            "extracted_events": [
                {
                    "fixed": "1.0.3"
                }
            ]
        }
    ],
    "cwe_ids": [
        "CWE-212"
    ]
}
References

Affected packages

Git / github.com/ruby/uri

Affected ranges

Type
GIT
Repo
https://github.com/ruby/uri
Events
Database specific
{
    "source": "CPE_FIELD",
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "0.11.3"
        },
        {
            "introduced": "0.12.0"
        },
        {
            "fixed": "0.12.4"
        },
        {
            "introduced": "0.13.0"
        },
        {
            "fixed": "0.13.2"
        },
        {
            "introduced": "1.0.0"
        },
        {
            "fixed": "1.0.3"
        }
    ],
    "cpe": "cpe:2.3:a:ruby-lang:uri:*:*:*:*:*:ruby:*:*"
}

Affected versions

v0.*
v0.10.0
v0.10.1
v0.11.0
v0.11.1
v0.11.2
v0.12.0
v0.12.1
v0.12.2
v0.12.3
v0.13.0
v0.13.1
v1.*
v1.0.0
v1.0.1
v1.0.2

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-27221.json"