CVE-2025-40907 Affecting perl-FCGI package, versions <1:0.74-8.amzn2.0.3


Severity

Recommended
medium

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.68% (54th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-AMZN2-PERLFCGI-10346527
  • published13 Jun 2025
  • disclosed16 May 2025

Introduced: 16 May 2025

CVE-2025-40907  (opens in a new tab)
CWE-1395  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2 perl-FCGI to version 1:0.74-8.amzn2.0.3 or higher.
This issue was patched in ALAS2-2025-2880.

NVD Description

Note: Versions mentioned in the description apply only to the upstream perl-FCGI package and not the perl-FCGI package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1