Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2009-4142

published

php: htmlspecialchars() insufficient checking of input for multi-byte encodings

Title from Red Hat VEX

Published
21 Dec 2009, 16:00:00 UTC
Updated
07 Aug 2024, 06:54:09 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
n/a — n/an/a Affected Not stated redhat
Debian lenny php5 Advisory build 5.2.6.dfsg.1-1+lenny6 DSA-2001-1
Red Hat Enterprise Linux RHEL-3 phpi386 Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 phpia64 Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 phpppc Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 phps390 Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 phps390x Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 phpsrc Advisory build 4.3.2-54.ent RHSA-2010:0040
Show 93 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Red Hat Enterprise Linux RHEL-3 phpx86_64 Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 php-debuginfoi386 Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 php-debuginfoia64 Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 php-debuginfoppc Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 php-debuginfos390 Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 php-debuginfos390x Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 php-debuginfox86_64 Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 php-develi386 Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 php-develia64 Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 php-develppc Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 php-devels390 Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 php-devels390x Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 php-develx86_64 Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 php-imapi386 Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 php-imapia64 Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 php-imapppc Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 php-imaps390 Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 php-imaps390x Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 php-imapx86_64 Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 php-ldapi386 Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 php-ldapia64 Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 php-ldapppc Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 php-ldaps390 Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 php-ldaps390x Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 php-ldapx86_64 Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 php-mysqli386 Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 php-mysqlia64 Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 php-mysqlppc Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 php-mysqls390 Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 php-mysqls390x Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 php-mysqlx86_64 Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 php-odbci386 Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 php-odbcia64 Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 php-odbcppc Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 php-odbcs390 Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 php-odbcs390x Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 php-odbcx86_64 Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 php-pgsqli386 Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 php-pgsqlia64 Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 php-pgsqlppc Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 php-pgsqls390 Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 php-pgsqls390x Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-3 php-pgsqlx86_64 Advisory build 4.3.2-54.ent RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 phpi386 Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 phpia64 Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 phpppc Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 phps390 Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 phps390x Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 phpsrc Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 phpx86_64 Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 php-debuginfoi386 Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 php-debuginfoia64 Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 php-debuginfoppc Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 php-debuginfos390 Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 php-debuginfos390x Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 php-debuginfox86_64 Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 php-develi386 Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 php-develia64 Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 php-develppc Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 php-devels390 Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 php-devels390x Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 php-develx86_64 Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 php-domxmli386 Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 php-domxmlia64 Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 php-domxmlppc Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 php-domxmls390 Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 php-domxmls390x Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 php-domxmlx86_64 Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 php-gdi386 Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 php-gdia64 Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 php-gdppc Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 php-gds390 Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 php-gds390x Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 php-gdx86_64 Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 php-imapi386 Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 php-imapia64 Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 php-imapppc Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 php-imaps390 Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 php-imaps390x Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 php-imapx86_64 Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 php-ldapi386 Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 php-ldapia64 Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 php-ldapppc Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 php-ldaps390 Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 php-ldaps390x Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 php-ldapx86_64 Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 php-mbstringi386 Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 php-mbstringia64 Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 php-mbstringppc Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 php-mbstrings390 Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 php-mbstrings390x Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 php-mbstringx86_64 Advisory build 4.3.9-3.29 RHSA-2010:0040
Red Hat Enterprise Linux RHEL-4 php-mysqli386 Advisory build 4.3.9-3.29 RHSA-2010:0040

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

The htmlspecialchars function in PHP before 5.2.12 does not properly handle (1) overlong UTF-8 sequences, (2) invalid Shift_JIS sequences, and (3) invalid EUC-JP sequences, which allows remote attackers to conduct cross-site scripting (XSS) attacks by placing a crafted byte sequence before a special character.

en · redhat · cna

Vendor advisories explicitly linked to this CVE.

4

Assessment

CVSS risk assessment and additional context for this vulnerability.

No normalized assessments.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
n/a n/a n/a (affected) redhat · cna

Weaknesses

1
  • n/a (redhat · cna)

References

15
  • http://bugs.php.net/bug.php?id=49785 x_refsource_CONFIRM, x_transferred Contributors: redhat (cna), CVE (adp)
  • APPLE-SA-2010-03-29-1 http://lists.apple.com/archives/security-announce/2010//Mar/msg00001.html vendor-advisory, x_refsource_APPLE, x_transferred Contributors: redhat (cna), CVE (adp)
  • HPSBUX02543 http://marc.info/?l=bugtraq&m=127680701405735&w=2 vendor-advisory, x_refsource_HP, x_transferred Contributors: redhat (cna), CVE (adp)
  • 37821 http://secunia.com/advisories/37821 third-party-advisory, x_refsource_SECUNIA, x_transferred Contributors: redhat (cna), CVE (adp)
  • 38648 http://secunia.com/advisories/38648 third-party-advisory, x_refsource_SECUNIA, x_transferred Contributors: redhat (cna), CVE (adp)
  • 40262 http://secunia.com/advisories/40262 third-party-advisory, x_refsource_SECUNIA, x_transferred Contributors: redhat (cna), CVE (adp)
  • 1023372 http://securitytracker.com/id?1023372 vdb-entry, x_refsource_SECTRACK, x_transferred Contributors: redhat (cna), CVE (adp)
  • http://support.apple.com/kb/HT4077 x_refsource_CONFIRM, x_transferred Contributors: redhat (cna), CVE (adp)
  • DSA-2001 http://www.debian.org/security/2010/dsa-2001 vendor-advisory, x_refsource_DEBIAN, x_transferred Contributors: redhat (cna), CVE (adp)
  • http://www.php.net/ChangeLog-5.php x_refsource_CONFIRM, x_transferred Contributors: redhat (cna), CVE (adp)
  • http://www.php.net/releases/5_2_12.php x_refsource_CONFIRM, x_transferred Contributors: redhat (cna), CVE (adp)
  • 37389 http://www.securityfocus.com/bid/37389 vdb-entry, x_refsource_BID, x_transferred Contributors: redhat (cna), CVE (adp)
  • ADV-2009-3593 http://www.vupen.com/english/advisories/2009/3593 vdb-entry, x_refsource_VUPEN, x_transferred Contributors: redhat (cna), CVE (adp)
  • oval:org.mitre.oval:def:10005 https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10005 vdb-entry, signature, x_refsource_OVAL, x_transferred Contributors: redhat (cna), CVE (adp)
  • oval:org.mitre.oval:def:7085 https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A7085 vdb-entry, signature, x_refsource_OVAL, x_transferred Contributors: redhat (cna), CVE (adp)

Provider assertions

2

redhat · cna

CVE · adp

CVE Program Container

Provenance

Schema
5.1
Searchable
yes
Content hash
9dfcb0744a15ac20ca6f78cdb809c99fd3a83ba5e4578f1184da378accd9e64f
Ingested
23 Sep 2026, 07:38:41 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected