CVE-2026-48981
JSON

6.7medium

pam_usb: xmlReadFile flags=0 permits XXE network entity fetching in conf.c

Severity
6.7medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.11% (higher than 1% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

Description

pam_usb provides hardware authentication for Linux using ordinary removable media. In versions prior to 0.9.2, pam_usb calls xmlReadFile() with flags=0 when loading the configuration file, allowing libxml2 to process external entity references (XXE), potentially making outbound network connections or local file reads at XML parse time from the context of the authenticating process. The vulnerability requires the configuration file to contain crafted XML entity references. Since pam_usb.conf is root-owned, direct exploitation requires prior write access to the config, but the defence-in-depth impact is significant given that pam_usb.so runs in setuid contexts (sudo, su). This issue has been fixed in version 0.9.2.

Affected

Product or packageVersionsReported by
mcdope pam_usb< 0.9.2CVE List

Classification

CWE-611

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

pam_usb provides hardware authentication for Linux using ordinary removable media. In versions prior to 0.9.2, pam_usb calls xmlReadFile() with flags=0 when loading the configuration file, allowing libxml2 to process external entity references (XXE), potentially making outbound network connections or local file reads at XML parse time from the context of the authenticating process. The vulnerability requires the configuration file to contain crafted XML entity references. Since pam_usb.conf is root-owned, direct exploitation requires prior write access to the config, but the defence-in-depth impact is significant given that pam_usb.so runs in setuid contexts (sudo, su). This issue has been fixed in version 0.9.2.

NVD (es)

pam_usb proporciona autenticación de hardware para Linux utilizando medios extraíbles ordinarios. En versiones anteriores a la 0.9.2, pam_usb llama a xmlReadFile() con flags=0 al cargar el archivo de configuración, permitiendo a libxml2 procesar referencias a entidades externas (XXE), lo que podría permitir realizar conexiones de red salientes o lecturas de archivos locales en el momento del análisis XML desde el contexto del proceso de autenticación. La vulnerabilidad requiere que el archivo de configuración contenga referencias a entidades XML manipuladas. Dado que pam_usb.conf es propiedad de root, la explotación directa requiere acceso de escritura previo a la configuración, pero el impacto en la defensa en profundidad es significativo dado que pam_usb.so se ejecuta en contextos setuid (sudo, su). Este problema ha sido solucionado en la versión 0.9.2.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-48981 changed 2026-06-22CVE Terms of Use
NVDCVE-2026-48981 changed 2026-10-26Public domain