CVE-2023-31438
NixOS vulnerability analysis and mitigation

Overview

An issue was discovered in systemd 253 that affects the log sealing functionality. The vulnerability allows an attacker to truncate a sealed log file and then resume log sealing in such a way that checking the integrity shows no error, despite modifications having been made. This vulnerability is tracked as CVE-2023-31438. It's worth noting that this vulnerability is disputed, as the vendor reportedly denied that the finding constitutes a security vulnerability (NIST NVD).

Technical details

The vulnerability relates to the forward secure log sealing mechanism in systemd's journald component. Currently, empty epochs are not sealed, which creates a security gap. An attacker can exploit this by truncating a sealed log file and continuing it without any problems being detected during integrity verification. The issue has been assigned a CVSS v3.1 base score of 5.3 (Medium) with vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N. The vulnerability is classified under CWE-354 (Improper Validation of Integrity Check Value) (NIST NVD, Kastel Security).

Impact

If exploited, this vulnerability could allow an attacker to modify log files without detection. Specifically, an attacker could truncate sealed log files and continue logging, with the integrity check showing no errors despite the modifications. This compromises the integrity of the system's audit trail and could allow malicious activities to go undetected (Kastel Security).

Mitigation and workarounds

A fix has been implemented that verifies sealed log epochs are continuous. The patch was merged into the systemd main branch through pull request #28886. The fix involves adjusting what journald writes into log files while maintaining compatibility with older versions. Organizations using affected versions should upgrade to the patched versions (Systemd PR).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-61619HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61618HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61617HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61610HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-65622MEDIUM5.4
  • PHPPHP
  • snipe/snipe-it
NoYesDec 01, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management