Access Restriction Bypass Affecting ruby package, versions [0,1.9.3p286)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.39% (74th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-RUBY-2370178
  • published26 Jan 2022
  • disclosed24 Nov 2012
  • creditUnknown

Introduced: 24 Nov 2012

CVE-2012-4522  (opens in a new tab)
CWE-264  (opens in a new tab)

How to fix?

Upgrade ruby to version 1.9.3p286 or higher.

Overview

Affected versions of this package are vulnerable to Access Restriction Bypass. The rb_get_path_check function in file.c in Ruby 1.9.3 before patchlevel 286 and Ruby 2.0.0 before r37163 allows context-dependent attackers to create files in unexpected locations or with unexpected names via a NUL byte in a file path.

CVSS Scores

version 3.1