CVE-2026-75870: CWE-1394 Use of Default Cryptographic Key
Punk versions before 0.18 for Perl have a vulnerability where session cookies can be forged due to the use of an empty default HMAC key when no secret is provided. The session mechanism does not enforce or warn about the absence of a secret, resulting in signing and verifying cookies with a zero-length HMAC-SHA256 key. This allows an attacker who understands the cookie format to create valid session cookies with arbitrary contents, such as user identifiers or roles, without detection.
AI Analysis
Technical Summary
This vulnerability (CVE-2026-75870) affects Punk versions prior to 0.18 for Perl. When a session is declared without specifying a secret, the session keyword uses an empty string as the default HMAC key for signing and verifying cookies. Because the system neither requires nor warns about the missing secret, cookies are signed with a zero-length HMAC-SHA256 key. An attacker who knows the cookie format can forge session cookies offline, potentially impersonating users or escalating privileges by injecting arbitrary session data. The misconfiguration is not detectable at runtime since cookies appear well-formed and sessions function normally.
Potential Impact
An attacker can forge session cookies with arbitrary contents, such as user identifiers or roles, enabling potential unauthorized access or privilege escalation. The vulnerability arises from the use of a default empty cryptographic key, which effectively disables the integrity protection of session cookies. There is no runtime indication of the misconfiguration, making detection difficult.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, ensure that a strong secret is always explicitly configured when declaring sessions to avoid the use of the empty default HMAC key. Avoid running vulnerable versions without specifying a secret to prevent session cookie forgery.
CVE-2026-75870: CWE-1394 Use of Default Cryptographic Key
Description
Punk versions before 0.18 for Perl have a vulnerability where session cookies can be forged due to the use of an empty default HMAC key when no secret is provided. The session mechanism does not enforce or warn about the absence of a secret, resulting in signing and verifying cookies with a zero-length HMAC-SHA256 key. This allows an attacker who understands the cookie format to create valid session cookies with arbitrary contents, such as user identifiers or roles, without detection.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability (CVE-2026-75870) affects Punk versions prior to 0.18 for Perl. When a session is declared without specifying a secret, the session keyword uses an empty string as the default HMAC key for signing and verifying cookies. Because the system neither requires nor warns about the missing secret, cookies are signed with a zero-length HMAC-SHA256 key. An attacker who knows the cookie format can forge session cookies offline, potentially impersonating users or escalating privileges by injecting arbitrary session data. The misconfiguration is not detectable at runtime since cookies appear well-formed and sessions function normally.
Potential Impact
An attacker can forge session cookies with arbitrary contents, such as user identifiers or roles, enabling potential unauthorized access or privilege escalation. The vulnerability arises from the use of a default empty cryptographic key, which effectively disables the integrity protection of session cookies. There is no runtime indication of the misconfiguration, making detection difficult.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, ensure that a strong secret is always explicitly configured when declaring sessions to avoid the use of the empty default HMAC key. Avoid running vulnerable versions without specifying a secret to prevent session cookie forgery.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- CPANSec
- Date Reserved
- 2026-08-18T11:59:49.642Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a89a9b5acd9273b491a2938
Added to database: 08/22/2026, 13:52:53 UTC
Last enriched: 08/22/2026, 14:07:06 UTC
Last updated: 08/22/2026, 14:12:02 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.