CVE-2025-40907 Details
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.
A vulnerability exists in the FastCGI FCGI library, specifically in versions 0.44 through 0.82, for Perl. The issue arises from an integer overflow in the ReadParams function of fcgiapp.c, where crafted nameLen or valueLen values can be sent through the IPC socket. This overflow leads to a heap-based buffer overflow, allowing for potential exploitation. FastCGI is commonly used in environments with limited security protections, such as embedded systems, which could exacerbate the risk of exploitation.
Users can upgrade to FastCGI library version 2.4.5, which addresses this vulnerability by adding proper checks to prevent the integer overflow. Instructions for updating can be found in the release notes on the FastCGI GitHub repository.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 16, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/FastCGI-Archives/fcgi2/issues/67 | CPANSec | ExploitIssue Tracking |
| https://github.com/FastCGI-Archives/fcgi2/releases/tag/2.4.5 | CPANSec | Release Notes |
| https://github.com/perl-catalyst/FCGI/issues/14 | CPANSec | ExploitIssue Tracking |
| https://patch-diff.githubusercontent.com/raw/FastCGI-Archives/fcgi2/pull/74.patch | CPANSec | Patch |
| https://www.synacktiv.com/en/publications/cve-2025-23016-exploiting-the-fastcgi-library | CPANSec | ExploitThird Party Advisory |
| http://www.openwall.com/lists/oss-security/2025/04/23/4 | CPANSec | Mailing ListThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-190 | Integer Overflow or Wraparound | [email protected] |
| CWE-122 | Heap-based Buffer Overflow | CPANSec |
| CWE-190 | Integer Overflow or Wraparound | CPANSec |
Affected Products
| Product | Versions |
|---|---|
| fastcgi fcgi | >= 0.44, <= 0.82 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | CPANSec |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 29, 2025 | Modified Analysis | [email protected] |
| Sep 5, 2025 | CVE Modified | CPANSec |
| Jul 2, 2025 | Initial Analysis | [email protected] |
| May 16, 2025 | CVE Modified | CISA-ADP |
| May 16, 2025 | New CVE Received | CPANSec |