Off-by-one Error Affecting libsystemd package, versions [,252.4)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.03% (7th 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-CONAN-LIBSYSTEMD-10077379
  • published8 May 2025
  • disclosed9 Nov 2022
  • creditYiyuaner

Introduced: 9 Nov 2022

CVE-2022-3821  (opens in a new tab)
CWE-193  (opens in a new tab)

How to fix?

Upgrade libsystemd to version 252.4 or higher.

Overview

Affected versions of this package are vulnerable to Off-by-one Error in Systemd in format_timespan() function of time-util.c file. An attacker could supply specific values for time and accuracy that leads to buffer overrun in format_timespan().

CVSS Base Scores

version 3.1