Improper Validation of Integrity Check Value Affecting heimdal package, versions <7.7.1-r1


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.07% (34th 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-ALPINE314-HEIMDAL-3317449
  • published9 Feb 2023
  • disclosed6 Mar 2023

Introduced: 9 Feb 2023

CVE-2022-45142  (opens in a new tab)
CWE-354  (opens in a new tab)

How to fix?

Upgrade Alpine:3.14 heimdal to version 7.7.1-r1 or higher.

NVD Description

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

The fix for CVE-2022-3437 included changing memcmp to be constant time and a workaround for a compiler bug by adding "!= 0" comparisons to the result of memcmp. When these patches were backported to the heimdal-7.7.1 and heimdal-7.8.0 branches (and possibly other branches) a logic inversion sneaked in causing the validation of message integrity codes in gssapi/arcfour to be inverted.

CVSS Scores

version 3.1