USN-9177-1: Security vulnerability
It was discovered that PyJWT incorrectly accepted non-canonical encodings of token signature segments. An attacker could possibly use this issue to bypass token revocation checks.
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/python3-jwtto a version that resolves this vulnerability.Fixed in 2.10.1-4ubuntu1.4 - Upgrade
Upgrade
ubuntu/python3-jwtto a version that resolves this vulnerability.Fixed in 2.7.0-1ubuntu0.5 - Upgrade
Upgrade
ubuntu/python3-jwtto a version that resolves this vulnerability.Fixed in 2.3.0-1ubuntu0.7
Frequently Asked Questions
Who is exposed to this issue?
Applications that use PyJWT and rely on token signature segments being represented canonically when enforcing token revocation checks may be exposed.
What does an attacker need to exploit it?
An attacker would need to provide a token using a non-canonical encoding of its signature segment. The disclosed impact is a possible bypass of token revocation checks.
How can I tell whether my deployment is affected?
Review whether your application uses PyJWT and performs token revocation checks that could be bypassed when equivalent signature segments have non-canonical encodings. The referenced Ubuntu source package updates are pyjwt 2.10.1-4ubuntu1.4 and 2.7.0-1ubuntu0.5.