Skip to content
Heist/ feed
Back to feed
Low

AutoTools does not set CARES_RANDOM_FILE during cross compilation

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2023-31124
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 13:44 UTC · Revision 1

Source evidence

AutoTools does not set CARES_RANDOM_FILE during cross compilation

core-osv · Original source

Published 25 May 2023, 21:09 UTC

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.

osv:CVE-2023-31124
Complete source record
{
  "id": "b2bcf6d6ef45147cac8d4f6032d8afce95d0705c5a5e981478f3eff26cdf621e",
  "url": "https://osv.dev/vulnerability/CVE-2023-31124",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "AutoTools does not set CARES_RANDOM_FILE during cross compilation",
    "summary": "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.",
    "evidence": "osv:CVE-2023-31124",
    "products": [],
    "severity": "low",
    "structured": {
      "id": "CVE-2023-31124",
      "aliases": [
        "CVE-2023-31124",
        "GHSA-54xr-f67r-4pc4"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/c-ares/c-ares",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "6360e96b5cf8e5980c887ce58ef727e53d77243a"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "1.19.1"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "6360e96b5cf8e5980c887ce58ef727e53d77243a"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "cares-1_19_1"
                  },
                  {
                    "cpe": "cpe:2.3:a:c-ares_project:c-ares:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "1.19.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "cares-1_19_0",
            "cares-1_18_1",
            "cares-1_18_0",
            "cares-1_17_2",
            "cares-1_17_1",
            "c-ares-1_17_0",
            "cares-1_16_1",
            "cares-1_16_0",
            "cares-1_15_0",
            "cares-1_14_0",
            "cares-1_13_0",
            "cares-1_12_0",
            "cares-1_11_0",
            "cares-1_11_0-rc1",
            "cares-1_10_0",
            "cares-1_9_1",
            "cares-1_9_0",
            "cares-1_8_0",
            "cares-1_7_5",
            "cares-1_7_4",
            "cares-1_7_3",
            "cares-1_7_2",
            "cares-1_7_1",
            "curl-7_20_0",
            "cares-1_7_0",
            "curl-7_19_7",
            "curl-7_19_6",
            "curl-7_19_5",
            "curl-7_19_4",
            "curl-7_19_3",
            "cares-1_6_0",
            "curl-7_19_2",
            "curl-7_19_0",
            "cares-1_5_3",
            "curl-7_18_2",
            "cares-1_5_2",
            "curl-7_18_1",
            "curl-7_18_0",
            "cares-1_5_1",
            "cares-1_5_0",
            "curl-7_17_1",
            "curl-7_17_0",
            "curl-7_16_4",
            "curl-7_16_3",
            "cares-1_4_0",
            "curl-7_16_2",
            "curl-7_16_1",
            "cares-1_3_2",
            "curl-7_16_0",
            "curl-7_15_6-prepipeline",
            "curl-7_15_5",
            "cares-1_3_1",
            "curl-7_15_4",
            "curl-7_15_3",
            "curl-7_15_1",
            "curl-7_15_0",
            "curl-7_14_1",
            "curl-7_14_0",
            "curl-7_13_2",
            "curl-7_13_1",
            "curl-7_13_0",
            "cares-1_2_1",
            "curl-7_12_2",
            "curl-7_12_1",
            "curl-7_12_0",
            "c-ares-1_2_0",
            "curl-7_11_1",
            "cares-1_1_0",
            "curl-7_11_0",
            "curl-7_10_8"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-31124.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:36.196643025Z",
      "provider": "osv",
      "references": [
        "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://github.com/CVEProject/cvelistV5/tree/main/cves/2023/31xxx/CVE-2023-31124.json",
        "https://github.com/c-ares/c-ares/security/advisories/GHSA-54xr-f67r-4pc4",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-31124",
        "https://security.gentoo.org/glsa/202310-09"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-330"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/31xxx/CVE-2023-31124.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-31124",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 503264,
  "published_at": "2023-05-25T21:09:31.881+00:00"
}