{
  "id": "CVE-2026-64666",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-64666",
  "published_at": "2026-11-11T03:51:12.232Z",
  "title": "pam_usb: getenv() in pusb_local_login bypasses XRDP deny via env-var unset",
  "vendor": "mcdope",
  "product": "pam_usb",
  "cvss": {
    "score": 7.1,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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.",
  "cwe": "CWE-807",
  "cvss_by_source": {
    "cna": 7.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "mcdope",
        "product": "pam_usb",
        "ranges": [
          "\u003c 0.9.3"
        ],
        "fixed_in": [
          "0.9.3"
        ]
      }
    ],
    "upgrade": [
      "Upgrade pam_usb to 0.9.3 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/mcdope/pam_usb/security/advisories/GHSA-ffx6-xjp6-x33g"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/mcdope/pam_usb/pull/417"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/mcdope/pam_usb/commit/0b179ed679d6522c6a571c5a8ae9bdc7edbad31f"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/mcdope/pam_usb/releases/tag/0.9.3"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
