PHP 5.6.0 DNS TXT Record Parser ext/standard/dns.c dns_get_record 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.
6.4$0-$5k0.00

Summaryinfo

A vulnerability was found in PHP 5.6.0. It has been declared as critical. Affected by this issue is the function dns_get_record of the file ext/standard/dns.c of the component DNS TXT Record Parser. Such manipulation leads to memory corruption. This vulnerability is documented as CVE-2014-4049. There is not any exploit available. A patch should be applied to remediate this issue.

Detailsinfo

A vulnerability was found in PHP 5.6.0 (Programming Language Software) and classified as critical. Affected by this issue is the function dns_get_record of the file ext/standard/dns.c of the component DNS TXT Record Parser. The manipulation with an unknown input leads to a memory corruption vulnerability. Using CWE to declare the problem leads to 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. Impacted is confidentiality, integrity, and availability.

The weakness was released 06/12/2014 by Stefan Esser (i0n1c) with SektionEins GmbH as Fix potential segfault in dns_get_record() as confirmed git commit (GIT Repository). The advisory is available at github.com. The public release was coordinated with the vendor. This vulnerability is handled as CVE-2014-4049 since 06/12/2014. The exploitation is known to be difficult. The attack may be launched remotely. No form of authentication is required for exploitation. Technical details are known, but there is no available exploit. The following code is the reason for this vulnerability:

while (ll < dlen) {
n = cp[ll];

memcpy(tp + ll , cp + ll + 1, n);
add_next_index_stringl(entries, cp + ll + 1, n, 1);
ll = ll + n + 1;

The vulnerability scanner Nessus provides a plugin with the ID 76230 (openSUSE Security Update : php5 (openSUSE-SU-2014:0841-1)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family SuSE Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 185089 (HP-UX Apache Server Suite Multiple Vulnerabilities (HPSBUX03102)).

Applying the patch Commit b34d784 is able to eliminate this problem. The bugfix is ready for download at github.com. A possible mitigation has been published immediately after the disclosure of the vulnerability. The vulnerability will be addressed with the following lines of code:

if ((ll + n) >= dlen) {
   // Invalid chunk length, truncate
   n = dlen - (ll + 1);
}

The vulnerability is also documented in the databases at X-Force (93769), Tenable (76230), SecurityFocus (BID 68007†) and Secunia (SA59270†). seclists.org is providing further details. Entries connected to this vulnerability are available at VDB-13383, VDB-13384, VDB-13386 and VDB-13387. If you want to get best quality of vulnerability data, you may have to visit VulDB.

Affected

  • Fedora Linux

Productinfo

Type

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 7.3
VulDB Meta Temp Score: 6.4

VulDB Base Score: 7.3
VulDB Temp Score: 6.4
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: 🔍
Status: Unproven

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 76230
Nessus Name: openSUSE Security Update : php5 (openSUSE-SU-2014:0841-1)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍
Nessus Port: 🔍

OpenVAS ID: 60017
OpenVAS Name: SuSE Update for PHP5 SUSE-SU-2014:0873-2 (PHP5)
OpenVAS File: 🔍
OpenVAS Family: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Threat Intelligenceinfo

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

Countermeasuresinfo

Recommended: Patch
Status: 🔍

Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍

Patch: Commit b34d784

Timelineinfo

06/11/2014 🔍
06/12/2014 +1 days 🔍
06/12/2014 +0 days 🔍
06/12/2014 +0 days 🔍
06/13/2014 +1 days 🔍
06/17/2014 +4 days 🔍
06/18/2014 +1 days 🔍
06/26/2014 +8 days 🔍
06/22/2021 +2553 days 🔍

Sourcesinfo

Product: php.org

Advisory: Fix potential segfault in dns_get_record()
Researcher: Stefan Esser (i0n1c)
Organization: SektionEins GmbH
Status: Confirmed
Confirmation: 🔍
Coordinated: 🔍

CVE: CVE-2014-4049 (🔍)
GCVE (CVE): GCVE-0-2014-4049
GCVE (VulDB): GCVE-100-13586

OVAL: 🔍
IAVM: 🔍

X-Force: 93769 - PHP DNS TXT buffer overflow, High Risk
SecurityFocus: 68007 - PHP DNS TXT Record Handling Heap Buffer Overflow Vulnerability
Secunia: 59270 - Debian update for php5, Less Critical
SecurityTracker: 1030435

Misc.: 🔍
See also: 🔍

Entryinfo

Created: 06/13/2014 10:44
Updated: 06/22/2021 20:35
Changes: 06/13/2014 10:44 (97), 04/30/2019 07:11 (1), 06/22/2021 20:35 (4)
Complete: 🔍
Cache ID: 216:79B:103

Discussion

No comments yet. Languages: en.

Please log in to comment.

Interested in the pricing of exploits?

See the underground prices here!