CVE-2012-4522
Improper file creation via NUL byte in path
Multiple products
At a glance
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.
Source description · CVE List / CNA
System impact
Attack complexityLow
ConfidentialityNone
IntegrityPartial
AvailabilityNone
CVSS summary v2.0
5.0Medium
- Published:
- Updated:
- EPSS:
- 2.204%
- Exploited in attacks:
- Not confirmed
- Ransomware campaigns:
- Not confirmed
- Attack vector:
- Network
Affected software
Vendor, product and affected version ranges.
| Vendor | Product | Affected versions |
|---|---|---|
| Vendor:ruby-lang | ruby | Affected versions:1.9.3Show full version range for ruby2.0.0 |
| Vendor:oraclelinux | rubyEnvironments (1)
| Affected versions: < 0:1.8.5-27.el5 |
| Vendor:oraclelinux | ruby-develEnvironments (1)
| Affected versions: < 0:1.8.5-27.el5 |
| Vendor:oraclelinux | ruby-docsEnvironments (1)
| Affected versions: < 0:1.8.5-27.el5 |
| Vendor:oraclelinux | ruby-irbEnvironments (1)
| Affected versions: < 0:1.8.5-27.el5 |
| Vendor:oraclelinux | ruby-libsEnvironments (1)
| Affected versions: < 0:1.8.5-27.el5 |
| Vendor:oraclelinux | ruby-modeEnvironments (1)
| Affected versions: < 0:1.8.5-27.el5 |
| Vendor:oraclelinux | ruby-rdocEnvironments (1)
| Affected versions: < 0:1.8.5-27.el5 |
| Vendor:oraclelinux | ruby-riEnvironments (1)
| Affected versions: < 0:1.8.5-27.el5 |
| Vendor:oraclelinux | ruby-tcltkEnvironments (1)
| Affected versions: < 0:1.8.5-27.el5 |
1–10 of 29 · Page 1 of 3
CVSS scores and metrics5
[email protected] · NVD (Primary)Primary5.0 / 10MediumCVSS 2.0Details
- Attack complexity
- Low
- Confidentiality
- None
- Integrity
- Partial
- Availability
- None
- Attack vector
- Network
- Authentication
- Not required
Source vector
AV:N/AC:L/Au:N/C:N/I:P/A:Nnvd · Wazuh CTI (cna)5.0 / 10MediumCVSS 2.0Details
- Attack complexity
- Low
- Confidentiality
- None
- Integrity
- Partial
- Availability
- None
- Attack vector
- Network
- Authentication
- Not required
Source vector
AV:N/AC:L/Au:N/C:N/I:P/A:Noraclelinux · Wazuh CTI (adp)4.3 / 10MediumCVSS 2.0Details
- Attack complexity
- Medium
- Confidentiality
- None
- Integrity
- Partial
- Availability
- None
- Attack vector
- Network
- Authentication
- Not required
Source vector
AV:N/AC:M/Au:N/C:N/I:P/A:Nredhat · Wazuh CTI (adp)4.3 / 10MediumCVSS 2.0Details
- Attack complexity
- Medium
- Confidentiality
- None
- Integrity
- Partial
- Availability
- None
- Attack vector
- Network
- Authentication
- Not required
Source vector
AV:N/AC:M/Au:N/C:N/I:P/A:NRed Hat · Red Hat VEX (adp)4.3 / 10MediumCVSS 2.0Details
- Attack complexity
- Medium
- Confidentiality
- None
- Integrity
- Partial
- Availability
- None
- Attack vector
- Network
- Authentication
- Not required
Source vector
AV:N/AC:M/Au:N/C:N/I:P/A:NCVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.
Sources and advisories21
- CVE List / CNA
- NVD
- Wazuh CTI
- Red Hat VEX
- FIRST EPSS
- openwall.com
- openwall.com
- openwall.com
- lists.fedoraproject.org
- ruby-lang.org
- rhn.redhat.com
- lists.fedoraproject.org
- svn.ruby-lang.org
- SUSE-SU-2013:0611-1
- SUSE-SU-2013:0435-1
- SUSE CVE-2012-4522
- access.redhat.com
- openSUSE-SU-2013:0376-1
- linux.oracle.com
- access.redhat.com
- Mitre CVE-2012-4522
This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Data sources and licences