CVE-2019-12412
High · 7.5CVSS
7.5
EPSS
4.1%
Published
Nov 19, 2020
CISA due date
—
Cloudanix analysis
A bug in a library that processes web form uploads lets attackers send bad data to crash servers and take services offline.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Trivial
- Impact
- Denial Of Service
- Component
- Library
- Class
- Denial of service
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Null pointer dereference in the multipart parser of libapreq2 versions 2.07 to 2.13 causes the hosting process to crash.
Why it matters to the business
Remote attackers can trigger repeated crashes to make dependent web services unavailable, leading to downtime and degraded operations.
How an attack unfolds
An attacker sends a crafted multipart HTTP request that exercises the flawed parser path, dereferencing a null pointer and terminating the process.
How to fix it
Upgrade libapreq2 to a patched release once available; in the interim apply strict request validation, size limits on multipart bodies, and web application firewall rules to drop suspicious payloads.
How to confirm the fix worked
Reproduce the crash with a minimal malformed multipart request in an isolated test environment, then confirm absence of the crash after applying updates or mitigations.
Typical attack path
- Identify a service using vulnerable libapreq2 for multipart request handling
- Craft and transmit a malformed multipart request designed to hit the null dereference
- Observe process crash resulting in denial of service
How to detect it
Review application and system logs for unexpected process terminations or segmentation faults immediately following receipt of multipart requests.
What your security team should do
- Prioritize upgrade of libapreq2 once fixed versions are released
- Deploy input sanitization and rate limiting on multipart endpoints
- Enable process monitoring and automatic restarts with alerting on crashes
The record
A flaw in the libapreq2 v2.07 to v2.13 multipart parser can deference a null pointer leading to a process crash. 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~deb10u1 |
| Debian:11 | libapreq2 | 0 | 2.13-6 |
| Debian:13 | libapreq2 | 0 | 2.13-6 |
| Debian:8 | libapreq2 | 0 | 2.13-4+deb8u1 |
| Debian:9 | libapreq2 | 0 | 2.13-7~deb9u1 |
| Mageia:7 | libapreq2 | 0 | 2.130.0-28.1.mga7 |
| Ubuntu:18.04:LTS | libapreq2 | 0 | 2.13-7~deb10u1build0.18.04.1 |
| Ubuntu:20.04:LTS | libapreq2 | 0 | 2.13-7 |
| Ubuntu:Pro:14.04:LTS | libapreq2 | 0 | 2.13-3ubuntu2+esm1 |
| Ubuntu:Pro:16.04:LTS | libapreq2 | 0 | 2.13-4ubuntu2+esm1 |
Related vulnerabilities
- CVE-2022-22728 A flaw in Apache libapreq2 versions 2.16 and earlier could cause a buffer overflow while… Also affects libapreq2
- CVE-2026-112405 Pillow is a Python imaging library. CWE-476
- CVE-2026-112392 Pillow is a Python imaging library. CWE-476
- CVE-2026-100348 kin-openapi is a Go project for handling OpenAPI files. CWE-476
- CVE-2026-100349 kin-openapi is a Go project for handling OpenAPI files. CWE-476
- CVE-2026-109280 ImageMagick 7.1.0-20 before 7.1.2-32 contains a use after free vulnerability in the -fx… CWE-476
- CVE-2026-109272 ImageMagick 7.1.1-31 before 7.1.2-32 contains a NULL pointer dereference in the… CWE-476
- CVE-2026-109258 ImageMagick 7.1.0-20 before 7.1.2-32 contains an invalid memory free vulnerability in the… CWE-476