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

- Severity: Medium 5.3 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.68%, higher than 53% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 3 links below, marked "exploit"
- Published: 2025-05-16T13:03:02.774Z
- Modified: 2026-06-17T09:22:16.023Z
- Weaknesses: CWE-122, CWE-190, CWE-1395
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: CPANSec

## 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.

(As written by CVE List.)

## Affected

- FCGI: from 0.44 up to 0.82
- fastcgi fcgi: from 0.44 up to 0.82

## References

- <https://github.com/FastCGI-Archives/fcgi2/issues/67> (exploit, issue-tracking)
- <https://www.synacktiv.com/en/publications/cve-2025-23016-exploiting-the-fastcgi-library> (exploit, technical-description, third-party-advisory)
- <https://github.com/perl-catalyst/FCGI/issues/14> (exploit, issue-tracking)
- <http://www.openwall.com/lists/oss-security/2025/04/23/4> (mailing-list, third-party-advisory)
- <https://github.com/FastCGI-Archives/fcgi2/releases/tag/2.4.5> (patch, release-notes)
- <https://patch-diff.githubusercontent.com/raw/FastCGI-Archives/fcgi2/pull/74.patch> (patch)

## Sources

- CVE List: [CVE-2025-40907](https://www.cve.org/CVERecord?id=CVE-2025-40907), CVE Terms of Use, modified 2025-09-05
- NVD: [CVE-2025-40907](https://nvd.nist.gov/vuln/detail/CVE-2025-40907), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-40907 · Whole record: https://cve.day/CVE-2025-40907.json · Rebuilt by cve.day 2026-11-25T22:58:58.128Z
