Skip to content
Fencer Vulns
high 7.5

CVE-2007-1825 in the critical feed json

Buffer overflow in the imap_mail_compose function in PHP 5 before 5.2.1, and PHP 4 before 4.4.5, allows remote attackers to execute arbitra…

published 2007-04-02 19 y ago modified 2026-06-16 4 mo ago also EUVD-2007-1819

cvss
7.5
version 2.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
10.5%
EPSS 10.5% chance of exploitation in 30 days, percentile 95%
public exploits
1
Exploit-DB

Summary

Buffer overflow in the imap_mail_compose function in PHP 5 before 5.2.1, and PHP 4 before 4.4.5, allows remote attackers to execute arbitrary code via a long boundary string in a type.parameters field. NOTE: as of 20070411, it appears that this issue might be subsumed by CVE-2007-0906.3.

Patch / fix

  • stronghold-php RHEL 4.0 STRONGHOLD 4.1.2-12
  • stronghold-php-imap RHEL 4.0 STRONGHOLD 4.1.2-12
  • stronghold-php-ldap RHEL 4.0 STRONGHOLD 4.1.2-12
  • stronghold-php-odbc RHEL 4.0 STRONGHOLD 4.1.2-12
  • stronghold-php-snmp RHEL 4.0 STRONGHOLD 4.1.2-12
  • stronghold-php-mysql RHEL 4.0 STRONGHOLD 4.1.2-12
  • stronghold-php-pgsql RHEL 4.0 STRONGHOLD 4.1.2-12
  • stronghold-php-manual RHEL 4.0 STRONGHOLD 4.1.2-12

red hat advisories RHSA-2007:0089RHSA-2007:0088RHSA-2007:0082RHSA-2007:0081RHSA-2007:0076

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2007-1825 updated

php imap_mail_compose() buffer overflow via type.parameters

  • Red Hat Application Stack v1 for Enterprise Linux AS (v.4) php 5.1.6-3.el4s1.5, php-gd 5.1.6-3.el4s1.5, php-cli 5.1.6-3.el4s1.5, php-dba 5.1.6-3.el4s1.5, php-pdo 5.1.6-3.el4s1.5, php-xml 5.1.6-3.el4s1.5, +12 more Red Hat Application Stack v1 for Enterprise Linux ES (v.4) php 5.1.6-3.el4s1.5, php-gd 5.1.6-3.el4s1.5, php-cli 5.1.6-3.el4s1.5, php-dba 5.1.6-3.el4s1.5, php-pdo 5.1.6-3.el4s1.5, php-xml 5.1.6-3.el4s1.5, +12 more
    fixed: vendor fix RHSA-2007:0088
  • Red Hat Desktop version 3 php 4.3.2-39.ent, php-imap 4.3.2-39.ent, php-ldap 4.3.2-39.ent, php-odbc 4.3.2-39.ent, php-mysql 4.3.2-39.ent, php-pgsql 4.3.2-39.ent
    fixed: vendor fix RHSA-2007:0076
  • Red Hat Enterprise Linux (v. 5 server) php 5.1.6-7.el5, php-gd 5.1.6-7.el5, php-cli 5.1.6-7.el5, php-dba 5.1.6-7.el5, php-pdo 5.1.6-7.el5, php-xml 5.1.6-7.el5, +12 more
    fixed: vendor fix RHSA-2007:0082
  • Red Hat Enterprise Linux AS (Advanced Server) version 2.1 php 4.1.2-2.14, php-imap 4.1.2-2.14, php-ldap 4.1.2-2.14, php-odbc 4.1.2-2.14, php-mysql 4.1.2-2.14, php-pgsql 4.1.2-2.14, +1 more
    fixed: vendor fix RHSA-2007:0081
  • Red Hat Enterprise Linux AS version 3 php 4.3.2-39.ent, php-imap 4.3.2-39.ent, php-ldap 4.3.2-39.ent, php-odbc 4.3.2-39.ent, php-mysql 4.3.2-39.ent, php-pgsql 4.3.2-39.ent Red Hat Enterprise Linux AS version 4 php 4.3.9-3.22.3, php-gd 4.3.9-3.22.3, php-imap 4.3.9-3.22.3, php-ldap 4.3.9-3.22.3, php-odbc 4.3.9-3.22.3, php-pear 4.3.9-3.22.3, +7 more Red Hat Enterprise Linux Desktop version 4 php 4.3.9-3.22.3, php-gd 4.3.9-3.22.3, php-imap 4.3.9-3.22.3, php-ldap 4.3.9-3.22.3, php-odbc 4.3.9-3.22.3, php-pear 4.3.9-3.22.3, +7 more
    fixed: vendor fix RHSA-2007:0076
  • Red Hat Enterprise Linux Desktop Workstation (v. 5 client) php 5.1.6-7.el5, php-gd 5.1.6-7.el5, php-cli 5.1.6-7.el5, php-dba 5.1.6-7.el5, php-pdo 5.1.6-7.el5, php-xml 5.1.6-7.el5, +12 more
    fixed: vendor fix RHSA-2007:0082
  • Red Hat Enterprise Linux ES version 2.1 php 4.1.2-2.14, php-imap 4.1.2-2.14, php-ldap 4.1.2-2.14, php-odbc 4.1.2-2.14, php-mysql 4.1.2-2.14, php-pgsql 4.1.2-2.14, +1 more
    fixed: vendor fix RHSA-2007:0081
  • Red Hat Enterprise Linux ES version 3 php 4.3.2-39.ent, php-imap 4.3.2-39.ent, php-ldap 4.3.2-39.ent, php-odbc 4.3.2-39.ent, php-mysql 4.3.2-39.ent, php-pgsql 4.3.2-39.ent Red Hat Enterprise Linux ES version 4 php 4.3.9-3.22.3, php-gd 4.3.9-3.22.3, php-imap 4.3.9-3.22.3, php-ldap 4.3.9-3.22.3, php-odbc 4.3.9-3.22.3, php-pear 4.3.9-3.22.3, +7 more
    fixed: vendor fix RHSA-2007:0076
show 4 more
  • Red Hat Enterprise Linux WS version 2.1 php 4.1.2-2.14, php-imap 4.1.2-2.14, php-ldap 4.1.2-2.14, php-odbc 4.1.2-2.14, php-mysql 4.1.2-2.14, php-pgsql 4.1.2-2.14, +1 more
    fixed: vendor fix RHSA-2007:0081
  • Red Hat Enterprise Linux WS version 3 php 4.3.2-39.ent, php-imap 4.3.2-39.ent, php-ldap 4.3.2-39.ent, php-odbc 4.3.2-39.ent, php-mysql 4.3.2-39.ent, php-pgsql 4.3.2-39.ent Red Hat Enterprise Linux WS version 4 php 4.3.9-3.22.3, php-gd 4.3.9-3.22.3, php-imap 4.3.9-3.22.3, php-ldap 4.3.9-3.22.3, php-odbc 4.3.9-3.22.3, php-pear 4.3.9-3.22.3, +7 more
    fixed: vendor fix RHSA-2007:0076
  • Red Hat Linux Advanced Workstation 2.1 php 4.1.2-2.14, php-imap 4.1.2-2.14, php-ldap 4.1.2-2.14, php-odbc 4.1.2-2.14, php-mysql 4.1.2-2.14, php-pgsql 4.1.2-2.14, +1 more
    fixed: vendor fix RHSA-2007:0081
  • Red Hat Stronghold 4.0 for Red Hat Enterprise Linux AS (version 2.1) stronghold-php 4.1.2-12, stronghold-php-imap 4.1.2-12, stronghold-php-ldap 4.1.2-12, stronghold-php-odbc 4.1.2-12, stronghold-php-snmp 4.1.2-12, stronghold-php-mysql 4.1.2-12, +2 more
    fixed: vendor fix RHSA-2007:0089

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Timeline

  1. First public exploit (EDB-29807)
  2. Published

Exploit prediction

10.53% chance of exploitation in the next 30 days, higher than 95% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • EDB-29807 PHP 5.1.6 - 'Imap_Mail_Compose()' Remote Buffer Overflow remote, 2007-03-31
  • php-security.org http://www.php-security.org/MOPB/MOPB-40-2007.html referenced PoC, tagged "exploit" by a source, unverified
  • securityfocus.com http://www.securityfocus.com/bid/23234 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 2.0 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P

Classification

Technology feeds

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.