2025-10-31 8:48CVE-2025-62232apache
PUBLISHED5.2CWE-532

Apache APISIX: basic-auth logs plaintext credentials at info level

Sensitive data exposure via logging in basic-auth leads to plaintext usernames and passwords written to error logs and forwarded to log sinks when log level is INFO/DEBUG. This creates a high risk of credential compromise through log access.

It has been fixed in the following commit:  https://github.com/apache/apisix/pull/12629

Users are recommended to upgrade to version 3.14, which fixes this issue.

Problem type

Affected products

Apache Software Foundation

Apache APISIX

< 3.14 - AFFECTED

References

GitHub Security Advisories

GHSA-3h2w-68px-r4v5

Sensitive data exposure via logging in basic-auth leads to plaintext usernames and passwords...

https://github.com/advisories/GHSA-3h2w-68px-r4v5

Sensitive data exposure via logging in basic-auth leads to plaintext usernames and passwords written to error logs and forwarded to log sinks when log level is INFO/DEBUG. This creates a high risk of credential compromise through log access. It has been fixed in the following commit:  https://github.com/apache/apisix/pull/12629 Users are recommended to upgrade to version 3.14, which fixes this issue.

JSON source

Click to expand
{
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "cveMetadata": {
    "cveId": "CVE-2025-62232",
    "assignerOrgId": "f0158376-9dc2-43b6-827c-5f631a4d8d09",
    "assignerShortName": "apache",
    "dateUpdated": "2025-10-31T13:58:14.534Z",
    "dateReserved": "2025-10-09T07:45:57.637Z",
    "datePublished": "2025-10-31T08:48:23.592Z",
    "state": "PUBLISHED"
  },
  "containers": {
    "cna": {
      "providerMetadata": {
        "orgId": "f0158376-9dc2-43b6-827c-5f631a4d8d09",
        "shortName": "apache",
        "dateUpdated": "2025-10-31T08:48:23.592Z"
      },
      "title": "Apache APISIX: basic-auth logs plaintext credentials at info level",
      "descriptions": [
        {
          "lang": "en",
          "value": "Sensitive data exposure via logging in basic-auth leads to plaintext usernames and passwords written to error logs and forwarded to log sinks when log level is INFO/DEBUG. This creates a high risk of credential compromise through log access.\nIt has been fixed in the following commit:  https://github.com/apache/apisix/pull/12629 \nUsers are recommended to upgrade to version 3.14, which fixes this issue.",
          "supportingMedia": [
            {
              "type": "text/html",
              "base64": false,
              "value": "Sensitive data exposure via logging in basic-auth leads to plaintext usernames and passwords written to error logs and forwarded to log sinks when log level is INFO/DEBUG. This creates a high risk of credential compromise through log access.<br>It has been fixed in the following commit:&nbsp;<a target=\"_blank\" rel=\"nofollow\" href=\"https://github.com/apache/apisix/pull/12629\">https://github.com/apache/apisix/pull/12629</a><br>Users are recommended to upgrade to version 3.14, which fixes this issue."
            }
          ]
        }
      ],
      "affected": [
        {
          "vendor": "Apache Software Foundation",
          "product": "Apache APISIX",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "1.0",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "3.14"
            }
          ]
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "lang": "en",
              "description": "CWE-532 Insertion of Sensitive Information into Log File",
              "cweId": "CWE-532",
              "type": "CWE"
            }
          ]
        }
      ],
      "references": [
        {
          "url": "https://lists.apache.org/thread/32hdgh570btfhg02hfc7p7ckf9v83259",
          "tags": [
            "vendor-advisory"
          ]
        }
      ],
      "metrics": [
        {}
      ],
      "credits": [
        {
          "lang": "en",
          "value": "Mapta / BugBunny_ai",
          "type": "reporter"
        }
      ]
    },
    "adp": [
      {
        "providerMetadata": {
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE",
          "dateUpdated": "2025-10-31T09:05:32.553Z"
        },
        "title": "CVE Program Container",
        "references": [
          {
            "url": "http://www.openwall.com/lists/oss-security/2025/10/30/4"
          }
        ]
      },
      {
        "providerMetadata": {
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP",
          "dateUpdated": "2025-10-31T13:58:14.534Z"
        },
        "title": "CISA ADP Vulnrichment",
        "metrics": [
          {
            "cvssV3_1": {
              "version": "3.1",
              "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
              "attackVector": "NETWORK",
              "attackComplexity": "LOW",
              "privilegesRequired": "NONE",
              "userInteraction": "NONE",
              "scope": "UNCHANGED",
              "confidentialityImpact": "HIGH",
              "integrityImpact": "NONE",
              "availabilityImpact": "NONE",
              "baseScore": 7.5,
              "baseSeverity": "HIGH"
            }
          },
          {}
        ]
      }
    ]
  }
}

Mitre source

https://cveawg.mitre.org/api/cve/CVE-2025-62232