Skip to content
Heist/ feed
Back to feed
Medium

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

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-40907
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 15:41 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 16 May 2025, 13:03 UTC

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.

osv:CVE-2025-40907
Complete source record
{
  "id": "a34fcf2207c3152255b273050b397e77eb987352576e7bb509b41c4a1f41f4f4",
  "url": "https://osv.dev/vulnerability/CVE-2025-40907",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "FCGI versions 0.44 through 0.82, for Perl, include a vulnerable version of the FastCGI fcgi2 (aka fcgi) library",
    "summary": "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.",
    "evidence": "osv:CVE-2025-40907",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2025-40907",
      "aliases": [
        "CVE-2025-40907"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/fastcgi-archives/fcgi2",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "12ae40e58f6b1d8325408ff6765894f09994f5a9"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "fixed": "12ae40e58f6b1d8325408ff6765894f09994f5a9"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "2.4.5"
                  }
                ]
              }
            },
            {
              "repo": "https://github.com/perl-catalyst/fcgi",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "5bd9f1f966be0633c27e01f5b0508134d2452f0b"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0.44"
                      },
                      {
                        "last_affected": "0.82"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "cpe": "cpe:2.3:a:fastcgi:fcgi:*:*:*:*:*:perl:*:*",
                    "range": [
                      {
                        "introduced": "0.44"
                      },
                      {
                        "last_affected": "0.82"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.4.4",
            "2.4.2",
            "2.4.1.1",
            "2.4.1",
            "2.4.0",
            "2.2.3",
            "2.2.2",
            "2.1.1",
            "0.82",
            "0.81",
            "0.80",
            "0.78",
            "0.77",
            "0.76",
            "0.75",
            "0.74",
            "0.73",
            "0.72",
            "0.71_03",
            "0.71_02",
            "0.71_01",
            "0.71",
            "0.70",
            "0.68_02",
            "0.68_01",
            "0.68",
            "0.67_01-RC1",
            "0.67_01"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40907.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:36.860428536Z",
      "provider": "osv",
      "references": [
        "https://cpan.org/modules",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40907.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-40907",
        "https://github.com/FastCGI-Archives/fcgi2/issues/67",
        "https://github.com/perl-catalyst/FCGI/issues/14",
        "https://github.com/FastCGI-Archives/fcgi2/releases/tag/2.4.5",
        "https://patch-diff.githubusercontent.com/raw/FastCGI-Archives/fcgi2/pull/74.patch",
        "https://github.com/FastCGI-Archives/fcgi2",
        "https://www.synacktiv.com/en/publications/cve-2025-23016-exploiting-the-fastcgi-library"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-122",
          "CWE-1395",
          "CWE-190"
        ],
        "cna_assigner": "CPANSec",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40907.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-40907",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 504220,
  "published_at": "2025-05-16T13:03:02.774+00:00"
}