<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Perl on Kuldeep Pisda</title><link>https://kdpisda.in/tag/perl/</link><description>Recent content in Perl on Kuldeep Pisda</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Thu, 26 Nov 2026 08:30:00 +0530</lastBuildDate><atom:link href="https://kdpisda.in/tag/perl/index.xml" rel="self" type="application/rss+xml"/><item><title>Your Crypt::JWT HS256 Verifier Also Decrypts PBES2 Tokens, and the Fix Still Lets One Cost Five Seconds</title><link>https://kdpisda.in/crypt-jwt-hs256-verifier-runs-pbes2-p2c-cpu-cve-2026-136796/</link><pubDate>Thu, 26 Nov 2026 08:30:00 +0530</pubDate><guid>https://kdpisda.in/crypt-jwt-hs256-verifier-runs-pbes2-p2c-cpu-cve-2026-136796/</guid><description>&lt;p&gt;The CPAN Security Group published &lt;a href="https://www.openwall.com/lists/oss-security/2026/11/25/11"&gt;four CVEs for Crypt::JWT&lt;/a&gt; on November 25. One of them, CVE-2026-136796, applies to applications that never chose to use encryption at all. If your Perl service checks HS256 tokens with &lt;code&gt;decode_jwt(token =&amp;gt; $t, key =&amp;gt; $secret)&lt;/code&gt;, it will also accept an encrypted token, read a PBKDF2 iteration count from that token&amp;rsquo;s header, and run the key derivation before anything about the token has been authenticated.&lt;/p&gt;
&lt;p&gt;The fixed release, 0.038, caps that count at 3,000,000. I measured what a token at the cap costs: about five seconds of CPU on one core. The upgrade turns an unbounded cost into a large bounded one. One argument to &lt;code&gt;decode_jwt&lt;/code&gt; turns it into nothing, and that argument already works on the old versions.&lt;/p&gt;</description></item></channel></rss>