Out-of-bounds read in c-ares - CVE-2017-1000381

 

Out-of-bounds read in c-ares - CVE-2017-1000381

Published: July 18, 2017 / Updated: January 6, 2025


Vulnerability identifier: #VU7563
CSH Severity: Medium
CVSS v4: 8.8 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2017-1000381
CWE-ID: CWE-125
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack and gain access to potentially sensitive data.

The vulnerability exists due to a boundary error in ares_parse_naptr_reply() function when processing NAPTR responses. A remote attacker can send a specially crafted DNS response to vulnerable application and perform denial of service attack or gain access to potentially sensitive data.


Affected software

c-ares
Arch Linux
Amazon Linux AMI
Fedora
Ubuntu
c-ares (Alpine package)
nodejs-current (Alpine package)
mingw-c-ares
c-ares
nodejs
BIG-IP

How to mitigate CVE-2017-1000381

Update to version 1.13.0.

c-ares (Alpine package) - update to 1.12.0-r1
nodejs-current (Alpine package) - update to 7.10.1-r0
mingw-c-ares - addressed in versions 1.13.0-1.el7, 1.13.0-1.fc25, 1.13.0-1.fc26
c-ares - addressed in versions 1.13.0-1.fc24, 1.13.0-1.fc25, 1.13.0-1.fc26
nodejs - addressed in versions 4.8.4-6.fc24, 6.11.1-1.el7, 6.11.1-1.fc25, 6.11.1-1.fc26

External References

Related Security Bulletins