CVE-2026-19954 Details
Description
Net::Whois::Raw versions before 2.99044 for Perl ship a pwhois command-line tool that queries WHOIS for the wrong domain for unicode domain names. pwhois encodes each non-ASCII label directly using Net::IDN::Punycode and prepends xn--. Apart from lowercasing ASCII and Cyrillic letters, it skips the IDNA mapping and normalization steps, so a label with other uppercase letters, or not in NFC, encodes to a different A-label than its IDNA form. For example, a label of U+00C9 followed by "cole" encodes to "xn--cole-pka" rather than "xn--cole-9oa". The Net::Whois::Raw library modules are not affected.
A vulnerability exists in the pwhois command-line tool included with Net::Whois::Raw versions prior to 2.99044 for Perl. This tool incorrectly queries WHOIS for certain Unicode domain names by misapplying Punycode encoding. It fails to properly normalize and map non-ASCII characters according to IDNA standards, leading to incorrect domain name representations. As a result, the tool may query the wrong domain, potentially allowing for domain spoofing.
Users can update to Net::Whois::Raw version 2.99044 or later, which includes the necessary fix. For those unable to update, it is recommended to manually convert Unicode domain names to their correct A-label form using the Net::IDN::Encode module before querying with pwhois.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 5, 2026CISA-ADP
Assessed Oct 6, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/regru/Net-Whois-Raw/issues/34 | CPANSec | Issue TrackingTechnical DescriptionVendor |
| https://github.com/regru/Net-Whois-Raw/pull/35 | CPANSec | Issue TrackingVendor |
| https://metacpan.org/release/NALOBIN/Net-Whois-Raw-2.99044/changes | CPANSec | Release NotesVendor |
| https://metacpan.org/release/PJCJ/Net-IDN-Encode-2.590-TRIAL/view/lib/Net/IDN/Punycode.pm#WARNING | CPANSec | Source Code |
| https://security.metacpan.org/patches/N/Net-Whois-Raw/2.99043/CVE-2026-19954-r1.patch | CPANSec | Broken Link |
| https://www.rfc-editor.org/rfc/rfc5891#section-5.2 | CPANSec | |
| http://www.openwall.com/lists/oss-security/2026/10/05/9 | CVE | Mailing List |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-176 | Improper Handling of Unicode Encoding | CPANSec |
Affected Products
| Product | Versions |
|---|---|
| Net::Whois::Raw pwhois | < 2.99044 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 6, 2026 | CVE Modified | CISA-ADP |
| Oct 5, 2026 | CVE Modified | CVE |
| Oct 5, 2026 | New CVE Received | CPANSec |
Volerion