CVE-2020-8151: Information disclosure issue in Active Resource
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.51788%
CWE
Published
5/21/2020
Updated
1/23/2023
KEV Status
No
Technology
Ruby
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
activeresource | rubygems | < 5.1.1 | 5.1.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper URL encoding in ID parameter handling. The commit diff shows a critical change in lib/active_resource/base.rb where URI.parser.escape was replaced with URI.encode_www_form_component. The original method's encoding behavior allowed path traversal (e.g., '../') and special characters (e.g., '?') to bypass URL structure constraints, enabling unauthorized data access. The added test cases in finder_test.rb explicitly validate these attack scenarios, confirming the function's role in the vulnerability.