CVE-2025-40907 Affecting libfcgi-perl package, versions <0.77-1ubuntu0.1~esm1


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.08% (24th 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-UBUNTU1604-LIBFCGIPERL-10184957
  • published24 May 2025
  • disclosed16 May 2025

Introduced: 16 May 2025

NewCVE-2025-40907  (opens in a new tab)

How to fix?

Upgrade Ubuntu:16.04 libfcgi-perl to version 0.77-1ubuntu0.1~esm1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libfcgi-perl package and not the libfcgi-perl package as distributed by Ubuntu. See How to fix? for Ubuntu:16.04 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