{"id":"CVE-2023-31124","state":"PUBLISHED","title":"AutoTools does not set CARES_RANDOM_FILE during cross compilation","description":"c-ares is an asynchronous resolver library. When cross-compiling c-ares and using the autotools build system, CARES_RANDOM_FILE will not be set, as seen when cross compiling aarch64 android.  This will downgrade to using rand() as a fallback which could allow an attacker to take advantage of the lack of entropy by not using a CSPRNG. This issue was patched in version 1.19.1.","publishedAt":"2023-05-25T21:09:31.881Z","updatedAt":"2025-02-13T16:49:43.787Z","severity":{"score":3.7,"label":"Low","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["c-ares c-ares"],"affected":[{"vendor":"c-ares","product":"c-ares","versions":[{"version":"< 1.19.1","status":"affected"}]}],"references":["https://github.com/c-ares/c-ares/security/advisories/GHSA-54xr-f67r-4pc4","https://github.com/c-ares/c-ares/releases/tag/cares-1_19_1","https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B5Z5XFNXTNPTCBBVXFDNZQVLLIE6VRBY/","https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UBFWILTA33LOSV23P44FGTQQIDRJHIY7/","https://security.gentoo.org/glsa/202310-09"],"weaknesses":["CWE-330"],"ingestedAt":"2026-10-29T20:06:00.499Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/31xxx/CVE-2023-31124.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2023-31124","state":"PUBLISHED","datePublished":"2023-05-25T21:09:31.881Z","dateUpdated":"2025-02-13T16:49:43.787Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2023-04-24T21:44:10.415Z"},"containers":{"cna":{"title":"AutoTools does not set CARES_RANDOM_FILE during cross compilation","descriptions":[{"lang":"en","value":"c-ares is an asynchronous resolver library. When cross-compiling c-ares and using the autotools build system, CARES_RANDOM_FILE will not be set, as seen when cross compiling aarch64 android.  This will downgrade to using rand() as a fallback which could allow an attacker to take advantage of the lack of entropy by not using a CSPRNG. This issue was patched in version 1.19.1."}],"affected":[{"vendor":"c-ares","product":"c-ares","versions":[{"version":"< 1.19.1","status":"affected"}]}],"references":[{"url":"https://github.com/c-ares/c-ares/security/advisories/GHSA-54xr-f67r-4pc4","name":"https://github.com/c-ares/c-ares/security/advisories/GHSA-54xr-f67r-4pc4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/c-ares/c-ares/releases/tag/cares-1_19_1","name":"https://github.com/c-ares/c-ares/releases/tag/cares-1_19_1","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B5Z5XFNXTNPTCBBVXFDNZQVLLIE6VRBY/"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UBFWILTA33LOSV23P44FGTQQIDRJHIY7/"},{"url":"https://security.gentoo.org/glsa/202310-09"}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":3.7,"baseSeverity":"LOW","confidentialityImpact":"NONE","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-330","lang":"en","description":"CWE-330: Use of Insufficiently Random Values","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2023-10-08T08:06:46.531Z"},"source":{"advisory":"GHSA-54xr-f67r-4pc4","discovery":"UNKNOWN"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/c-ares/c-ares/security/advisories/GHSA-54xr-f67r-4pc4","name":"https://github.com/c-ares/c-ares/security/advisories/GHSA-54xr-f67r-4pc4","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/c-ares/c-ares/releases/tag/cares-1_19_1","name":"https://github.com/c-ares/c-ares/releases/tag/cares-1_19_1","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B5Z5XFNXTNPTCBBVXFDNZQVLLIE6VRBY/","tags":["x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UBFWILTA33LOSV23P44FGTQQIDRJHIY7/","tags":["x_transferred"]},{"url":"https://security.gentoo.org/glsa/202310-09","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T14:45:25.746Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-01-16T18:36:12.341822Z","id":"CVE-2023-31124","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-01-16T18:36:25.449Z"}}]}}}