Summary
IO::Socket::SSL::PublicSuffix for Perl, in versions through 2.099, allows code injection when update_self_from_url rewrites the module's source using a fetched list. It is tracked as CVE-2026-129892, with critical severity and a CVSS 3.1 score of 9.8.
What happened
When updating from a URL, update_self_from_url rewrites the module's source: it copies the content down to the built-in list's data block (heredoc) and appends each fetched line below it. Nothing checks that a line looks like a domain. A line that is not a comment loses only what follows a "//" and its trailing whitespace, so a line containing the end-of-block marker is appended as it stands and closes the data block in the rewritten file. Every fetched line after it is then interpreted as Perl code. It is classified as CWE-94. The CVSS 3.1 score is 9.8 (source: ADP:CISA-ADP), with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
Why it matters
According to the description, arbitrary Perl code runs in every process that loads IO::Socket::SSL, which loads this module unconditionally, until the file is reinstalled. For this to happen, the attacker must control the fetched list, either through the cleartext default URL or a caller-supplied one, and the updater must run with write access to the installed module. The source does not report known active exploitation: CISA's KEV catalog does not list it as exploited for this case.
Affected products and versions
Package IO-Socket-SSL (Perl): versions <= 2.099 (last affected version: 2.099). The source does not state a fixed version.
| Product | Versions | Fixed in |
|---|---|---|
| IO-Socket-SSL | <= 2.099 | — |
Action recommended by the source
The source does not state a fixed version or an explicit mitigation. Its references include a patch in the project repository (commit 6e756466cd7005bcdb2e0e18eb140f33a2355c78 at github.com/noxxi/p5-io-socket-ssl) and a technical description in the published source on MetaCPAN; readers should check with the vendor for the release that includes the fix.
Sources and references
- https://metacpan.org/release/SULLR/IO-Socket-SSL-2.099/source/lib/IO/Socket/SSL/PublicSuffix.pm — CVE Program
- https://github.com/noxxi/p5-io-socket-ssl/commit/6e756466cd7005bcdb2e0e18eb140f33a2355c78.patch — CVE Program
Weaknesses (CWE): CWE-94
Relevant change history
Published
Advisory published.