CVE-2025-23016
Critical · 9.3CVSS
9.3
EPSS
0.6%
Published
Jan 10, 2025
CISA due date
—
Cloudanix analysis
A flaw in an older web scripting helper library can let attackers send bad data that crashes programs or takes control of the system, so organizations should update affected software right away.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- Low
- Impact
- Full Compromise
- Component
- Library
- Class
- Buffer Overflow
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Integer overflow in ReadParams within fcgiapp.c allows crafted nameLen or valueLen values sent over the IPC socket to trigger a heap-based buffer overflow in fcgi2 2.x through 2.4.4.
Why it matters to the business
Systems relying on the affected FastCGI library or dependent packages such as older tcpdump releases on Ubuntu 14.04 and 16.04 face elevated risk of service disruption or unauthorized code execution, requiring prioritized patching of long-supported distributions and library dependencies.
How an attack unfolds
An attacker supplies specially crafted parameter length fields over the IPC socket to the ReadParams function, causing an integer overflow that leads to an undersized allocation followed by a heap buffer overflow that can be leveraged for memory corruption.
How to fix it
Upgrade fcgi2 to commit 12ae40e58f6b1d8325408ff6765894f09994f5a9 or later; apply the Ubuntu 14.04 and 16.04 patches that update tcpdump to 4.9.2-0ubuntu0.14.04.1 and 4.9.2-0ubuntu0.16.04.1 respectively; rebuild and redeploy any packages that statically link the vulnerable library.
How to confirm the fix worked
Verify the installed fcgi2 version or commit hash against the fixed commit; confirm tcpdump package versions on Ubuntu systems match the listed fixed releases; recompile test binaries against the updated library and exercise parameter parsing paths.
Typical attack path
- Identify a process or service using the vulnerable fcgi2 library that listens on an IPC socket
- Craft a FastCGI parameter record containing oversized or malicious nameLen/valueLen values
- Transmit the record to the IPC socket
- Trigger the integer overflow and subsequent heap write in ReadParams
- Achieve memory corruption suitable for code execution or denial of service
How to detect it
Review application and system logs for unusual parameter lengths or crashes in processes linked to fcgi2; monitor IPC socket traffic for malformed FastCGI records; inspect core dumps or heap corruption indicators in affected services.
What your security team should do
- Immediately inventory all deployments that link against fcgi2 or ship the listed tcpdump versions
- Schedule upgrades to the fixed library commit and Ubuntu package revisions within the next maintenance window
- Add fcgi2 and tcpdump to the vulnerability scanning policy with version pinning
- Review any custom FastCGI IPC handling code for similar length validation issues
The record
FastCGI fcgi2 (aka fcgi) 2.x through 2.4.4 has 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 packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | libfcgi | 0 | No fix |
| Debian:12 | libfcgi | 0 | No fix |
| Debian:13 | libfcgi | 0 | No fix |
| Debian:14 | libfcgi | 0 | 2.4.5-0.1 |
| Mageia:9 | fcgi | 0 | 2.4.0-22.1.mga9 |
| SUSE:Enterprise Storage 7.1 | FastCGI | 0 | 2.4.0-150000.4.3.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | FastCGI | 0 | 2.4.0-150000.4.3.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | FastCGI | 0 | 2.4.0-150000.4.3.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | FastCGI | 0 | 2.4.0-150000.4.3.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS | FastCGI | 0 | 2.4.0-150000.4.3.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS | FastCGI | 0 | 2.4.0-150000.4.3.1 |
| SUSE:Linux Enterprise Module for Development Tools 15 SP6 | FastCGI | 0 | 2.4.0-150000.4.3.1 |
| SUSE:Linux Enterprise Module for Development Tools 15 SP7 | FastCGI | 0 | 2.4.0-150000.4.3.1 |
| SUSE:Linux Enterprise Server 15 SP3-LTSS | FastCGI | 0 | 2.4.0-150000.4.3.1 |
| SUSE:Linux Enterprise Server 15 SP4-LTSS | FastCGI | 0 | 2.4.0-150000.4.3.1 |
| SUSE:Linux Enterprise Server 15 SP5-LTSS | FastCGI | 0 | 2.4.0-150000.4.3.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP3 | FastCGI | 0 | 2.4.0-150000.4.3.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP4 | FastCGI | 0 | 2.4.0-150000.4.3.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP5 | FastCGI | 0 | 2.4.0-150000.4.3.1 |
| Ubuntu:16.04:LTS | libfcgi | 0 | No fix |
| Ubuntu:18.04:LTS | libfcgi | 0 | No fix |
| Ubuntu:20.04:LTS | libfcgi | 0 | No fix |
| Ubuntu:22.04:LTS | libfcgi | 0 | No fix |
| Ubuntu:22.04:LTS | libfcgi | 0 | 2.4.2-2ubuntu0.1 |
| Ubuntu:24.04:LTS | libfcgi | 0 | No fix |
| Ubuntu:24.04:LTS | libfcgi | 0 | 2.4.2-2.1ubuntu0.24.04.1 |
| Ubuntu:24.10 | libfcgi | 0 | No fix |
| Ubuntu:25.04 | libfcgi | 0 | 2.4.2-2.1ubuntu0.25.04.1 |
| Ubuntu:25.10 | libfcgi | 0 | 2.4.5-0.1 |
| Ubuntu:Pro:16.04:LTS | libfcgi | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | libfcgi | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | libfcgi | 0 | No fix |
| openSUSE:Leap 15.6 | FastCGI | 0 | 2.4.0-150000.4.3.1 |
| openSUSE:Tumbleweed | FastCGI | 0 | 2.4.6-1.1 |
Related vulnerabilities
- CVE-2026-110264 An issue has been discovered in GitLab CE/EE affecting all versions from 7.0 before… CWE-190
- CVE-2026-53615 util-linux is a random collection of Linux utilities. CWE-190
- CVE-2026-106574 ImageMagick is free and open-source software used for editing and manipulating digital… CWE-190
- CVE-2026-106571 ImageMagick is free and open-source software used for editing and manipulating digital… CWE-190
- CVE-2026-75820 GNU Aspell contains an integer truncation vulnerability in the WritableDict::add()… CWE-190
- CVE-2026-102621 A vulnerability was identified in Freedesktop Poppler up to 26.08.0. CWE-190
- CVE-2026-102620 A vulnerability was determined in Freedesktop Poppler 26.06.0/26.07.0/26.08.0. CWE-190
- CVE-2026-102633 libexpat versions 2.7.2 through 2.8.5 contain an integer overflow vulnerability in… CWE-190