UBUNTU-CVE-2024-53861
Vulnerability from osv_ubuntu – Published: 2024-12-02 00:00 – Updated: 2024-12-02 16:31 – Source websitepyjwt 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.
{
"affected": [
{
"ecosystem_specific": {
"ubuntu_priority": "medium"
},
"package": {
"ecosystem": "Ubuntu:Pro:16.04:LTS",
"name": "pyjwt",
"purl": "pkg:deb/ubuntu/pyjwt?arch=src?distro=esm-infra/xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.0.0-0ubuntu1",
"1.3.0-1",
"1.3.0-1ubuntu0.1"
]
},
{
"ecosystem_specific": {
"ubuntu_priority": "medium"
},
"package": {
"ecosystem": "Ubuntu:Pro:18.04:LTS",
"name": "pyjwt",
"purl": "pkg:deb/ubuntu/pyjwt?arch=src?distro=esm-infra/bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.4.2-1.1",
"1.5.3+ds1-1",
"1.5.3+ds1-1ubuntu0.1"
]
},
{
"ecosystem_specific": {
"ubuntu_priority": "medium"
},
"package": {
"ecosystem": "Ubuntu:20.04:LTS",
"name": "pyjwt",
"purl": "pkg:deb/ubuntu/pyjwt?arch=src?distro=focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"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"
},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "pyjwt",
"purl": "pkg:deb/ubuntu/pyjwt?arch=src?distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.7.1-2ubuntu2",
"2.1.0-1",
"2.3.0-1",
"2.3.0-1ubuntu0.1",
"2.3.0-1ubuntu0.2"
]
},
{
"ecosystem_specific": {
"ubuntu_priority": "medium"
},
"package": {
"ecosystem": "Ubuntu:24.10",
"name": "pyjwt",
"purl": "pkg:deb/ubuntu/pyjwt?arch=src?distro=oracular"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.7.0-1"
]
},
{
"ecosystem_specific": {
"ubuntu_priority": "medium"
},
"package": {
"ecosystem": "Ubuntu:24.04:LTS",
"name": "pyjwt",
"purl": "pkg:deb/ubuntu/pyjwt?arch=src?distro=noble"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.7.0-1"
]
}
],
"aliases": [],
"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.",
"id": "UBUNTU-CVE-2024-53861",
"modified": "2024-12-02T16:31:17Z",
"published": "2024-12-02T00:00:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2024-53861"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2024-53861"
},
{
"type": "REPORT",
"url": "https://github.com/jpadilla/pyjwt/security/advisories/GHSA-75c5-xw7c-p5pm"
},
{
"type": "REPORT",
"url": "https://github.com/jpadilla/pyjwt/commit/33022c25525c1020869c71ce2a4109e44ae4ced1"
},
{
"type": "REPORT",
"url": "https://github.com/jpadilla/pyjwt/commit/1570e708672aa9036bc772476beae8bfa48f4131#diff-6893ad4a1c5a36b8af3028db8c8bc3b62418149843fc382faf901eaab008e380R366"
},
{
"type": "REPORT",
"url": "https://github.com/jpadilla/pyjwt/commit/33022c25525c1020869c71ce2a4109e44ae4ced1"
}
],
"related": [
"CVE-2024-53861"
],
"schema_version": "1.6.3",
"withdrawn": "2025-06-23T15:59:47Z"
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.