Cyber Resilience

CVE-2024-45291

SSRF in Phpoffice Phpspreadsheet ≤ 1.29.2

Published
07 October 2024
Modified
16 October 2024
CVSS Score v3.1 6.3
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N
EPSS Score 0.0080 53th percentile
Risk Priority 47 floored blend · peak EPSS

Summary

CVE-2024-45291 is a medium-severity Absolute Path Traversal (CWE-36) vulnerability in Phpoffice Phpspreadsheet. Its CVSS base score is 6.3 (Medium).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked in the top 47% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

The strongest mitigations our analysis identified map to AC-3 (Access Enforcement) and AC-4 (Information Flow Enforcement) — see the control section below for these in your framework.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

PHPSpreadsheet is a pure PHP library for reading and writing spreadsheet files. It's possible for an attacker to construct an XLSX file that links images from arbitrary paths. When embedding images has been enabled in HTML writer with `$writer->setEmbedImages(true);` those…

more

files will be included in the output as `data:` URLs, regardless of the file's type. Also URLs can be used for embedding, resulting in a Server-Side Request Forgery vulnerability. When embedding images has been enabled, an attacker can read arbitrary files on the server and perform arbitrary HTTP GET requests. Note that any PHP protocol wrappers can be used, meaning that if for example the `expect://` wrapper is enabled, also remote code execution is possible. This issue has been addressed in release versions 1.29.2, 2.1.1, and 2.3.0. All users are advised to upgrade. there are no known workarounds for this vulnerability.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2024-47883Shared CWE-22, CWE-36
CVE-2025-34350Shared CWE-22, CWE-918
CVE-2024-7323Shared CWE-22, CWE-36
CVE-2024-29053Shared CWE-22, CWE-36
CVE-2026-42315Shared CWE-22, CWE-36
CVE-2024-1703Shared CWE-22, CWE-36
CVE-2026-41887Shared CWE-22, CWE-918
CVE-2024-36427Shared CWE-22, CWE-918
CVE-2023-30970Shared CWE-22, CWE-36
CVE-2023-46784Shared CWE-22, CWE-918

Affected Assets

phpoffice
phpspreadsheet
≤ 1.29.2 · 2.0.0 — 2.1.1 · 2.2.0 — 2.3.0

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

Detect
Catch it (NIST detect / respond)

Harden
Shrink the surface (DISA STIG)

Validate
Prove the fix (OWASP ASVS)
  • V5.3.2
  • V1.3.6
  • V1.5.3
  • V10.4.7

Mitigating Controls (NIST 800-53 r5) AI

Enforces the intended directory access authorizations that path traversal would otherwise bypass.

Information flow enforcement can restrict which destinations the server is allowed to contact on behalf of users.

Input validation directly stops construction of absolute paths from untrusted data before they reach file operations.

Least privilege reduces the impact of any unauthorized file access obtained via traversal.

Boundary protection limits the network reach of server-initiated requests even if SSRF occurs.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-06 mostly match
prevents

Secure SDLC practices directly require input validation and path sanitization that prevent absolute path traversal.

DE.CM-09 partial match
prevents

Runtime monitoring of web applications and services can detect anomalous outbound requests indicative of SSRF.

ID.RA-01 partial match
prevents

Vulnerability identification processes can discover and record SSRF flaws in web applications.

PR.IR-01 partial match
prevents

Network segmentation and egress controls can limit the damage from successful SSRF requests.

PR.PS-02 partial match
prevents

Patching/maintenance can remediate known path-traversal flaws in deployed software (partial prevention of exploitability) but does nothing to stop the coding defect from being introduced in the first place.

PR.AA-05 none match
prevents

PR.AA-05 defines and reviews access policies but does not address code-level pathname neutralization, so neither direction prevents CWE-22.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

finds

Security testing in development can detect absolute path traversal via static analysis and fuzzing.

prevents

Operational threat data describing SSRF campaigns can be used to tighten outbound-request allow-lists and detection rules before attackers exploit them.

prevents

Secure development lifecycle includes input validation and path-handling requirements that reduce absolute path traversal risk.

prevents

Application security requirements typically mandate controls against path traversal in file-access functions.

prevents

Secure architecture principles call for canonicalization and sandboxing that limit absolute path traversal.

prevents

Secure coding standards directly require neutralization of absolute path sequences in pathname construction.

References