CVE-2007-1381 in Php
The wddx_deserialize function in wddx.c 1.119.2.10.2.12 and 1.119.2.10.2.13 in PHP 5, as modified in CVS on 20070224 and fixed on 20070304, calls strlcpy where strlcat was intended and uses improper arguments, which allows context-dependent attackers to execute arbitrary code via a WDDX packet with a malformed overl...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, high complexity.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Php | Php | 5.0.0 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Reported · reference |
Official description
The wddx_deserialize function in wddx.c 1.119.2.10.2.12 and 1.119.2.10.2.13 in PHP 5, as modified in CVS on 20070224 and fixed on 20070304, calls strlcpy where strlcat was intended and uses improper arguments, which allows context-dependent attackers to execute arbitrary code via a WDDX packet with a malformed overlap of a STRING element, which triggers a buffer overflow.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2007-1381 |
|---|---|
| BreachSpider ID | BS-2007-GLOBAL-159868-H |
| CVSS vector | AV:N/AC:H/Au:N/C:C/I:C/A:C |
| Published | 2007-03-10 |
| Last modified | 2026-06-16 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-119: Improper Restriction of Operations within Memory Buffer
Parent class for buffer-related vulnerabilities where operations exceed buffer boundaries.
Related attack patterns (CAPEC)
CAPEC-8 Buffer Overflow in an API Call via CWE-119
CAPEC-9 Buffer Overflow in Local Command-Line Utilities via CWE-119
CAPEC-10 Buffer Overflow via Environment Variables via CWE-119
CAPEC-14 Client-side Injection-induced Buffer Overflow via CWE-119
CAPEC-24 Filter Failure through Buffer Overflow via CWE-119
Show all 12
CAPEC-42 MIME Conversion via CWE-119
CAPEC-44 Overflow Binary Resource File via CWE-119
CAPEC-45 Buffer Overflow via Symbolic Links via CWE-119
CAPEC-46 Overflow Variables and Tags via CWE-119
CAPEC-47 Buffer Overflow via Parameter Expansion via CWE-119
CAPEC-100 Overflow Buffers via CWE-119
CAPEC-123 Buffer Manipulation via CWE-119
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CVE-2007-1381 affects the wddx_deserialize function in PHP 5, leading to a buffer overflow that can be exploited by context-dependent attackers to execute arbitrary code. This vulnerability has a CVSS score of 7.6, indicating a high severity level. While there is no public proof of concept, an exploit exists, and the EPSS score suggests a low likelihood of exploitation in the wild. However, given the potential impact, immediate attention is required to mitigate this risk in ICS/OT environments.
The vulnerability arises from the wddx_deserialize function in PHP 5, which incorrectly uses strlcpy instead of strlcat with improper arguments. This can lead to a buffer overflow when processing a WDDX packet with a malformed overlap of a STRING element. Context-dependent attackers can leverage this flaw to execute arbitrary code, potentially compromising the affected system.
Compensating controls AI-drafted, review before use
Implement strict input validation and sanitization for WDDX packets processed by the wddx_deserialize function. Ensure that all incoming WDDX packets are checked for malformed overlaps of STRING elements before deserialization.
NERC CIP: CIP-007 CIP-007-R2
IEC 62443: SR 7.6
Not validated for your network. A compensating control does not replace the vendor fix.
Questions
What is CVE-2007-1381?
CVE-2007-1381 affects the wddx_deserialize function in PHP 5, leading to a buffer overflow that can be exploited by context-dependent attackers to execute arbitrary code. This vulnerability has a CVSS score of 7.6, indicating a high severity level. While there is no public proof of concept, an exploit exists, and the EPSS score suggests a low likelihood of exploitation in the wild. However, given the potential impact, immediate attention is required to mitigate this risk in ICS/OT environments.
What is the CVSS score for CVE-2007-1381?
CVE-2007-1381 has CVSS 7.6 (High). Vector: AV:N/AC:H/Au:N/C:C/I:C/A:C. EPSS: 9.2%.
Is CVE-2007-1381 actively exploited?
Public exploit available for CVE-2007-1381. Exploitation risk elevated.
How do I remediate CVE-2007-1381?
Priority: HIGH.
What systems are affected by CVE-2007-1381?
CVE-2007-1381 affects Php Php.
What NERC-CIP standard applies to CVE-2007-1381?
NERC CIP CIP-007 CIP-007-R2: This CVE violates CIP-007-R2 because it involves a buffer overflow that can be exploited to execute arbitrary code, which could compromise the integrity and availability of critical cyber assets.
What IEC 62443 requirement maps to CVE-2007-1381?
IEC 62443 SR 7.6: This CVE maps to SR 7.6 because it involves a buffer overflow vulnerability that can be exploited to execute arbitrary code, which could lead to unauthorized control of the affected system, violating the security requirements for industrial control systems.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Php","product":"Php","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-16.