CVE-2025-40907
Fastcgi Fcgi vulnerability
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 products
Fcgi. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Fastcgi Fcgi runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- patch-diff.githubusercontent.com/raw/FastCGI-Archives/fcgi2/pull/74.patch · Patch
- www.openwall.com/lists/oss-security/2025/04/23/4 · Third Party Advisory
- www.synacktiv.com/en/publications/cve-2025-23016-exploiting-the-fastcgi-library · Exploit
- github.com/FastCGI-Archives/fcgi2/issues/67 · Exploit
- github.com/perl-catalyst/FCGI/issues/14 · Exploit
- github.com/FastCGI-Archives/fcgi2/releases/tag/2.4.5
- nvd.nist.gov/vuln/detail/CVE-2025-40907
- cve.org/CVERecord?id=CVE-2025-40907
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.