CVE-2025-40907

Public Exploit
FCGI versions 0.44 through 0.82, for Perl, include a vulnerable version of the FastCGI fcgi2 (aka fcgi) library

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.

Remediation

Workaround:

  • Updating to version 2.4.5 of the included fcgi2 library and rebuilding the Perl module will protect against the vulnerability. We also recommend limiting potential remote access to the FastCGI socket by declaring it as a UNIX socket.

Category

5.3
CVSS
Severity: Medium
CVSS 3.1 •
EPSS 0.08%
Third-Party Advisory openwall.com Third-Party Advisory synacktiv.com
Affected: ETHER FCGI
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2025-40907?
CVE-2025-40907 has been scored as a medium severity vulnerability.
How to fix CVE-2025-40907?
As a workaround for remediating CVE-2025-40907: Updating to version 2.4.5 of the included fcgi2 library and rebuilding the Perl module will protect against the vulnerability. We also recommend limiting potential remote access to the FastCGI socket by declaring it as a UNIX socket.
Is CVE-2025-40907 being actively exploited in the wild?
It is possible that CVE-2025-40907 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2025-40907?
CVE-2025-40907 affects ETHER FCGI.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.