# CVE-2021-3116: Logic error in authentication in proxy.py

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.69%, higher than 77% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-01-11T05:00:49.000Z
- Modified: 2026-06-17T04:04:41.733Z
- Also known as: GHSA-cmc7-mfmr-xqrx, PYSEC-2021-46
- Weaknesses: CWE-287, CWE-480, CWE-697
- Assigned by: mitre

## Description

before_upstream_connection in AuthPlugin in http/proxy/auth.py in proxy.py before 2.3.1 accepts incorrect Proxy-Authorization header data because of a boolean confusion (and versus or).

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- proxy-py (PyPI): before 2.3.1
- proxy.py_project proxy.py: before 2.3.1

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:P/A:N`

## References

- <https://cardaci.xyz/advisories/2021/01/10/proxy.py-2.3.0-broken-basic-authentication/> (exploit, advisory, third-party-advisory)
- <https://github.com/abhinavsingh/proxy.py/pull/482/commits/9b00093288237f5073c403f2c4f62acfdfa8ed46> (patch, web)
- <https://pypi.org/project/proxy.py/2.3.1/#history> (package, product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-3116> (advisory)
- <https://github.com/abhinavsingh/proxy.py/pull/482> (web)
- <https://github.com/abhinavsingh/proxy.py/commit/bff171ec26d826ae1d22d2466eaf9d8bdbf059d3> (web)
- <https://cardaci.xyz/advisories/2021/01/10/proxy.py-2.3.0-broken-basic-authentication> (web)
- <https://github.com/abhinavsingh/proxy.py> (package)
- <https://github.com/advisories/GHSA-cmc7-mfmr-xqrx> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/proxy-py/PYSEC-2021-46.yaml> (web)

## Sources

- CVE List: [CVE-2021-3116](https://www.cve.org/CVERecord?id=CVE-2021-3116), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-cmc7-mfmr-xqrx](https://github.com/advisories/GHSA-cmc7-mfmr-xqrx), CC-BY-4.0, modified 2024-10-21
- NVD: [CVE-2021-3116](https://nvd.nist.gov/vuln/detail/CVE-2021-3116), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-46](https://osv.dev/vulnerability/PYSEC-2021-46), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2021-3116 · Whole record: https://cve.day/CVE-2021-3116.json · Rebuilt by cve.day 2026-11-25T22:57:59.165Z
