Reference material — not professional advice. Test in staging, back up first, verify against your specific version. Use your own judgment for your environment.
● Critical · CVSS 9.9

How to Fix CVE-2025-42887: Improper Control of Generation of Code in SAP Solution Manager

⚡ At a glance
SeverityCVSS 9.9 (Critical)
Actively exploited?No public reports of in-the-wild exploitation; not currently listed in CISA KEV.
AffectedSAP Solution Manager ST 720
Fixed inSee the vendor advisory linked in References for the exact patched version
Type (CWE)CWE-94: Improper Control of Generation of Code

What is CVE-2025-42887?

Due to missing input sanitation, SAP Solution Manager allows an authenticated attacker to insert malicious code when calling a remote-enabled function module. This could provide the attacker with full control of the system hence leading to high impact on confidentiality, integrity and availability of the system.

Am I affected?

You are affected if you run SAP Solution Manager ST 720.

Open the SAP component's About / System Information dialog (transaction SM51, SICK, or the relevant component-specific transaction). Compare the kernel/patch level to the fixed SAP Note linked under References.

If the build is older than the patched release listed under Fixed in, this CVE applies and you should follow the remediation steps below.

How to fix CVE-2025-42887

The vendor fix is to upgrade to a patched build. The verified patched version per the official advisory is See the vendor advisory linked in References for the exact patched version.

  1. Read the official advisory for the exact patched build that applies to your deployment model (see https://me.sap.com/notes/3668705).
  1. Plan the upgrade window. SAP Solution Manager updates are not always hot-pluggable; check the vendor's release notes for required restarts, database migrations, or licensing steps before scheduling production downtime.
  1. Take a verified backup of configuration and data before upgrading. Roll-back is faster than rebuilding.
  1. Apply the patch or upgrade using your normal package or vendor installer flow. Use the vendor's documented procedure, not a third-party guide.
  1. Restart services as the advisory directs. Some fixes only become active after a service restart, others after a full reboot.

Patch via your OS package manager


# The exact package name and patched version are listed in the vendor advisory:
# https://me.sap.com/notes/3668705
# Debian / Ubuntu
sudo apt update
sudo apt install --only-upgrade sapsolutionmanager

# RHEL / Rocky / AlmaLinux / Fedora
sudo dnf upgrade sapsolutionmanager

# openSUSE
sudo zypper update sapsolutionmanager

# Verify the running version matches the fixed version
dpkg -s sapsolutionmanager 2>/dev/null | grep -i version || rpm -q sapsolutionmanager 2>/dev/null

# Windows: pull the cumulative update that ships this fix.
Install-Module PSWindowsUpdate -Force -SkipPublisherCheck
Get-WindowsUpdate -AcceptAll -Install -AutoReboot

Verify the fix landed


# 1. Confirm the running version matches the fixed-in version from the advisory:
#    https://me.sap.com/notes/3668705
#    Use the platform-specific version probe above.

# 2. Re-scan with your vulnerability scanner (Nessus, Qualys, Tenable, OpenVAS).
#    The scanner should no longer flag CVE-2025-42887 on the patched target.

# 3. Inspect recent service / kernel logs for crash loops or rollback events.
journalctl -u <service> --since "10 minutes ago"
dmesg --since "10 minutes ago"

If you can't patch immediately

Apply only mitigations documented by the vendor. If no official workaround is published, the patched build is the only supported remediation. While you plan the upgrade window:

How to verify the fix worked

  1. Confirm the running version of SAP Solution Manager matches or exceeds the patched build the vendor specifies. The CVE record under References lists the fixed version explicitly.
  1. Check service logs for restart messages and verify the service came up clean after the upgrade. A failed restart that silently rolls back to the unpatched binary is a common operational mistake.
  1. Review the audit log for any suspicious access during the period the system was unpatched. Pre-patch exploitation leaves traces; failed login bursts, unexpected file uploads, and new admin accounts are common indicators. If the host was reachable from the internet during the exposure window, assume the IoC hunt is mandatory rather than optional.
  1. Re-run a vulnerability scanner (Nessus, Qualys, Tenable, OpenVAS) against the host after patching. The scanner should no longer flag this CVE on the same target. If it still does, double-check that you upgraded the right component, since many products bundle several services and only one of them may carry the fix.

Frequently asked questions

Other vulnerabilities in the same area that are worth patching alongside this one:

Is CVE-2025-42887 being exploited in the wild?

There are no public reports of in-the-wild exploitation at the time of this writing, and it is not currently listed in CISA KEV. That does not mean exploitation will not happen. Patch on the vendor timeline regardless.

Does the patch require a reboot?

It depends on the deployment. SAP Solution Manager updates that replace running services usually need at minimum a service restart; some require a host reboot. Check the vendor release notes linked under References for the exact post-upgrade steps.

What if my version of SAP Solution Manager is end-of-life?

End-of-life builds will not receive the fix. The vendor's published guidance in cases like this is to upgrade to a supported branch first, then apply the patched build. Running an EOL release on an internet-reachable interface is the higher risk.

References


*This guide was assembled from the official vendor advisory, the NVD record, and the CISA KEV listing on 2026-05-25. Always confirm against the vendor's advisory before applying changes in production. Byline: Sai Kiran Pandrala.*