Cyber Resilience

CVE-2025-27221

Low

Published: 04 March 2025

Published
04 March 2025
Modified
03 November 2025
KEV Added
Patch
CVSS Score v3.1 3.2 CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N
EPSS Score 0.0015 35.7th percentile
Risk Priority 6 60% EPSS · 20% KEV · 20% CVSS

Summary

CVE-2025-27221 is a low-severity Improper Removal of Sensitive Information Before Storage or Transfer (CWE-212) vulnerability in Ruby-Lang Uri. Its CVSS base score is 3.2 (Low).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploitation for Credential Access (T1212); ranked at the 35.7th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

EU & UK References

Vulnerability 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.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise TechniquesAI

T1212 Exploitation for Credential Access Credential Access
Adversaries may exploit software vulnerabilities in an attempt to collect credentials.
Why these techniques?

The vulnerability in URI handling causes inadvertent retention and leakage of authentication credentials (userinfo) even after host changes, enabling adversaries to exploit it for credential access.

Affected Assets

ruby-lang
uri
≤ 0.11.3 · 0.12.0 — 0.12.4 · 0.13.0 — 0.13.2

Mitigating Controls

Likely Mitigating Controls AI

Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.

addresses: CWE-212

Eradication of spilled information from contaminated systems mitigates the effects of improper removal of sensitive data before storage or transfer.

addresses: CWE-212

The control requires verified removal of sensitive data before media is made available at a reduced classification level, directly addressing improper removal prior to storage or transfer.

addresses: CWE-212

Explicit procedures to delete inaccurate or outdated PII directly mitigate improper removal of sensitive information before storage or transfer.

addresses: CWE-212

Retention policies enforce removal or sanitization of sensitive data before storage or transfer per regulatory requirements.

addresses: CWE-212

The explicit requirement to delete inaccurate/outdated PII implements proper removal of sensitive information before further storage or transfer.

addresses: CWE-212

The control implements proper removal of sensitive information before storage or transfer of datasets.

addresses: CWE-212

The generate-on-demand-and-delete requirement enforces removal of sensitive information before storage or transfer, preventing improper retention.

addresses: CWE-212

Requires explicit removal of sensitive information prior to component transfer or disposal, reducing exposure from retained data.

References