{"id":"CVE-2025-40907","state":"PUBLISHED","title":"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.\n\nThe 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.","publishedAt":"2025-05-16T13:03:02.774Z","updatedAt":"2025-09-05T13:23:05.630Z","severity":{"score":5.3,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","source":"CISA-ADP"},"assigner":"CPANSec","products":["ETHER FCGI"],"affected":[{"vendor":"ETHER","product":"FCGI","packageName":"FCGI","defaultStatus":"unaffected","versions":[{"version":"0.44","status":"affected","lessThanOrEqual":"0.82","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","programFiles":["libfcgi/fcgiapp.c"],"programRoutines":[{"name":"ReadParams()"}],"repo":"https://github.com/FastCGI-Archives/fcgi2"}],"references":["http://www.openwall.com/lists/oss-security/2025/04/23/4","https://github.com/FastCGI-Archives/fcgi2/issues/67","https://github.com/FastCGI-Archives/fcgi2/releases/tag/2.4.5","https://www.synacktiv.com/en/publications/cve-2025-23016-exploiting-the-fastcgi-library","https://github.com/perl-catalyst/FCGI/issues/14","https://patch-diff.githubusercontent.com/raw/FastCGI-Archives/fcgi2/pull/74.patch"],"weaknesses":["CWE-1395","CWE-190","CWE-122"],"ingestedAt":"2026-10-29T20:09:09.358Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/40xxx/CVE-2025-40907.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2025-40907","state":"PUBLISHED","datePublished":"2025-05-16T13:03:02.774Z","dateUpdated":"2025-09-05T13:23:05.630Z","assignerShortName":"CPANSec","assignerOrgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateReserved":"2025-04-16T09:05:34.360Z"},"containers":{"cna":{"title":"FCGI versions 0.44 through 0.82, for Perl, include a vulnerable version of the FastCGI fcgi2 (aka fcgi) library","descriptions":[{"lang":"en","value":"FCGI versions 0.44 through 0.82, for Perl, include a vulnerable version of the FastCGI fcgi2 (aka fcgi) library.\n\nThe 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":[{"vendor":"ETHER","product":"FCGI","packageName":"FCGI","defaultStatus":"unaffected","versions":[{"version":"0.44","status":"affected","lessThanOrEqual":"0.82","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","programFiles":["libfcgi/fcgiapp.c"],"programRoutines":[{"name":"ReadParams()"}],"repo":"https://github.com/FastCGI-Archives/fcgi2"}],"references":[{"url":"http://www.openwall.com/lists/oss-security/2025/04/23/4","tags":["mailing-list"]},{"url":"https://github.com/FastCGI-Archives/fcgi2/issues/67","tags":["issue-tracking"]},{"url":"https://github.com/FastCGI-Archives/fcgi2/releases/tag/2.4.5","tags":["patch"]},{"url":"https://www.synacktiv.com/en/publications/cve-2025-23016-exploiting-the-fastcgi-library","tags":["technical-description"]},{"url":"https://github.com/perl-catalyst/FCGI/issues/14","tags":["issue-tracking"]},{"url":"https://patch-diff.githubusercontent.com/raw/FastCGI-Archives/fcgi2/pull/74.patch","tags":["patch"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-1395","description":"CWE-1395: Dependency on Vulnerable Third-Party Component","lang":"en","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-190","description":"CWE-190 Integer Overflow or Wraparound","lang":"en","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-122","description":"CWE-122 Heap-based Buffer Overflow","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"CPANSec","orgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateUpdated":"2025-09-05T13:23:05.630Z"},"credits":[{"lang":"en","type":"finder","value":"Synacktiv"}],"exploits":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"A proof of concept exploit for the underlying library exists at&nbsp;<a target=\"_blank\" rel=\"nofollow\" href=\"https://www.synacktiv.com/en/publications/cve-2025-23016-exploiting-the-fastcgi-library#exploitation\">https://www.synacktiv.com/en/publications/cve-2025-23016-exploiting-the-fastcgi-library#exploitation</a>"}],"value":"A proof of concept exploit for the underlying library exists at  https://www.synacktiv.com/en/publications/cve-2025-23016-exploiting-the-fastcgi-library#exploitation"}],"source":{"discovery":"UNKNOWN"},"workarounds":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"Updating to version 2.4.5 of the included fcgi2 library and rebuilding the Perl module will protect against the vulnerability.<br><br>We also recommend limiting potential remote access to the FastCGI socket by declaring it as a UNIX socket.<br><br><br>"}],"value":"Updating to version 2.4.5 of the included fcgi2 library and rebuilding the Perl module will protect against the vulnerability.\n\nWe also recommend limiting potential remote access to the FastCGI socket by declaring it as a UNIX socket."}],"x_generator":{"engine":"Vulnogram 0.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":5.3,"attackVector":"NETWORK","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"LOW","privilegesRequired":"NONE","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"timestamp":"2025-05-16T15:07:46.084885Z","id":"CVE-2025-40907","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-05-16T15:09:00.138Z"}}]}}}