PHP 5.6.0 DNS TXT Record Parser ext/standard/dns.c dns_get_record memory corruption
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 6.4 | $0-$5k | 0.00 |
Summary
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.
Details
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
Product
Type
Name
Version
License
Website
- Product: https://www.php.org/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 7.3VulDB Meta Temp Score: 6.4
VulDB Base Score: 7.3
VulDB Temp Score: 6.4
VulDB Vector: 🔍
VulDB Reliability: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Class: Memory corruptionCWE: CWE-119
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Yes
Availability: 🔍
Status: Unproven
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
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 Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: PatchStatus: 🔍
Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍
Patch: Commit b34d784
Timeline
06/11/2014 🔍06/12/2014 🔍
06/12/2014 🔍
06/12/2014 🔍
06/13/2014 🔍
06/17/2014 🔍
06/18/2014 🔍
06/26/2014 🔍
06/22/2021 🔍
Sources
Product: php.orgAdvisory: 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: 🔍
Entry
Created: 06/13/2014 10:44Updated: 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
No comments yet. Languages: en.
Please log in to comment.