CVE-2025-40925CWE-338CWE-340

Starch versions 0.14 and earlier generate session ids insecurely

Critical · published September 20, 2025

CVSS v3.1
9.1
EPSS
0%
Percentile
28.5
In the wild
Unconfirmed
What it is

🚨 Session IDs generated by Starch versions 0.14 and earlier are like poorly written passwords — insecure and easy to guess! 🔥 Think of session IDs as unique concert tickets for a popular show. If the ticket numbers are predictable, anyone could sneak in claiming to have a valid ticket, accessing everything without a proper check! This vulnerability could allow attackers to gain unauthorized access to a system by guessing session IDs, leading to a total takeover of user accounts and sensitive data. It’s like someone getting backstage access at a concert without any verification, causing complete chaos!

Put simply

Think of session IDs as unique concert tickets for a popular show. If the ticket numbers are predictable, anyone could sneak in claiming to have a valid ticket, accessing everything without a proper check! The default session ID generator in Starch uses a SHA-1 hash combined with weak randomness from the built-in rand function and predictable seeds like the process ID and epoch time. This makes the session IDs easily guessable, compromising security.

What to do

This vulnerability could allow attackers to gain unauthorized access to a system by guessing session IDs, leading to a total takeover of user accounts and sensitive data. It’s like someone getting backstage access at a concert without any verification, causing complete chaos! Upgrade Starch to version 0.15 or later, which addresses this vulnerability. Additionally, implement a secure random number generator for session ID creation to enhance protection. Don’t forget to audit your existing sessions! You’ve got this! Fixing this vulnerability is straightforward with the right updates — let’s keep that data safe! 🛡️

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.00360 · 28.5th percentile
Weaknesses
CWE-338 · Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG); CWE-340 · Generation of Predictable Numbers or Identifiers
Published
2025-09-20T12:31Z
EPSS history
Timeline
  • 20 SEP 12:31Z
    Starch versions 0.14 and earlier generate session ids insecurely
    cvelistv5