NULL Pointer Dereference Affecting berg package, versions <0.4.7-r0


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
1.97% (81st 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-WOLFILATEST-BERG-15375152
  • published4 Mar 2026
  • disclosed24 Nov 2020

Introduced: 24 Nov 2020

CVE-2020-26235  (opens in a new tab)
CWE-476  (opens in a new tab)

How to fix?

Upgrade Wolfi berg to version 0.4.7-r0 or higher.

NVD Description

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

In Rust time crate from version 0.2.7 and before version 0.2.23, unix-like operating systems may segfault due to dereferencing a dangling pointer in specific circumstances. This requires the user to set any environment variable in a different thread than the affected functions. The affected functions are time::UtcOffset::local_offset_at, time::UtcOffset::try_local_offset_at, time::UtcOffset::current_local_offset, time::UtcOffset::try_current_local_offset, time::OffsetDateTime::now_local and time::OffsetDateTime::try_now_local. Non-Unix targets are unaffected. This includes Windows and wasm. The issue was introduced in version 0.2.7 and fixed in version 0.2.23.

CVSS Base Scores

version 3.1