CVE-2024-25629
Security vulnerability in c-ares
How to Fix This Vulnerability
No fixed version has been published yet. Apply the mitigations below.
Remediation Steps
- 1Review and audit affected systems for potential exploitation
- 2Implement additional security controls if immediate patching is not possible
- 3Monitor for suspicious activity related to this vulnerability
Mitigation Strategies
- Network SegmentationMedium
Isolate affected systems from untrusted networks until patching is complete
- Monitoring and DetectionMedium
Implement enhanced monitoring for exploitation attempts and unusual behavior
Description
c-ares is a C library for asynchronous DNS requests. ares__read_line() is used to parse local configuration files such as /etc/resolv.conf, /etc/nsswitch.conf, the HOSTALIASES file, and if using a c-ares version prior to 1.27.0, the /etc/hosts file. If any of these configuration files has an embedded NULL character as the first character in a new line, it can lead to attempting to read memory prior to the start of the given buffer which may result in a crash. This issue is fixed in c-ares 1.27.0. No known workarounds exist.
c-ares is a C library for asynchronous DNS requests. ares__read_line() is used to parse local configuration files such as /etc/resolv.conf, /etc/nsswitch.conf, the HOSTALIASES file, and if using a c-ares version prior to 1.27.0, the /etc/hosts file. If any of these configuration files has an embedded NULL character as the first character in a new line, it can lead to attempting to read memory prior to the start of the given buffer which may result in a crash. This issue is fixed in c-ares 1.27.0. No known workarounds exist. This vulnerability involves weaknesses in
Impact Assessment
This medium-severity vulnerability could be exploited under certain conditions to compromise security controls or access sensitive information. Should be addressed in a timely manner.
Attack Characteristics
- Attack Vector
- LOCAL
- Complexity
- LOW
- Privileges Required
- HIGH
- User Interaction
- NONE
CVSS v3.1 Metrics Breakdown
- attack Vector
- LOCAL
- attack Complexity
- LOW
- privileges Required
- HIGH
- user Interaction
- NONE
- scope
- Unchanged
- confidentiality Impact
- Medium
- integrity Impact
- Medium
- availability Impact
- Medium
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:HVulnerability Timeline
- 0001-01-01T00:00:00ZVulnerability publishedpublished