UBUNTU-CVE-2024-53861

Source
https://ubuntu.com/security/CVE-2024-53861
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-53861.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2024-53861
Related
Published
2024-12-02T00:00:00Z
Modified
2024-12-02T16:31:17Z
Summary
[none]
Details

pyjwt is a JSON Web Token implementation in Python. An incorrect string comparison is run for iss checking, resulting in "acb" being accepted for "_abc_". This is a bug introduced in version 2.10.0: checking the "iss" claim changed from isinstance(issuer, list) to isinstance(issuer, Sequence). Since str is a Sequnce, but not a list, in is also used for string comparison. This results in if "abc" not in "__abcd__": being checked instead of if "abc" != "__abc__":. Signature checks are still present so real world impact is likely limited to denial of service scenarios. This issue has been patched in version 2.10.1. All users are advised to upgrade. There are no known workarounds for this vulnerability.

References

Affected packages

Ubuntu:Pro:16.04:LTS / pyjwt

Package

Name
pyjwt
Purl
pkg:deb/ubuntu/pyjwt?arch=src?distro=esm-infra/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.0.0-0ubuntu1
1.3.0-1
1.3.0-1ubuntu0.1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:Pro:18.04:LTS / pyjwt

Package

Name
pyjwt
Purl
pkg:deb/ubuntu/pyjwt?arch=src?distro=esm-infra/bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.4.2-1.1
1.5.3+ds1-1
1.5.3+ds1-1ubuntu0.1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:20.04:LTS / pyjwt

Package

Name
pyjwt
Purl
pkg:deb/ubuntu/pyjwt?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.7.0-2
1.7.1-1
1.7.1-2ubuntu1
1.7.1-2ubuntu2
1.7.1-2ubuntu2.1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:22.04:LTS / pyjwt

Package

Name
pyjwt
Purl
pkg:deb/ubuntu/pyjwt?arch=src?distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.7.1-2ubuntu2

2.*

2.1.0-1
2.3.0-1
2.3.0-1ubuntu0.1
2.3.0-1ubuntu0.2

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:24.10 / pyjwt

Package

Name
pyjwt
Purl
pkg:deb/ubuntu/pyjwt?arch=src?distro=oracular

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*

2.7.0-1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:24.04:LTS / pyjwt

Package

Name
pyjwt
Purl
pkg:deb/ubuntu/pyjwt?arch=src?distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*

2.7.0-1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}