{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-40907 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2025-40907 is a medium-severity vulnerability in ETHER FCGI, published on 16 May 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-40907 and fix it if it is affected.\n\nWhat it is: CVE-2025-40907 is a medium-severity vulnerability in ETHER FCGI, published on 16 May 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-40907 exists.\n\nAffected product: ETHER FCGI. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-40907/ (Markdown: https://insights.sbomify.com/CVE-2025-40907/index.md)","id":"CVE-2025-40907","markdown":"https://insights.sbomify.com/CVE-2025-40907/index.md","name":"CVE-2025-40907","record":{"aliases":["ALSA-2025:8635","ALSA-2025:8636","ALSA-2025:8696","AZL-61899","AZL-61905","CLSA-2025-1762958433","CLSA-2025-1764321881","DEBIAN-CVE-2025-40907","GHSA-488m-4fx8-f36v","MGASA-2025-0277","OESA-2025-1544","RHSA-2025:8625","RHSA-2025:8635","RHSA-2025:8636","RHSA-2025:8677","RHSA-2025:8678","RHSA-2025:8696","RHSA-2025:8697","RHSA-2025:8698","RHSA-2025:8703","RHSA-2025:8829","RHSA-2025:8890","RLSA-2025:8635","RLSA-2025:8636","RLSA-2025:8696","UBUNTU-CVE-2025-40907","USN-7527-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Perl FCGI library","requires_auth":"none","summary":"An integer overflow in the Perl FCGI library allows attackers to trigger a heap-based buffer overflow via crafted IPC socket data, potentially leading to code execution or denial of service.","user_interaction":"not_required","vuln_class":"integer_overflow"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"CPANSec","cpe":[{"product":"fcgi","vendor":"fastcgi"}],"cvss":{"score":5.3,"severity":"medium","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","version":"3.1"},"cwes":[{"id":"CWE-190","name":"Integer Overflow or Wraparound"},{"id":"CWE-1395","name":"Dependency on Vulnerable Third-Party Component"},{"id":"CWE-122","name":"Heap-based Buffer Overflow"}],"description":"FCGI versions 0.44 through 0.82, for Perl, include a vulnerable version of the FastCGI fcgi2 (aka fcgi) library.\n\nThe 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.","ecosystems":["AlmaLinux:10","AlmaLinux:8","AlmaLinux:9","Red Hat:enterprise_linux:10.0","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:9::appstream","Red Hat:rhel_aus:8.2::appstream","Red Hat:rhel_aus:8.4::appstream","Red Hat:rhel_aus:8.6::appstream","Red Hat:rhel_e4s:8.6::appstream","Red Hat:rhel_e4s:8.8::appstream","Red Hat:rhel_e4s:9.0::appstream","Red Hat:rhel_e4s:9.2::appstream","Red Hat:rhel_els:7","Red Hat:rhel_eus:9.4::appstream","Red Hat:rhel_tus:8.6::appstream","Red Hat:rhel_tus:8.8::appstream","Rocky Linux:10","Rocky Linux:8","Rocky Linux:9"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"FCGI versions 0.44 through 0.82, for Perl, include a vulnerable version of the FastCGI fcgi2 (aka fcgi) library","id":"CVE-2025-40907","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"integer_overflow","year":"2025"},"n_packages":52,"n_references":6,"next":{"headline":"YAML-LibYAML prior to 0.903.0 for Perl uses 2-args open, allowing existing files to be modified","id":"CVE-2025-40908"},"packages":[{"ecosystem":"AlmaLinux:10","fixed":["1:0.82-13.1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-FCGI","purl":"pkg:rpm/almalinux/perl-FCGI","source":"ALSA-2025:8636"},{"ecosystem":"AlmaLinux:8","fixed":["1:0.78-12.module_el8.10.0+4011+62915be2"],"introduced":["0"],"last_affected":[],"package":"perl-FCGI","purl":"pkg:rpm/almalinux/perl-FCGI","source":"ALSA-2025:8696"},{"ecosystem":"AlmaLinux:8","fixed":["1:0.78-12.module_el8.10.0+4012+cd64a238"],"introduced":["0"],"last_affected":[],"package":"perl-FCGI","purl":"pkg:rpm/almalinux/perl-FCGI","source":"ALSA-2025:8696"},{"ecosystem":"AlmaLinux:8","fixed":["1:0.78-12.module_el8.10.0+4013+e6a7e623"],"introduced":["0"],"last_affected":[],"package":"perl-FCGI","purl":"pkg:rpm/almalinux/perl-FCGI","source":"ALSA-2025:8696"},{"ecosystem":"AlmaLinux:9","fixed":["1:0.79-8.1.el9_6"],"introduced":["0"],"last_affected":[],"package":"perl-FCGI","purl":"pkg:rpm/almalinux/perl-FCGI","source":"ALSA-2025:8635"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["1:0.82-13.1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-FCGI","purl":"pkg:rpm/redhat/perl-FCGI","source":"RHSA-2025:8636"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["1:0.82-13.1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-FCGI-debuginfo","purl":"pkg:rpm/redhat/perl-FCGI-debuginfo","source":"RHSA-2025:8636"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["1:0.82-13.1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-FCGI-debugsource","purl":"pkg:rpm/redhat/perl-FCGI-debugsource","source":"RHSA-2025:8636"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:0.78-12.module+el8.10.0+23147+df114ff4"],"introduced":["0"],"last_affected":[],"package":"perl-FCGI","purl":"pkg:rpm/redhat/perl-FCGI","source":"RHSA-2025:8696"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:0.78-12.module+el8.10.0+23147+df114ff4"],"introduced":["0"],"last_affected":[],"package":"perl-FCGI-debuginfo","purl":"pkg:rpm/redhat/perl-FCGI-debuginfo","source":"RHSA-2025:8696"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:0.78-12.module+el8.10.0+23147+df114ff4"],"introduced":["0"],"last_affected":[],"package":"perl-FCGI-debugsource","purl":"pkg:rpm/redhat/perl-FCGI-debugsource","source":"RHSA-2025:8696"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["1:0.79-8.1.el9_6"],"introduced":["0"],"last_affected":[],"package":"perl-FCGI","purl":"pkg:rpm/redhat/perl-FCGI","source":"RHSA-2025:8635"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["1:0.79-8.1.el9_6"],"introduced":["0"],"last_affected":[],"package":"perl-FCGI-debuginfo","purl":"pkg:rpm/redhat/perl-FCGI-debuginfo","source":"RHSA-2025:8635"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["1:0.79-8.1.el9_6"],"introduced":["0"],"last_affected":[],"package":"perl-FCGI-debugsource","purl":"pkg:rpm/redhat/perl-FCGI-debugsource","source":"RHSA-2025:8635"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["1:0.78-11.module+el8.2.0+23234+edafdda3.1"],"introduced":["0"],"last_affected":[],"package":"perl-FCGI","purl":"pkg:rpm/redhat/perl-FCGI","source":"RHSA-2025:8829"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["1:0.78-11.module+el8.2.0+23234+edafdda3.1"],"introduced":["0"],"last_affected":[],"package":"perl-FCGI-debuginfo","purl":"pkg:rpm/redhat/perl-FCGI-debuginfo","source":"RHSA-2025:8829"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["1:0.78-11.module+el8.2.0+23234+edafdda3.1"],"introduced":["0"],"last_affected":[],"package":"perl-FCGI-debugsource","purl":"pkg:rpm/redhat/perl-FCGI-debugsource","source":"RHSA-2025:8829"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["1:0.78-11.module+el8.4.0+23229+35c4aba7.1"],"introduced":["0"],"last_affected":[],"package":"perl-FCGI","purl":"pkg:rpm/redhat/perl-FCGI","source":"RHSA-2025:8703"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["1:0.78-11.module+el8.4.0+23229+35c4aba7.1"],"introduced":["0"],"last_affected":[],"package":"perl-FCGI-debuginfo","purl":"pkg:rpm/redhat/perl-FCGI-debuginfo","source":"RHSA-2025:8703"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["1:0.78-11.module+el8.4.0+23229+35c4aba7.1"],"introduced":["0"],"last_affected":[],"package":"perl-FCGI-debugsource","purl":"pkg:rpm/redhat/perl-FCGI-debugsource","source":"RHSA-2025:8703"},{"ecosystem":"Red Hat:rhel_aus:8.6::appstream","fixed":["1:0.78-11.module+el8.6.0+23193+c3786137.1"],"introduced":["0"],"last_affected":[],"package":"perl-FCGI","purl":"pkg:rpm/redhat/perl-FCGI","source":"RHSA-2025:8890"},{"ecosystem":"Red Hat:rhel_aus:8.6::appstream","fixed":["1:0.78-11.module+el8.6.0+23193+c3786137.1"],"introduced":["0"],"last_affected":[],"package":"perl-FCGI-debuginfo","purl":"pkg:rpm/redhat/perl-FCGI-debuginfo","source":"RHSA-2025:8890"},{"ecosystem":"Red Hat:rhel_aus:8.6::appstream","fixed":["1:0.78-11.module+el8.6.0+23193+c3786137.1"],"introduced":["0"],"last_affected":[],"package":"perl-FCGI-debugsource","purl":"pkg:rpm/redhat/perl-FCGI-debugsource","source":"RHSA-2025:8890"},{"ecosystem":"Red Hat:rhel_e4s:8.6::appstream","fixed":["1:0.78-11.module+el8.6.0+23193+c3786137.1"],"introduced":["0"],"last_affected":[],"package":"perl-FCGI","purl":"pkg:rpm/redhat/perl-FCGI","source":"RHSA-2025:8890"},{"ecosystem":"Red Hat:rhel_e4s:8.6::appstream","fixed":["1:0.78-11.module+el8.6.0+23193+c3786137.1"],"introduced":["0"],"last_affected":[],"package":"perl-FCGI-debuginfo","purl":"pkg:rpm/redhat/perl-FCGI-debuginfo","source":"RHSA-2025:8890"},{"ecosystem":"Red Hat:rhel_e4s:8.6::appstream","fixed":["1:0.78-11.module+el8.6.0+23193+c3786137.1"],"introduced":["0"],"last_affected":[],"package":"perl-FCGI-debugsource","purl":"pkg:rpm/redhat/perl-FCGI-debugsource","source":"RHSA-2025:8890"},{"ecosystem":"Red Hat:rhel_e4s:8.8::appstream","fixed":["1:0.78-11.module+el8.8.0+23188+f6366248.1"],"introduced":["0"],"last_affected":[],"package":"perl-FCGI","purl":"pkg:rpm/redhat/perl-FCGI","source":"RHSA-2025:8698"},{"ecosystem":"Red Hat:rhel_e4s:8.8::appstream","fixed":["1:0.78-11.module+el8.8.0+23188+f6366248.1"],"introduced":["0"],"last_affected":[],"package":"perl-FCGI-debuginfo","purl":"pkg:rpm/redhat/perl-FCGI-debuginfo","source":"RHSA-2025:8698"},{"ecosystem":"Red Hat:rhel_e4s:8.8::appstream","fixed":["1:0.78-11.module+el8.8.0+23188+f6366248.1"],"introduced":["0"],"last_affected":[],"package":"perl-FCGI-debugsource","purl":"pkg:rpm/redhat/perl-FCGI-debugsource","source":"RHSA-2025:8698"},{"ecosystem":"Red Hat:rhel_e4s:9.0::appstream","fixed":["1:0.79-8.el9_0.1"],"introduced":["0"],"last_affected":[],"package":"perl-FCGI","purl":"pkg:rpm/redhat/perl-FCGI","source":"RHSA-2025:8678"},{"ecosystem":"Red Hat:rhel_e4s:9.0::appstream","fixed":["1:0.79-8.el9_0.1"],"introduced":["0"],"last_affected":[],"package":"perl-FCGI-debuginfo","purl":"pkg:rpm/redhat/perl-FCGI-debuginfo","source":"RHSA-2025:8678"},{"ecosystem":"Red Hat:rhel_e4s:9.0::appstream","fixed":["1:0.79-8.el9_0.1"],"introduced":["0"],"last_affected":[],"package":"perl-FCGI-debugsource","purl":"pkg:rpm/redhat/perl-FCGI-debugsource","source":"RHSA-2025:8678"},{"ecosystem":"Red Hat:rhel_e4s:9.2::appstream","fixed":["1:0.79-8.el9_2.1"],"introduced":["0"],"last_affected":[],"package":"perl-FCGI","purl":"pkg:rpm/redhat/perl-FCGI","source":"RHSA-2025:8697"},{"ecosystem":"Red Hat:rhel_e4s:9.2::appstream","fixed":["1:0.79-8.el9_2.1"],"introduced":["0"],"last_affected":[],"package":"perl-FCGI-debuginfo","purl":"pkg:rpm/redhat/perl-FCGI-debuginfo","source":"RHSA-2025:8697"},{"ecosystem":"Red Hat:rhel_e4s:9.2::appstream","fixed":["1:0.79-8.el9_2.1"],"introduced":["0"],"last_affected":[],"package":"perl-FCGI-debugsource","purl":"pkg:rpm/redhat/perl-FCGI-debugsource","source":"RHSA-2025:8697"},{"ecosystem":"Red Hat:rhel_els:7","fixed":["1:0.74-8.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"perl-FCGI","purl":"pkg:rpm/redhat/perl-FCGI","source":"RHSA-2025:8625"},{"ecosystem":"Red Hat:rhel_els:7","fixed":["1:0.74-8.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"perl-FCGI-debuginfo","purl":"pkg:rpm/redhat/perl-FCGI-debuginfo","source":"RHSA-2025:8625"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["1:0.79-8.el9_4.1"],"introduced":["0"],"last_affected":[],"package":"perl-FCGI","purl":"pkg:rpm/redhat/perl-FCGI","source":"RHSA-2025:8677"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["1:0.79-8.el9_4.1"],"introduced":["0"],"last_affected":[],"package":"perl-FCGI-debuginfo","purl":"pkg:rpm/redhat/perl-FCGI-debuginfo","source":"RHSA-2025:8677"},{"ecosystem":"Red Hat:rhel_eus:9.4::appstream","fixed":["1:0.79-8.el9_4.1"],"introduced":["0"],"last_affected":[],"package":"perl-FCGI-debugsource","purl":"pkg:rpm/redhat/perl-FCGI-debugsource","source":"RHSA-2025:8677"}],"prev":{"headline":"BSON::XS versions 0.8.4 and earlier for Perl includes a bundled libbson 1.1.7, which has several vulnerabilities","id":"CVE-2025-40906"},"products":["FCGI"],"published":"2025-05-16","related":[{"cvss_score":5,"headline":"Denial of service in n/a","id":"CVE-2012-6687","kev_date_added":null,"published":"2015-02-19"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-09-05","vendors":["ETHER"]},"summary":"An integer overflow in the Perl FCGI library allows attackers to trigger a heap-based buffer overflow via crafted IPC socket data, potentially leading to code execution or denial of service.","url":"https://insights.sbomify.com/CVE-2025-40907/"}