CVE-2026-48981 - pam_usb: xmlReadFile flags=0 permits XXE network entity fetching in conf.c
Summary
This entry details a vulnerability found in the target system. The exploit was published on 2026-06-18 and has garnered 130 views from the community. It is classified under the remote category. Users are advised to review the source code in the Detail tab for technical specifics.
Zafiyet Ozet Bilgileri
Zafiyet Detayi (Turkce)
pam_usb, sıradan çıkarılabilir medyayı kullanarak Linux için donanım kimlik doğrulaması sağlar. 0.9.2'den önceki sürümlerde, pam_usb, konfigürasyon dosyasını yüklerken flags=0 ile xmlReadFile() öğesini çağırır ve libxml2'nin harici varlık referanslarını (XXE) işlemesine izin verir, potansiyel olarak kimlik doğrulama sürecinin bağlamından XML ayrıştırma zamanında giden ağ bağlantıları veya yerel dosya okumaları gerçekleştirir. Güvenlik açığı, yapılandırma dosyasının hazırlanmış XML varlık referansları içermesini gerektirir. Pam_usb.conf root'a ait olduğundan, doğrudan yararlanılması yapılandırmaya önceden yazma erişimi gerektirir, ancak pam_usb.so'nun setuid bağlamlarında (sudo, su) çalıştığı göz önüne alındığında derinlemesine savunma etkisi önemlidir. Bu sorun 0.9.2 sürümünde düzeltildi.
Orijinal Aciklama (Ingilizce)
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.
Download Source
Download the exploit source code for offline analysis and testing.
Download NowFile Size: ~3.6 KB | MD5: 4acb3fcb831bde9f07025593e716b041
No gallery images available.
No discussion yet.