CVE-2025-40907
Reported by cpansec · Published May 16, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| FCGI | cpan.org | 0.82 |
| perl-FCGI | Amazon Linux | 1:0.74-8.amzn2.0.3 |
| fcgi | fastcgi | 0.82 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| ETHER | FCGI | 0.44 |
| amazon:2 | perl-FCGI | 0 |
| ETHER | FCGI | 0.44 |
Timeline
- May 16, 2025 CVE Published
- May 16, 2025 PoC Published (2 in total, the first dated here)
- May 17, 2025 EPSS Score (30 in total, the first dated here)
- May 23, 2025 Coalition ESS Score (22 in total, the first dated here)
- Nov 26, 2025 CVE Updated
- Apr 29, 2026 Security Advisory (14 in total, the first dated here)
- Nov 2, 2026 Distribution Patch (11 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-40907
vulnetix vdb fixes CVE-2025-40907
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-40907/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart