{"id":"CVE-2024-25629","state":"PUBLISHED","title":"c-ares out of bounds read in ares__read_line()","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.","publishedAt":"2024-02-23T14:52:24.967Z","updatedAt":"2025-02-13T17:40:51.243Z","severity":{"score":4.4,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["c-ares c-ares"],"affected":[{"vendor":"c-ares","product":"c-ares","versions":[{"version":"< 1.27.0","status":"affected"}]}],"references":["https://github.com/c-ares/c-ares/security/advisories/GHSA-mg26-v6qh-x48q","https://github.com/c-ares/c-ares/commit/a804c04ddc8245fc8adf0e92368709639125e183","https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GX37LFPFQ3T6FFMMFYQTEGIQXXN7F27U/","https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2P76QYINQNPEHUTEEDOUYIRZ2X6UVZ5K/","https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CSCMTSPDIE2UHU34TIXQQHZ6JTE3Y3VF/"],"weaknesses":["CWE-127"],"ingestedAt":"2026-10-29T20:07:10.607Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/25xxx/CVE-2024-25629.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-25629","state":"PUBLISHED","datePublished":"2024-02-23T14:52:24.967Z","dateUpdated":"2025-02-13T17:40:51.243Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-02-08T22:26:33.512Z"},"containers":{"cna":{"title":"c-ares out of bounds read in ares__read_line()","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"c-ares","product":"c-ares","versions":[{"version":"< 1.27.0","status":"affected"}]}],"references":[{"url":"https://github.com/c-ares/c-ares/security/advisories/GHSA-mg26-v6qh-x48q","name":"https://github.com/c-ares/c-ares/security/advisories/GHSA-mg26-v6qh-x48q","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/c-ares/c-ares/commit/a804c04ddc8245fc8adf0e92368709639125e183","name":"https://github.com/c-ares/c-ares/commit/a804c04ddc8245fc8adf0e92368709639125e183","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GX37LFPFQ3T6FFMMFYQTEGIQXXN7F27U/"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2P76QYINQNPEHUTEEDOUYIRZ2X6UVZ5K/"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CSCMTSPDIE2UHU34TIXQQHZ6JTE3Y3VF/"}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":4.4,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"HIGH","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-127","lang":"en","description":"CWE-127: Buffer Under-read","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2024-04-19T23:06:15.852Z"},"source":{"advisory":"GHSA-mg26-v6qh-x48q","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-25629","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-02-23T19:18:11.897134Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-06-04T17:35:14.331Z"}},{"title":"CVE Program Container","references":[{"url":"https://github.com/c-ares/c-ares/security/advisories/GHSA-mg26-v6qh-x48q","name":"https://github.com/c-ares/c-ares/security/advisories/GHSA-mg26-v6qh-x48q","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/c-ares/c-ares/commit/a804c04ddc8245fc8adf0e92368709639125e183","name":"https://github.com/c-ares/c-ares/commit/a804c04ddc8245fc8adf0e92368709639125e183","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GX37LFPFQ3T6FFMMFYQTEGIQXXN7F27U/","tags":["x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2P76QYINQNPEHUTEEDOUYIRZ2X6UVZ5K/","tags":["x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CSCMTSPDIE2UHU34TIXQQHZ6JTE3Y3VF/","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-01T23:44:09.807Z"}}]}}}