CVE-2019-9022

php: memcpy with negative length via crafted DNS response

Published Feb 22, 2019 CVSS 3.0 · 7.5 High EPSS 4.2% KEV · Not listed
Description
An issue was discovered in PHP 7.x before 7.1.26, 7.2.x before 7.2.14, and 7.3.x before 7.3.2. dns_get_record misparses a DNS response, which can allow a hostile DNS server to cause PHP to misuse memcpy, leading to read operations going past the buffer allocated for DNS data. This affects php_parserr in ext/standard/dns.c for DNS_CAA and DNS_ANY queries.

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-1741-1 php5 security update
Debian DSA Debian DSA DSA-4398-1 php7.0 security update
EUVD EUVD EUVD-2019-18409 An issue was discovered in PHP 7.x before 7.1.26, 7.2.x before 7.2.14, and 7.3.x before 7.3.2. dns_get_record misparses a DNS response, which can allow a hostile DNS server to cause PHP to misuse memcpy, leading to read operations going past the buffer allocated for DNS data. This affects php_parserr in ext/standard/dns.c for DNS_CAA and DNS_ANY queries.
Ubuntu USN Ubuntu USN USN-3902-1 PHP vulnerabilities
Ubuntu USN Ubuntu USN USN-3922-2 PHP vulnerabilities
Ubuntu USN Ubuntu USN USN-3922-3 PHP vulnerabilities
History

No history.

Weaknesses
  • CWE-119

    Improper Restriction of Operations within the Bounds of a Memory Buffer

  • CWE-125

    Out-of-bounds Read

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 4, 2024, 9:31 PM
Reserved
Feb 22, 2019, 12:00 AM
Status
Modified
Published
Feb 22, 2019, 11:29 PM
Modified
Jun 17, 2026, 2:42 AM
Severity
Low
Public date
Dec 29, 2018, 12:00 AM