{"id":"CVE-2022-3821","title":"An off-by-one Error issue was discovered in Systemd in format_timespan() function of time-util.c","summary":"An off-by-one Error issue was discovered in Systemd in format_timespan() function of time-util.c. An attacker could supply specific values for time and accuracy that leads to buffer overrun in format_timespan(), leading to a Denial of Se…","severity":"medium","cvss":5.5,"cvssVector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","cwe":["CWE-193"],"vendor":"systemd_project","product":"systemd","affected":["systemd <= 251","enterprise_linux = 8.0","enterprise_linux = 9.0","fedora = 35"],"published":"2022-11-08","updated":"2026-10-14","sourceUpdated":"2026-10-14T14:17:27.680","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2022-3821","references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2139327","label":"secalert@redhat.com"},{"url":"https://github.com/systemd/systemd/commit/9102c625a673a3246d7e73d8737f3494446bad4e","label":"secalert@redhat.com"},{"url":"https://github.com/systemd/systemd/issues/23928","label":"secalert@redhat.com"},{"url":"https://github.com/systemd/systemd/pull/23933","label":"secalert@redhat.com"},{"url":"https://lists.debian.org/debian-lts-announce/2023/06/msg00036.html","label":"secalert@redhat.com"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RVBQC2VLSDVQAPJTEMTREXDL4HYLXG2P/","label":"secalert@redhat.com"},{"url":"https://security.gentoo.org/glsa/202305-15","label":"secalert@redhat.com"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2139327","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/systemd/systemd/commit/9102c625a673a3246d7e73d8737f3494446bad4e","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/systemd/systemd/issues/23928","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/systemd/systemd/pull/23933","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://lists.debian.org/debian-lts-announce/2023/06/msg00036.html","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RVBQC2VLSDVQAPJTEMTREXDL4HYLXG2P/","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.gentoo.org/glsa/202305-15","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html","label":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e"}],"tags":["nvd"],"epss":0.0042,"epssPercentile":0.34571,"ingestedAt":"2026-10-14T15:36:13.926Z","slug":"CVE-2022-3821","body":"## Overview\n\nAn off-by-one Error issue was discovered in Systemd in format_timespan() function of time-util.c. An attacker could supply specific values for time and accuracy that leads to buffer overrun in format_timespan(), leading to a Denial of Service.\n\n## Affected\n\n- `systemd <= 251`\n- `enterprise_linux = 8.0`\n- `enterprise_linux = 9.0`\n- `fedora = 35`\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"sunlit","depthScore":30,"depthScoreParts":{"impact":30.3,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}