Insufficient Comparison Affecting barman package, versions <3.12.1-r0


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.06% (30th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-CHAINGUARDLATEST-BARMAN-8492194
  • published9 Dec 2024
  • disclosed29 Nov 2024

Introduced: 29 Nov 2024

NewCVE-2024-53861  (opens in a new tab)
CWE-697  (opens in a new tab)

How to fix?

Upgrade Chainguard barman to version 3.12.1-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream barman package and not the barman package as distributed by Chainguard. See How to fix? for Chainguard relevant fixed versions and status.

pyjwt is a JSON Web Token implementation in Python. An incorrect string comparison is run for iss checking, resulting in &#34;acb&#34; being accepted for &#34;_abc_&#34;. 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 &#34;abc&#34; not in &#34;__abcd__&#34;: being checked instead of if &#34;abc&#34; != &#34;__abc__&#34;:. 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.

CVSS Scores

version 3.1