CVE-2023-49606: Tinyproxy < 1.11.2 - Use After Free in HTTP Connection Header
- Template: CVE-2023-49606
- Name: Tinyproxy < 1.11.2 - Use After Free in HTTP Connection Header
- Description: A use-after-free vulnerability exists in the HTTP Connection Headers parsing in Tinyproxy 1.10.0 through 1.11.1. The remove_connection_headers() function in reqs.c frees a header value pointer that is subsequently reused during header iteration, leading to memory corruption. An unauthenticated remote attacker can trigger this by sending a specially crafted HTTP Connection header (e.g., Connection: Connection), causing proxy worker process crashes (denial of service) or potentially achieving remote code execution.
- Impact: An unauthenticated attacker can crash Tinyproxy worker processes remotely, causing denial of service. The use-after-free may be leveraged for remote code execution depending on heap layout and target architecture.
- Remediation: Upgrade Tinyproxy to version 1.11.2 or later. If building from source, apply commit 12a8484265f7b00591293da492bb3c9987001956 which copies the header value before iteration.
- Severity: critical
- Authors: DhiyaneshGeek
- Tags: cve, cve2023, tinyproxy, uaf, rce, passive, vkev
- References: https://talosintelligence.com/vulnerability_reports/TALOS-2023-1889, https://github.com/tinyproxy/tinyproxy/commit/12a8484265f7b00591293da492bb3c9987001956, https://nvd.nist.gov/vuln/detail/CVE-2023-49606, http://www.openwall.com/lists/oss-security/2024/05/07/1
- Cves: CVE-2023-49606
- Verified: yes
- Max requests: 1
- Directory: http/cves
- Path: http/cves/2023/CVE-2023-49606.yaml
- Digest: 4b0a00483046022100d6d1a6c40d1566ff4cadf7abc020dfc8cc11d1e7ad24ce215b733cec43dba57802210084594e2fe62c554347e79ff595e43fca7c2422af519c4469cc002bcdd85161ea
- Created at: 2026-11-13T01:55:28Z
- Updated at: 2026-11-20T02:03:43Z
- Age in days: 11
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2023/CVE-2023-49606.yaml
Classification
- Cwe: CWE-416
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.80903
- Epss percentile: 0.99638
- Not known: cpe
Metadata
- Fofa-query: header="tinyproxy"
- Max-request: 1
- Product: tinyproxy
- Shodan-query: Server: tinyproxy
- Vendor: tinyproxy_project
- Verified: yes
Products
| Product | Indexed | Url |
|---|---|---|
| tinyproxy_project:tinyproxy | yes | /v1/products/tinyproxy_project/tinyproxy |
Labels
- Name: Tinyproxy - Use After Free
- Impact: Attackers can cause memory corruption and potentially execute arbitrary code remotely by sending crafted HTTP headers.
- Remediation: Update to the latest version of Tinyproxy where the vulnerability is fixed.
- Vulnerability type: use_after_free
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2023-49606
- Not known: requirements
```yaml
id: CVE-2023-49606
info:
name: Tinyproxy < 1.11.2 - Use After Free in HTTP Connection Header
author: DhiyaneshGeek
severity: critical
description: |
A use-after-free vulnerability exists in the HTTP Connection Headers parsing in Tinyproxy 1.10.0 through 1.11.1. The remove_connection_headers() function in reqs.c frees a header value pointer that is subsequently reused during header iteration, leading to memory corruption. An unauthenticated remote attacker can trigger this by sending a specially crafted HTTP Connection header (e.g., Connection: Connection), causing proxy worker process crashes (denial of service) or potentially achieving remote code execution.
impact: |
An unauthenticated attacker can crash Tinyproxy worker processes remotely, causing denial of service. The use-after-free may be leveraged for remote code execution depending on heap layout and target architecture.
remediation: |
Upgrade Tinyproxy to version 1.11.2 or later. If building from source, apply commit 12a8484265f7b00591293da492bb3c9987001956 which copies the header value before iteration.
reference:
- https://talosintelligence.com/vulnerability_reports/TALOS-2023-1889
- https://github.com/tinyproxy/tinyproxy/commit/12a8484265f7b00591293da492bb3c9987001956
- https://nvd.nist.gov/vuln/detail/CVE-2023-49606
- http://www.openwall.com/lists/oss-security/2024/05/07/1
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2023-49606
cwe-id: CWE-416
epss-score: 0.80903
epss-percentile: 0.99638
metadata:
verified: true
max-request: 1
vendor: tinyproxy_project
product: tinyproxy
shodan-query: "Server: tinyproxy"
fofa-query: header="tinyproxy"
tags: cve,cve2023,tinyproxy,uaf,rce,passive,vkev
http:
- raw:
- |
GET / HTTP/1.1
Host: {{randstr}}.invalid
Connection: close
matchers-condition: and
matchers:
- type: word
part: header
words:
- "tinyproxy"
case-insensitive: true
- type: dsl
dsl:
- compare_versions(version, '>= 1.10.0', '<= 1.11.1')
extractors:
- type: regex
name: version
part: header
group: 1
internal: true
regex:
- "(?i)Server: tinyproxy/([0-9]+\\.[0-9]+\\.[0-9]+)"
- type: regex
part: body
group: 1
regex:
- "tinyproxy(?:</a>)? version ([0-9]+\\.[0-9]+\\.[0-9]+)"
digest: 4b0a00483046022100d6d1a6c40d1566ff4cadf7abc020dfc8cc11d1e7ad24ce215b733cec43dba57802210084594e2fe62c554347e79ff595e43fca7c2422af519c4469cc002bcdd85161ea:922c64590222798bb761d5b6d8e72950
```