twisted: Origin Validation Error
CVE-2022-21712 is a high-severity origin validation error vulnerability in twisted, with a CVSS 3.1 base score of 7.5 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. Affected twisted versions: >= 11.1.0, < 22.1.0. The record does not name a fixed version, so check the vendor advisory. There is no confirmed exploitation so far. EPSS estimates a 1.38% chance of exploitation within 30 days, higher than 73% of scored CVEs.
High severity with no evidence of exploitation so far.
What to do
- Check which version of twisted you run against the affected versions below, and install the vendor's latest release.
- Read the advisory on github.com for workarounds and exact fixed builds.
- Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Twisted | twisted | >= 11.1.0, < 22.1.0 | Not stated |
| Debian | Debian Linux | 9.0 | Not stated |
| Fedora Project | Fedora | 35; 36 | Not stated |
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- NoneNo account or login is needed.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- NoneNothing can be modified.
- Availability
- NoneAvailability is not affected.
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 7.5 | High | CNA (github.com) |
| CVSS 3.1 | 7.5 | High | NVD |
| CVSS 2.0 | 5.0 | Medium | NVD |
Official description
twisted is an event-driven networking engine written in Python. In affected versions twisted exposes cookies and authorization headers when following cross-origin redirects. This issue is present in the `twited.web.RedirectAgent` and `twisted.web. BrowserLikeRedirectAgent` functions. Users are advised to upgrade. There are no known workarounds.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Origin Validation Error
The product does not properly verify that the source of data or communication is valid.
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: none, automatable: yes, technical impact: partial).
- Record last changed materially (score, affected products, status or references).
References
Advisories
- github.com/twisted/twisted/security/advisories/GHSA-92x2-jw7w-xvvxThird Party Advisory
Patches and release notes
- github.com/twisted/twisted/commit/af8fe78542a6f2bf2235ccee8158d9c88d31e8e2Third Party Advisory
- github.com/twisted/twisted/releases/tag/twisted-22.1.0Release Notes, Third Party Advisory
Other references
- lists.debian.org/debian-lts-announce/2022/02/msg00021.html
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7U6KYDTOLPICAVSR34G2…
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GLKHA6WREIVAMBQD7KKW…
- security.gentoo.org/glsa/202301-02
Other vulnerabilities in twisted
- 7.5 High severity
- 7.5 High severity
- 8.7 High severity
- 7.5 High severity
- 8.3 High severity
- 8.1 High severity
Recent Origin Validation Error vulnerabilities
- 8.8 High severity
Mozilla Firefox Security Feature Bypass Exploited
Spotted an error? Tell us.