Apple Mac OS X up to 10.7.5/10.8.5/10.9.2 Ruby Float Object memory corruption

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
7.0$0-$5k0.00

Summaryinfo

A vulnerability was found in Apple Mac OS X up to 10.7.5/10.8.5/10.9.2. It has been classified as critical. This issue affects some unknown processing of the component Ruby. This manipulation as part of Float Object causes memory corruption. The identification of this vulnerability is CVE-2013-4164. Furthermore, there is an exploit available. It is recommended to apply a patch to fix this issue.

Detailsinfo

A vulnerability was found in Apple Mac OS X up to 10.7.5/10.8.5/10.9.2 (Operating System). It has been declared as critical. Affected by this vulnerability is an unknown code block of the component Ruby. The manipulation as part of a Float Object leads to a memory corruption vulnerability. The CWE definition for the vulnerability is CWE-119. The product performs operations on a memory buffer, but it can read from or write to a memory location that is outside of the intended boundary of the buffer. As an impact it is known to affect confidentiality, integrity, and availability. The summary by CVE is:

Heap-based buffer overflow in Ruby 1.8, 1.9 before 1.9.3-p484, 2.0 before 2.0.0-p353, 2.1 before 2.1.0 preview2, and trunk before revision 43780 allows context-dependent attackers to cause a denial of service (segmentation fault) and possibly execute arbitrary code via a string that is converted to a floating point value, as demonstrated using (1) the to_f method or (2) JSON.parse.

The weakness was shared 04/22/2014 as HT6207 as confirmed advisory (Website). It is possible to read the advisory at support.apple.com. The vendor cooperated in the coordination of the public release. This vulnerability is known as CVE-2013-4164 since 06/12/2013. The exploitation appears to be difficult. The attack can be launched remotely. The exploitation doesn't need any form of authentication. Technical details are unknown but a public exploit is available. The advisory points out:

Running a Ruby script that uses untrusted input to create a Float object may lead to an unexpected application termination or arbitrary code execution

It is possible to download the exploit at packetstormsecurity.com. It is declared as highly functional. We expect the 0-day to have been worth approximately $5k-$25k. The vulnerability scanner Nessus provides a plugin with the ID 71472 (Slackware 13.1 / 13.37 / 14.0 / 14.1 / current : ruby (SSA:2013-350-06)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Slackware Local Security Checks. The commercial vulnerability scanner Qualys is able to test this issue with plugin 195876 (Ubuntu Security Notification for Ruby1.8, Ruby1.9.1 Vulnerabilities (USN-2035-1)).

Applying the patch Security Update 2014-002 is able to eliminate this problem. The bugfix is ready for download at support.apple.com. A possible mitigation has been published immediately after the disclosure of the vulnerability. The advisory contains the following remark:

This issue was addressed through additional validation of floating point values.

The vulnerability is also documented in the databases at Tenable (71472), SecurityFocus (BID 62442†), OSVDB (100113†), Secunia (SA55787†) and SecurityTracker (ID 1030133†). The entries VDB-8751, VDB-11266, VDB-13041 and VDB-13040 are related to this item. Be aware that VulDB is the high quality source for vulnerability data.

Productinfo

Type

Vendor

Name

Version

License

Support

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 7.3
VulDB Meta Temp Score: 7.0

VulDB Base Score: 7.3
VulDB Temp Score: 7.0
VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

NVD Base Score: 🔍

Exploitinginfo

Class: Memory corruption
CWE: CWE-119
CAPEC: 🔍
ATT&CK: 🔍

Physical: No
Local: No
Remote: Yes

Availability: 🔍
Access: Public
Status: Highly functional
Download: 🔍

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 71472
Nessus Name: Slackware 13.1 / 13.37 / 14.0 / 14.1 / current : ruby (SSA:2013-350-06)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Port: 🔍

OpenVAS ID: 892809
OpenVAS Name: Debian Security Advisory DSA 2809-1 (ruby1.8 - several vulnerabilities
OpenVAS File: 🔍
OpenVAS Family: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

MetaSploit ID: rails_json_float_dos.rb
MetaSploit Name: Ruby on Rails JSON Processor Floating Point Heap Overflow DoS
MetaSploit File: 🔍

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Patch
Status: 🔍

Reaction Time: 🔍
Exposure Time: 🔍

Patch: Security Update 2014-002

Timelineinfo

06/12/2013 🔍
11/22/2013 +163 days 🔍
11/23/2013 +1 days 🔍
11/28/2013 +5 days 🔍
12/17/2013 +19 days 🔍
04/22/2014 +126 days 🔍
04/22/2014 +0 days 🔍
04/23/2014 +1 days 🔍
04/23/2014 +0 days 🔍
08/31/2024 +3783 days 🔍

Sourcesinfo

Vendor: apple.com

Advisory: HT6207
Status: Confirmed
Confirmation: 🔍
Coordinated: 🔍

CVE: CVE-2013-4164 (🔍)
GCVE (CVE): GCVE-0-2013-4164
GCVE (VulDB): GCVE-100-13039

OVAL: 🔍

SecurityFocus: 62442
Secunia: 55787
OSVDB: 100113
SecurityTracker: 1030133 - Apple OS X Multiple Bugs Let Remote Users Execute Arbitrary Code and Deny Service and Local Users Gain Elevated Privileges
Vulnerability Center: 42397 - Ruby Remote Denial of Service and Code Execution via Conversion of a String to a Floating Point Value, Medium

scip Labs: https://www.scip.ch/en/?labs.20150108
See also: 🔍

Entryinfo

Created: 04/23/2014 12:25
Updated: 08/31/2024 20:36
Changes: 04/23/2014 12:25 (53), 05/15/2017 14:49 (37), 06/17/2021 14:55 (3), 08/31/2024 20:36 (17)
Complete: 🔍
Cache ID: 216:E83:103

Be aware that VulDB is the high quality source for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Want to stay up to date on a daily basis?

Enable the mail alert feature now!