PHP5 before 5.4.4 allows passing invalid utf-8 strings via the xmlTextWriterWriteAttribute, which are then misparsed by libxml2. This results in memory leak into the resulting output.
https://security-tracker.debian.org/tracker/CVE-2010-4657
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2010-4657