{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "0.9.3"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "fixed": "0b179ed679d6522c6a571c5a8ae9bdc7edbad31f"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "0.9.3",
                "range": [
                  {
                    "fixed": "9993723a2836c7de547ea380af521ed5f5b51651"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "9993723a2836c7de547ea380af521ed5f5b51651"
            },
            {
              "fixed": "0b179ed679d6522c6a571c5a8ae9bdc7edbad31f"
            }
          ],
          "repo": "https://github.com/mcdope/pam_usb",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-ffx6-xjp6-x33g"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-807"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64666.json"
  },
  "details": "pam_usb provides hardware authentication for Linux using removable media. Prior to version 0.9.3, src/local.c reads XRDP_SESSION with plain getenv(3) at the head of pusb_local_login while every other env consumer in the same function uses secure_getenv(3). When pam_usb.so loads into a setuid PAM host, the calling user controls the environment passed in. Clearing XRDP_SESSION before invoking the host bypasses the explicit XRDP-deny rule. Other remote-detection signals (rmsvc, evdev, loginctl, utmp) may still catch the session, but the env-based detection alone is defeated. This issue has been patched in version 0.9.3.",
  "id": "CVE-2026-64666",
  "modified": "2026-11-12T02:31:02.318774081Z",
  "published": "2026-11-11T03:51:12.232Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/mcdope/pam_usb/releases/tag/0.9.3"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64666.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/mcdope/pam_usb/security/advisories/GHSA-ffx6-xjp6-x33g"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-64666"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/mcdope/pam_usb/issues/410"
    },
    {
      "type": "FIX",
      "url": "https://github.com/mcdope/pam_usb/commit/0b179ed679d6522c6a571c5a8ae9bdc7edbad31f"
    },
    {
      "type": "FIX",
      "url": "https://github.com/mcdope/pam_usb/pull/417"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "pam_usb: getenv() in pusb_local_login bypasses XRDP deny via env-var unset"
}