cve.bz

CVE-2007-4657 Numeric Errors

no score yetEPSS 3.0%Fix available

No CVSS score yet. EPSS 3.0% estimated probability of exploitation activity in the next 30 days.

On this page
Multiple integer overflows in PHP 4 before 4.4.8, and PHP 5 before 5.2.4, allow remote attackers to obtain sensitive information (memory contents) or cause a denial of service (thread crash) via a large len value to the (1) strspn or (2) strcspn function, which triggers an out-of-bounds read. NOTE: this affects different product versions than CVE-2007-3996.
EPSS
3.0% (unchanged from 3.0% a week ago; 3.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 88th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
CWE-189 Numeric Errors
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2007-4657 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2007-4657?via=ask-ai-copy and https://cve.bz/cve/CVE-2007-4657?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2007-4657 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
php:phpfrom 4.0.0 before 4.4.8
php:phpfrom 5.0.0 before 5.2.4
debian:debian_linux3.1
debian:debian_linux4.0
canonical:ubuntu_linux6.06
canonical:ubuntu_linux6.10
canonical:ubuntu_linux7.04
canonical:ubuntu_linux7.10

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian4.0php46:4.4.4-8+etch6DSA-1578-1
Debian4.0php55.2.0-8+etch9DSA-1444-1
Debian5.0php55.2.3-1+lenny1DTSA-61-1

From the distributions' data via OSV.dev: the Debian Security Tracker. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian.

Red Hat

Red Hat's statement

The only effect of this bug is to cause the process to read from a random segment of memory, if a large "length" parameter is passed to the strspn/strcspn function, which is under the control of the script author. This bug has no security impact.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2007-4657.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-119 (12).

References

Check your stackJSON