Intel

AIKIDO-2025-10939

cgi is vulnerable to Use of Weak Hash

Use of Weak Hash Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Dec 15, 2025

72

High Risk

This Affects:

RUBYcgi
0.1.0 - 0.5.0
Fixed in 0.5.1
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable due to the use of MD5, a weak cryptographic hash function, for hashing session IDs in the new_store_file method, which allows attackers to exploit MD5's known collision vulnerabilities to generate different session IDs that hash to the same value as legitimate ones, potentially leading to session hijacking or unauthorized access to session files. An attacker could craft malicious session IDs that collide with targeted ones, enabling authentication bypass or access to other users' sessions.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

cgi is vulnerable to Use of Weak Hash in versions 0.1.0 - 0.5.0.

How to fix this

Upgrade the cgi library to the patch version.