VYPR
Unrated severityNVD Advisory· Published Oct 26, 2022· Updated May 9, 2025

sendmail: mail to root privilege escalation via sm-client.pre script

CVE-2022-31256

Description

A symlink following flaw in the sendmail systemd service script on openSUSE Factory lets local attackers escalate from mail user to root.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

A symlink following flaw in the sendmail systemd service script on openSUSE Factory lets local attackers escalate from mail user to root.

Vulnerability

A symlink following vulnerability exists in the sm-client.pre script invoked by the sendmail systemd service on openSUSE Factory. The script improperly resolves symbolic links before accessing files, allowing a local attacker to trick it into operating on an arbitrary file. This affects sendmail versions prior to 8.17.1-1.1 on openSUSE Factory [1].

Exploitation

An attacker with local access as the mail user can create a symbolic link in a location that the sm-client.pre script writes to or reads from. When the script runs (triggered by systemd), it follows the attacker-controlled symlink and performs file operations on a target file owned by root, such as overwriting a system configuration file or a privileged binary.

Impact

Successful exploitation allows the attacker to escalate privileges from the mail user to root, gaining full control over the system.

Mitigation

The vulnerability is fixed in sendmail version 8.17.1-1.1 for openSUSE Factory. Users should update to this version or later. No workaround is documented; the fix is available via the package manager [1].

AI Insight generated on May 25, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

28

Patches

0

No patches discovered yet.

Vulnerability mechanics

No source-code context for this CVE — mechanics is only generated when we can read the actual fix diff. Without that, the four sections (root cause, attack vector, affected code, fix) would be speculation rather than analysis.

References

1

News mentions

0

No linked articles in our index yet.