Security mailing lists by PureSourceCode

CVE-2012-4522

MEDIUM 5.0CVSS 2.0

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.

Published
24 Nov 2012
Last modified
16 Jun 2026
Assigned by
secalert@redhat.com
NVD status
Modified
Weakness
CWE-264
Sources
NVDJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 5.0 AV:N/AC:L/Au:N/C:N/I:P/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD ruby-lang ruby
cpe:2.3:a:ruby-lang:ruby:1.9.3:*:*:*:*:*:*:*
= 1.9.3
NVD ruby-lang ruby
cpe:2.3:a:ruby-lang:ruby:2.0.0:*:*:*:*:*:*:*
= 2.0.0

References

History

  • 25 Nov 2026 20:17 UTC ยท NVD: first stored (published 24 Nov 2012)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.