# CVE-2024-7954: SPIP porte_plume Plugin Arbitrary PHP Execution

> Remote unauthenticated attackers can execute arbitrary PHP code via crafted HTTP requests in the SPIP porte_plume plugin.

- **Severity:** Critical 9.8 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 23 Aug 2024
- **Updated:** 22 Nov 2025
- **Also known as:** DEBIAN-CVE-2024-7954, GHSA-42mv-3h37-wfh9, UBUNTU-CVE-2024-7954

## What is CVE-2024-7954?

CVE-2024-7954 is a critical code injection vulnerability in SPIP, published on 23 Aug 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

The porte_plume plugin used by SPIP before 4.30-alpha2, 4.2.13, and 4.1.16 is vulnerable to an arbitrary code execution vulnerability. A remote and unauthenticated attacker can execute arbitrary PHP as the SPIP user by sending a crafted HTTP request.

Weakness: CWE-95 (Improper Neutralization of Directives in Dynamically Evaluated Code), CWE-1286 (Improper Validation of Syntactic Correctness of Input)

## Which versions are affected by CVE-2024-7954?


## How do I fix CVE-2024-7954?

Upgrade to a fixed version.

## Is CVE-2024-7954 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-7954 exists.

Public exploit code:

- Unauthenticated Remote Code Execution in SPIP versions up to and including 4.2.12 (github_poc): https://github.com/Chocapikk/CVE-2024-7954
- Unauthenticated Remote Code Execution in SPIP versions up to and including 4.2.12  (github_poc): https://github.com/gh-ost00/CVE-2024-7954-RCE
- This exploit will attempt to execute system commands on SPIP targets. (github_poc): https://github.com/bigb0x/CVE-2024-7954
- https://github.com/TheCyberguy-17/RCE_CVE-2024-7954 (github_poc): https://github.com/TheCyberguy-17/RCE_CVE-2024-7954
- The porte_plume plugin used by SPIP before 4.30-alpha2, 4.2.13, and 4.1.16 is vulnerable to an arbitrary code execution vulnerability. A remote and unauthenticated attacker can execute arbitrary PHP as the SPIP user by sending a crafted HTTP request. (CRITICAL) (github_poc): https://github.com/0dayan0n/RCE_CVE-2024-7954-
- Exploitation of a Remote Code Execution  vulnerability- (CVE-2024-7954) (github_poc): https://github.com/ShivanshKuntal/Exploitation-of-a-Remote-Code-Execution-vulnerability--CVE-2024-7954-

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2024-7954 and fix it if it is affected.

What it is: CVE-2024-7954 is a critical code injection vulnerability in SPIP, published on 23 Aug 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-7954 exists.

Affected product: SPIP. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2024-7954/ (Markdown: https://insights.sbomify.com/CVE-2024-7954/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2024-7954
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2024-7954
- OSV: https://osv.dev/vulnerability/CVE-2024-7954

---
From sbomify Insights: https://insights.sbomify.com/CVE-2024-7954/
Summaries are generated and may contain mistakes; the official description above is the record.
