CWE data temporarily unavailableCWE data is currently experiencing intermittent outages, which may cause incomplete section loading on CVE pages. We are actively working on a fix.

CVE-2016-0752

Description

A directory traversal flaw was found in the way the Action View component searched for templates for rendering. If an application passed untrusted input to the 'render' method, a remote, unauthenticated attacker could use this flaw to render unexpected files and, possibly, execute arbitrary code.

Mitigation

Avoid passing untrusted input to render method, or verify the input using whitelist before passing it to the render method:


def index
render verify_template(params[:id])
end

private
def verify_template(name)
# add verification logic particular to your application here
end

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

CVSS v2 Score Breakdown

Red HatNVDcve.org
Base Score6.85N/A
Attack VectorNetworkNetworkN/A
Access ComplexityMediumLowN/A
AuthenticationNoneNoneN/A
Confidentiality ImpactPartialPartialN/A
Integrity ImpactPartialNoneN/A
Availability ImpactPartialNoneN/A

Vector

Red Hat: AV:N/AC:M/Au:N/C:P/I:P/A:P

NVD: AV:N/AC:L/Au:N/C:P/I:N/A:N

Acknowledgements

Red Hat would like to thank the Ruby on Rails project for reporting this issue. Upstream acknowledges John Poulin as the original reporter.

Frequently Asked Questions

Want to get errata notifications? Sign up here.