Skip to content
OpenAdvisories
Medium · 5.3 CVE-2025-40907 EUVD-2025-15438GHSA-488m-4fx8-f36v

FCGI versions 0.44 through 0.82, for Perl, include a vulnerable version of the FastCGI fcgi2 (aka fcgi) library

Published May 16, 2025 · Updated Sep 5, 2025 · Assigned by CPANSec

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.

Affected products

VendorProductAffectedFixed
ETHER FCGI 0.44 – ≤ 0.82 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libfcgi-perl 0.79+ds-2 —
Debian 13 libfcgi-perl 0.79+ds-2 —
Debian 12 libfcgi-perl 0.79+ds-2 —
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS libfcgi-perl 0.79-1ubuntu0.1 USN-7527-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS libfcgi-perl 0.78-2ubuntu0.1~esm1 USN-7527-1
Ubuntu Pro 16.04 LTS libfcgi-perl 0.77-1ubuntu0.1~esm1 USN-7527-1
ReleasePackageFixed inAdvisory
RHEL 10 perl-FCGI 1:0.82-13.1.el10_0 RHSA-2025:8636
RHEL 9 perl-FCGI 1:0.79-8.1.el9_6 RHSA-2025:8635
RHEL 8 perl-FCGI 1:0.78-12.module+el8.10.0+23147+df114ff4 RHSA-2025:8696
Show 11 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 9.4 EUS perl-FCGI 1:0.79-8.el9_4.1 RHSA-2025:8677
RHEL 9.2 E4S perl-FCGI 1:0.79-8.el9_2.1 RHSA-2025:8697
RHEL 9.0 E4S perl-FCGI 1:0.79-8.el9_0.1 RHSA-2025:8678
RHEL 8.8 TUS perl-FCGI 1:0.78-11.module+el8.8.0+23188+f6366248.1 RHSA-2025:8698
RHEL 8.8 E4S perl-FCGI 1:0.78-11.module+el8.8.0+23188+f6366248.1 RHSA-2025:8698
RHEL 8.6 TUS perl-FCGI 1:0.78-11.module+el8.6.0+23193+c3786137.1 RHSA-2025:8890
RHEL 8.6 E4S perl-FCGI 1:0.78-11.module+el8.6.0+23193+c3786137.1 RHSA-2025:8890
RHEL 8.6 AUS perl-FCGI 1:0.78-11.module+el8.6.0+23193+c3786137.1 RHSA-2025:8890
RHEL 8.4 AUS perl-FCGI 1:0.78-11.module+el8.4.0+23229+35c4aba7.1 RHSA-2025:8703
RHEL 8.2 AUS perl-FCGI 1:0.78-11.module+el8.2.0+23234+edafdda3.1 RHSA-2025:8829
RHEL 7 ELS perl-FCGI 1:0.74-8.el7_9.1 RHSA-2025:8625

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 10 perl-FCGI 1:0.82-13.1.el10_0 ALSA-2025:8636
AlmaLinux 9 perl-FCGI 1:0.79-8.1.el9_6 ALSA-2025:8635
AlmaLinux 8 perl-FCGI 1:0.78-12.module_el8.10.0+4011+62915be2 ALSA-2025:8696

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 10 perl-FCGI 1:0.82-13.1.el10_0 RLSA-2025:8636
Rocky Linux 9 perl-FCGI 1:0.79-8.1.el9_6 RLSA-2025:8635
Rocky Linux 8 perl-FCGI 1:0.78-12.module+el8.10.0+1990+d30a9ea8 RLSA-2025:8696

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 perl-FCGI 1:0.74-8.amzn2.0.3 ALAS2-2025-2880

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 perl-FCGI No fix yet —
Azure Linux 2 (CBL-Mariner) perl-FCGI No fix yet —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 10 perl-FCGI 1:0.82-13.1.el10_0 ELSA-2025-8636
Oracle Linux 9 perl-FCGI 1:0.79-8.1.el9_6 ELSA-2025-8635
Oracle Linux 8 perl-FCGI 1:0.78-12.module+el8.10.0+90610+44f1ea29 ELSA-2025-8696
Oracle Linux 7 perl-FCGI 1:0.74-8.0.1.el7 ELSA-2025-8625

Advisories 24

References