CVE-2025-4087: Unsafe attribute access during XPath parsing
A vulnerability was identified in Firefox where XPath parsing could trigger undefined behavior due to missing null checks during attribute access. This could lead to out-of-bounds read access and potentially, memory corruption.
Other sources
A vulnerability was identified in Thunderbird where XPath parsing could trigger undefined behavior due to missing null checks during attribute access. This could lead to out-of-bounds read access and potentially, memory corruption. This vulnerability was fixed in Firefox 138, Firefox ESR 128.10, Thunderbird 138, and Thunderbird 128.10.
— Ubuntu
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Thunderbirdto a version that resolves this vulnerability.Fixed in 138 - Upgrade
Upgrade
ubuntu/thunderbirdto a version that resolves this vulnerability.Fixed in 1:128.12.0+build1-0ubuntu0.22.04.1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 138 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 128.10 - Upgrade
Upgrade
debian/firefoxto a version that resolves this vulnerability.Fixed in 160.0-1 - Upgrade
Upgrade
debian/firefox-esrto a version that resolves this vulnerability.Fixed in 140.12.0esr-1~deb12u1Fixed in 153.7.0esr-1~deb12u1Fixed in 140.15.0esr-1~deb13u1Fixed in 153.6.0esr-1~deb13u1Fixed in 153.5.1esr-1Fixed in 153.7.0esr-1 - Upgrade
Upgrade
debian/thunderbirdto a version that resolves this vulnerability.Fixed in 1:140.12.0esr-1~deb12u1Fixed in 1:153.6.0esr-1~deb12u2Fixed in 1:140.12.0esr-1~deb13u1Fixed in 1:153.6.0esr-1~deb13u1Fixed in 1:153.5.0esr-1Fixed in 1:153.7.0esr-1 - Upgrade
Upgrade
Firefoxto a version that resolves this vulnerability.Fixed in 138 - Upgrade
Upgrade
Firefox ESRto a version that resolves this vulnerability.Fixed in 128.10 - Upgrade
Upgrade
Thunderbird ESRto a version that resolves this vulnerability.Fixed in 128.10
Event History
Parent advisories
This vulnerability appears in the following advisories.
Peer vulnerabilities
Found alongside the following vulnerabilities.
Frequently Asked Questions
What is the severity of CVE-2025-4087?
CVE-2025-4087 has a high severity as it can lead to out-of-bounds read access and potential memory corruption.
How do I fix CVE-2025-4087?
To fix CVE-2025-4087, update to Firefox version 138 or later, Firefox ESR version 128.10 or later, or the appropriate version for Thunderbird.
What software is affected by CVE-2025-4087?
CVE-2025-4087 affects Firefox versions prior to 138, Firefox ESR versions prior to 128.10, and Thunderbird versions prior to 138.
What kind of attacks can CVE-2025-4087 facilitate?
CVE-2025-4087 can facilitate attacks that exploit memory corruption vulnerabilities, potentially leading to system crashes or arbitrary code execution.
Is CVE-2025-4087 specific to desktop versions of the software?
CVE-2025-4087 affects desktop versions of Firefox and Thunderbird, including their ESR counterparts.