GitHub Advisoryadvisory · RubyGems

GHSA-86g5-2wh3-gc9j Path Traversal in Action View

HIGH Published 2019-03-13 Modified 2025-10-22 Official page ↗
Aliases
CVE-2019-5418
Ecosystem
RubyGems
Packages
actionview
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N/E:H
Weaknesses
CWE-22
Reviewed
2020-06-16

Affected packages

• RubyGems actionview: >= 5.2.0, < 5.2.2.1 → fixed in 5.2.2.1 • RubyGems actionview: >= 4.0.0, < 4.2.11.1 → fixed in 4.2.11.1 • RubyGems actionview: >= 5.1.0, < 5.1.6.2 → fixed in 5.1.6.2 • RubyGems actionview: >= 5.0.0, < 5.0.7.2 → fixed in 5.0.7.2

Description

File Content Disclosure in Action View Impact ------ There is a possible file content disclosure vulnerability in Action View. Specially crafted accept headers in combination with calls to `render file:` can cause arbitrary files on the target server to be rendered, disclosing the file contents. The impact is limited to calls to `render` which render file contents without a specified accept format. Impacted code in a controller looks something like this: ``` ruby class UserController of GitHub

Related

Alias · CVE (1)

  • CVE-2019-5418 There is a File Content Disclosure vulnerability in Action View <5.2.2.1, <5.1.6.2, <5.0.7.2, <4.2.11.1 and v3 where specially crafted… vulnerability

Weakness · CWE (1)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness

References