CVE-2022-22728
High · 7.5CVSS
7.5
EPSS
5.9%
Published
Aug 25, 2022
CISA due date
—
Cloudanix analysis
A bug in a common web form handling library lets attackers crash servers with bad upload requests, causing temporary outages until the service restarts.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Buffer Overflow
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
A remote attacker can trigger a buffer overflow during multipart form data parsing in libapreq2 2.16 and earlier, causing the process to crash.
Why it matters to the business
Applications using the library may suffer repeated crashes from crafted upload requests, leading to service outages and the need for manual restarts or failover.
How an attack unfolds
An attacker sends a specially crafted multipart form upload that exceeds internal buffer limits during header or part processing, forcing an overflow that terminates the worker process.
How to fix it
Upgrade Apache libapreq2 to a version newer than 2.16. Apply the latest packages from Fedora, Debian, or other distributions once released. Where immediate upgrade is not possible, restrict multipart upload sizes at the web server or WAF layer.
How to confirm the fix worked
Confirm the running libapreq2 version is newer than 2.16. In a test environment, replay a minimal crashing upload request and verify the process remains stable.
Typical attack path
- Locate a web endpoint accepting multipart/form-data POST requests that uses the vulnerable library
- Craft a request containing an oversized or malformed part header designed to overflow the buffer
- Transmit the request to the target
- Observe process termination and resulting denial of service
How to detect it
Review web server and application logs for abrupt worker process terminations that coincide with multipart form POST requests. Correlate spikes in upload traffic with availability alerts.
What your security team should do
- Inventory all deployments of libapreq2 and schedule upgrades to patched releases
- Add rate limiting and size checks on multipart uploads at the perimeter
- Enable core-dump or crash logging to capture future incidents for forensics
The record
A flaw in Apache libapreq2 versions 2.16 and earlier could cause a buffer overflow while processing multipart form uploads. A remote attacker could send a request causing a process crash which could lead to a denial of service attack.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:10 | libapreq2 | 0 | 2.13-7~deb10u2 |
| Debian:11 | libapreq2 | 0 | 2.13-7+deb11u1 |
| Debian:13 | libapreq2 | 0 | 2.17-1 |
| Mageia:8 | libapreq2 | 0 | 2.130.0-31.1.mga8 |
| Ubuntu:18.04:LTS | libapreq2 | 0 | No fix |
| Ubuntu:20.04:LTS | libapreq2 | 0 | No fix |
| Ubuntu:22.04:LTS | libapreq2 | 0 | No fix |
| Ubuntu:24.04:LTS | libapreq2 | 0 | No fix |
| Ubuntu:24.10 | libapreq2 | 0 | No fix |
| Ubuntu:25.04 | libapreq2 | 0 | No fix |
| Ubuntu:25.10 | libapreq2 | 0 | No fix |
| Ubuntu:Pro:14.04:LTS | libapreq2 | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | libapreq2 | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | libapreq2 | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | libapreq2 | 0 | No fix |
Related vulnerabilities
- CVE-2019-12412 A flaw in the libapreq2 v2.07 to v2.13 multipart parser can deference a null pointer… Also affects libapreq2
- CVE-2026-112108 A vulnerability was determined in ztxz16 fastllm up to 0.1.8.2. CWE-120
- CVE-2026-90804 A vulnerability was detected in GNU Binutils 2.47. CWE-120
- CVE-2026-90803 A security vulnerability has been detected in GNU Binutils 2.47. CWE-120
- CVE-2026-90801 A security flaw has been discovered in GNU Binutils 2.47. CWE-120
- CVE-2026-42808 An issue was discovered in Bosch Sensortec COINES_SDK versions 2.0 through 2.11. The host… CWE-120
- CVE-2026-87931 A vulnerability has been found in Behavioral Technology Group Pavlok Behavioral… CWE-120
- CVE-2026-71613 Buffer Overflow vulnerability in GPAC c2dee3aff638cd96f9617ac5b17dc2868cd90ef3 allows an… CWE-120