ACL bypass in Tinyproxy via trailing hostname comparison

Note: This data is for reference and cybersecurity research purposes only.CyStack advises users not to use this information for unlawful purposes.

What is CVE-2026-125371?

CVE-2026-125371 is a vulnerability classified as Partial String Comparison, affecting tinyproxy (affected versions: ≤ 1.11.3). This vulnerability is rated Medium, with a CVSS score of 6.3. Current sources do not report this vulnerability as exploited.

Overview

Original source data

Tinyproxy through 1.11.3 contains an access control bypass vulnerability in acl_string_processing() in src/acl.c that compares only trailing hostname characters without checking DNS label boundaries. Attackers controlling the PTR record for their source IP, such as untrusted.net, can satisfy an 'Allow trusted.net' entry to use the proxy despite deny-by-default ACLs.

Affected products and scope

All versions of Tinyproxy through 1.11.3 are affected. Deployments that do not use hostname-based ACL entries (for example, those that rely solely on IP-based rules) are not affected by this specific flaw. A patch is available.

Technical details

The vulnerability is a partial string comparison (CWE-187) in the function acl_string_processing() in src/acl.c. When Tinyproxy evaluates whether a client's hostname matches an ACL entry, it performs a comparison on the trailing characters of the hostname without first checking that the match aligns with a DNS label boundary (i.e., a dot). For example, the hostname "untrusted.net" ends with the string "trusted.net", so a naive suffix check against the ACL entry "Allow trusted.net" succeeds. A correct implementation would verify that the character immediately before the matched suffix is a dot, or that the suffix constitutes a complete domain label.

Exploitability

Network-based, no authentication required, no user interaction. The attack complexity is high because the attacker must control the PTR (reverse DNS) record for their source IP address so that the hostname Tinyproxy resolves for that IP ends with a trusted suffix. No public exploit has been published, and there is no report of exploitation in the wild.

Technical impact

An attacker who can satisfy an "Allow" ACL entry gains the same proxy access that entry was intended to grant. Depending on the ACL configuration, this could allow the attacker to send requests through the proxy, potentially reaching internal services or consuming proxy resources. There is no direct code execution, privilege escalation, or denial of service. The confidentiality and integrity impact is low and depends on what the proxy allows access to.

Business impact

Organisations that run Tinyproxy as an outbound or internal proxy and rely on hostname-based ACLs to restrict which clients may use it should be aware that those restrictions can be circumvented. An unauthorised user who controls a PTR record for their IP could gain proxy access they were not intended to have. The practical consequence depends on what the proxy mediates: if it provides internet egress for internal users, an external actor could route traffic through it, potentially exposing internal services to the internet or using the proxy's IP reputation. The impact is bounded by the fact that the attacker must control a PTR record for their source IP, which is a non-trivial precondition.

Remediation

Apply the patch provided in the Tinyproxy project. If you cannot patch immediately, review your ACL entries to identify any hostname-based "Allow" rules whose suffix could be matched by an untrusted hostname, and consider restricting those rules to IP-based matching until the fix is applied.

Detection

Review Tinyproxy access logs for requests whose resolved client hostname ends with a trusted suffix but is not itself a trusted domain. For example, if your ACL allows "trusted.net", look for connections from hostnames like "untrusted.net", "not-trusted.net", or any other hostname that contains "trusted.net" as a substring but is not a subdomain of it. Check whether your deployment relies on PTR record resolution for ACL decisions, and if so, audit the ACL entries for overly broad suffix matches.

Sources (11)
Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.