VYPR
Unrated severityNVD Advisory· Published Nov 19, 2022· Updated Apr 15, 2025

davidmoreno onion Log response.c onion_response_flush allocation of resources

CVE-2022-4066

Description

A vulnerability was found in davidmoreno onion. It has been rated as problematic. Affected by this issue is the function onion_response_flush of the file src/onion/response.c of the component Log Handler. The manipulation leads to allocation of resources. The name of the patch is de8ea938342b36c28024fd8393ebc27b8442a161. It is recommended to apply a patch to fix this issue. The identifier of this vulnerability is VDB-214028.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Log spamming and resource exhaustion in davidmoreno onion due to unbounded ONION_WARNING log calls in onion_response_flush.

Vulnerability

A vulnerability in the onion_response_flush function in src/onion/response.c of davidmoreno onion allows an attacker to trigger repeated ONION_WARNING log calls for each request that causes a write error on chunked encoding. Each log call allocates resources (memory and I/O), and without rate limiting, repeated exploitation can lead to resource exhaustion. The affected versions include those prior to commit de8ea938342b36c28024fd8393ebc27b8442a161 (the patch) [1][2].

Exploitation

An attacker must be able to send HTTP requests that cause a write error in the chunked encoding path. This can be achieved by sending a large number of requests (e.g., 200,000 iterations as shown in the proof-of-concept in [1]) that each trigger the warning. The attacker does not require authentication; only network access to the affected server is needed [1][2].

Impact

Successful exploitation causes the server to write numerous log messages, consuming disk space and I/O, and potentially exhausting system resources, leading to denial of service (DoS) for legitimate users [1][2].

Mitigation

The patch in commit de8ea938342b36c28024fd8393ebc27b8442a161 replaces the ONION_WARNING call with ONION_CALL_MAX_ONCE_PER_T_COUNT(1, ONION_WARNING, ...) which limits the warning to once per thread per count, preventing repeated logging. Users should update to a version containing this commit [1][2].

AI Insight generated on May 25, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

4

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

3

News mentions

0

No linked articles in our index yet.