Skip to main content
VulnerabilityPublished Updated

CVE-2025-40907: Libfcgi perl · FCGI versions 0.44 through 0.82, for Perl, include a vulnerable version of the FastCGI

Affects libfcgi-perlSource GCVE Database

0
Compare

Mentioned vulnerabilities

Not known to be exploited · CVSS 5.3 Medium · fixed in 0.77-1ubuntu0.1~esm1 : update libfcgi-perl when convenient.

Data as of 24 Nov 2026, 21:15 UTC

CVSS 3.1 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.6% chance of exploitation in 30 days – higher than 53% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 0.77-1ubuntu0.1~esm1, 0.78-2ubuntu0.1~esm1, 0.79-1ubuntu0.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 16 May 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.

What to do

Upgrade the Ubuntu libfcgi-perl to 0.77-1ubuntu0.1~esm1 (package) or 0.78-2ubuntu0.1~esm1 (package) or 0.79-1ubuntu0.1 (package).

Affected software

ProductAffectedFixed in
Ubuntu 20.04 LTSlibfcgi-perlpkg:deb/ubuntu/libfcgi-perl?arch=source&distro=focalOther threatsAffected
  • <0.79-1ubuntu0.1
Fixed in
  • 0.79-1ubuntu0.1
Ubuntu Pro 18.04 LTSlibfcgi-perlpkg:deb/ubuntu/libfcgi-perl?arch=source&distro=esm-infra/bionicOther threatsAffected
  • <0.78-2ubuntu0.1~esm1
Fixed in
  • 0.78-2ubuntu0.1~esm1
Ubuntu Pro 16.04 LTSlibfcgi-perlpkg:deb/ubuntu/libfcgi-perl?arch=source&distro=esm-infra/xenialOther threatsAffected
  • <0.77-1ubuntu0.1~esm1
Fixed in
  • 0.77-1ubuntu0.1~esm1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…