Lucene search

K
archlinuxArchLinuxASA-201609-31
HistorySep 30, 2016 - 12:00 a.m.

[ASA-201609-31] c-ares: arbitrary code execution

2016-09-3000:00:00
security.archlinux.org
17

7.5 High

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:P/A:P

9.8 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

0.045 Low

EPSS

Percentile

92.5%

Arch Linux Security Advisory ASA-201609-31

Severity: High
Date : 2016-09-30
CVE-ID : CVE-2016-5180
Package : c-ares
Type : arbitrary code execution
Remote : Yes
Link : https://wiki.archlinux.org/index.php/CVE

Summary

The package c-ares before version 1.12.0-1 is vulnerable to arbitrary
code execution.

Resolution

Upgrade to 1.12.0-1.

pacman -Syu โ€œc-ares>=1.12.0-1โ€

The problem has been fixed upstream in version 1.12.0.

Workaround

None.

Description

When a string is passed in to ares_create_query or ares_mkquery and
uses an escaped trailing dot, like โ€œhello.โ€, c-ares calculates the
string length wrong and subsequently writes outside of the the
allocated buffer with one byte. The wrongly written byte is the least
significant byte of the โ€˜dnsclassโ€™ argument; most commonly 1.

Impact

A remote attacker is able to perform a denial of service attack or
possibly execute arbitrary code under certain circumstances.

References

https://c-ares.haxx.se/adv_20160929.html
https://c-ares.haxx.se/CVE-2016-5180.patch
https://access.redhat.com/security/cve/CVE-2016-5180

OSVersionArchitecturePackageVersionFilename
ArchLinuxanyanyc-ares<ย 1.12.0-1UNKNOWN

7.5 High

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:P/A:P

9.8 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

0.045 Low

EPSS

Percentile

92.5%