Vulnerability · Published May 16, 2025 · Assigned by CPANSec

CVE-2025-40907FCGI versions 0.44 through 0.82, for Perl, include a vulnerable version of the FastCGI fcgi2 (aka fcgi) library

Medium 5.3

In plain English

A medium-severity integer overflow in FCGI from ETHER. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 52% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)0.7%top 47.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

FCGI versions 0.44 through 0.82, for Perl, include a vulnerable version of the FastCGI fcgi2 (aka fcgi) library. The included FastCGI library is affected by CVE-2025-23016, causing an integer overflow (and resultant heap-based buffer overflow) via crafted nameLen or valueLen values in data to the IPC socket. This occurs in ReadParams in fcgiapp.c.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:10perl-FCGI1:0.82-13.1.el10_0ALSA-2025:8636
AlmaLinux:8perl-FCGI1:0.78-12.module_el8.10.0+4013+e6a7e623ALSA-2025:8696
AlmaLinux:8perl-FCGI1:0.78-12.module_el8.10.0+4012+cd64a238ALSA-2025:8696
AlmaLinux:8perl-FCGI1:0.78-12.module_el8.10.0+4011+62915be2ALSA-2025:8696
AlmaLinux:9perl-FCGI1:0.79-8.1.el9_6ALSA-2025:8635
Debian:12libfcgi-perl0.79+ds-2DEBIAN-CVE-2025-40907
Debian:13libfcgi-perl0.79+ds-2DEBIAN-CVE-2025-40907
Debian:14libfcgi-perl0.79+ds-2DEBIAN-CVE-2025-40907
Rocky Linux:10perl-FCGI1:0.82-13.1.el10_0RLSA-2025:8636
Rocky Linux:8perl-FCGI1:0.78-12.module+el8.10.0+1990+7f517b07RLSA-2025:8696
Rocky Linux:8perl-FCGI1:0.78-12.module+el8.10.0+1990+99c43398RLSA-2025:8696
Rocky Linux:8perl-FCGI1:0.78-12.module+el8.10.0+1990+d30a9ea8RLSA-2025:8696
Rocky Linux:8perl-FCGI1:0.78-12.module+el8.10.0+1990+6591fbc7RLSA-2025:8696
Rocky Linux:9perl-FCGI1:0.79-8.1.el9_6RLSA-2025:8635

Affected products (as reported)

VendorProductVersions
ETHER FCGI 0.44 – through 0.82

Weakness: CWE-1395, CWE-190, CWE-122 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

References