CVE-2025-4087: Unsafe attribute access during XPath parsing

Published Apr 29, 2025
·
Updated

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

25 affected componentsFixes available
Mozilla Firefox<138
Mozilla Firefox ESR<128.10
Mozilla Thunderbird<138
Mozilla Thunderbird ESR<128.10
Mozilla Thunderbird<138
138
Mozilla Firefox<128.10
Mozilla Firefox<138.0
Mozilla Thunderbird<128.10.0
Mozilla Thunderbird<138.0
ubuntu/mozjs52*
ubuntu/mozjs38*
ubuntu/mozjs68*
ubuntu/mozjs52*
ubuntu/mozjs102*
ubuntu/mozjs78*
ubuntu/mozjs91*
ubuntu/thunderbird<1:128.12.0+build1-0ubuntu0.22.04.1
1:128.12.0+build1-0ubuntu0.22.04.1
ubuntu/mozjs102*
ubuntu/mozjs115*
Mozilla Firefox<138
138
Mozilla Firefox ESR<128.10
128.10
Mozilla Thunderbird<128.10
128.10
debian/firefox
160.0-1
debian/firefox-esr
140.12.0esr-1~deb12u1153.7.0esr-1~deb12u1140.15.0esr-1~deb13u1153.6.0esr-1~deb13u1153.5.1esr-1153.7.0esr-1
debian/thunderbird
1:140.12.0esr-1~deb12u11:153.6.0esr-1~deb12u21:140.12.0esr-1~deb13u11:153.6.0esr-1~deb13u11:153.5.0esr-11:153.7.0esr-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Thunderbird to a version that resolves this vulnerability.

    Fixed in 138
  2. Upgrade

    Upgrade ubuntu/thunderbird to a version that resolves this vulnerability.

    Fixed in 1:128.12.0+build1-0ubuntu0.22.04.1
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 138
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 128.10
  5. Upgrade

    Upgrade debian/firefox to a version that resolves this vulnerability.

    Fixed in 160.0-1
  6. Upgrade

    Upgrade debian/firefox-esr to 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
  7. Upgrade

    Upgrade debian/thunderbird to 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
  8. Upgrade

    Upgrade Firefox to a version that resolves this vulnerability.

    Fixed in 138
  9. Upgrade

    Upgrade Firefox ESR to a version that resolves this vulnerability.

    Fixed in 128.10
  10. Upgrade

    Upgrade Thunderbird ESR to a version that resolves this vulnerability.

    Fixed in 128.10

Event History

Apr 29, 2025
CVE Published
via Mozilla·12:00 AM
Data Sourced
via Mozilla·12:00 AM
DescriptionSeverityAffected Software
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
CVE Published
via MITRE·01:13 PM
Data Sourced
via MITRE·01:13 PM
Description
Data Sourced
via Red Hat·02:01 PM
DescriptionSeverityAffected Software
Data Sourced
via OSV·02:15 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·02:15 PM
DescriptionSeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203