cve.bz

CVE-2023-40397

9.8 criticalEPSS 1.7%

Critical (9.8). EPSS 1.7% estimated probability of exploitation activity in the next 30 days.

On this page
The issue was addressed with improved checks. This issue is fixed in macOS Ventura 13.5. A remote attacker may be able to cause arbitrary javascript code execution.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
1.7% (unchanged from 1.7% a week ago; 1.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 77th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-40397 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-40397?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-40397?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-40397 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Apple macOSbefore 13.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11webkit2gtk2.40.5-1~deb11u1DSA-5468-1
Debian12webkit2gtk2.40.5-1~deb12u1DEBIAN-CVE-2023-40397 DSA-5468-1
Debian12wpewebkitno fix listedDEBIAN-CVE-2023-40397
Debian13, 14wpewebkit, webkit2gtk2.40.5-1DEBIAN-CVE-2023-40397
Ubuntu16.04:LTS, 18.04:LTSwebkitgtk, webkit2gtk, qtwebkit-source and 1 moreno fix listedUBUNTU-CVE-2023-40397
Ubuntu20.04:LTSwpewebkit, webkit2gtk, qtwebkit-opensource-srcno fix listedUBUNTU-CVE-2023-40397
Ubuntu22.04:LTSwebkit2gtk2.40.5-0ubuntu0.22.04.1UBUNTU-CVE-2023-40397
Ubuntu22.04:LTSwpewebkit, qtwebkit-opensource-srcno fix listedUBUNTU-CVE-2023-40397
Ubuntu24.04:LTSqtwebkit-opensource-srcno fix listedUBUNTU-CVE-2023-40397
Red Hatenterprise_linux:8::appstreamwebkit2gtk3, webkit2gtk3-jsc, webkit2gtk3-devel and 6 more0:2.40.5-1.el8RHSA-2023:7055
Red Hatenterprise_linux:9::appstreamwebkit2gtk3, webkit2gtk3-jsc, webkit2gtk3-devel and 6 more0:2.40.5-1.el9RHSA-2023:6535
Red Hatrhel_aus:8.2::appstreamwebkit2gtk3, webkit2gtk3-jsc, webkit2gtk3-devel and 6 more0:2.46.3-1.el8_2RHSA-2024:9680
Red Hatrhel_aus:8.4::appstream, rhel_e4s:8.4::appstream, rhel_tus:8.4::appstreamwebkit2gtk3, webkit2gtk3-jsc, webkit2gtk3-devel and 6 more0:2.46.3-1.el8_4RHSA-2024:9679
Red Hatrhel_aus:8.6::appstream, rhel_e4s:8.6::appstream, rhel_tus:8.6::appstreamwebkit2gtk3, webkit2gtk3-jsc, webkit2gtk3-devel and 6 more0:2.46.3-1.el8_6RHSA-2024:9653
Red Hatrhel_e4s:9.0::appstreamwebkit2gtk3, webkit2gtk3-jsc, webkit2gtk3-devel and 6 more0:2.46.1-1.el9_0RHSA-2024:8496
Red Hatrhel_els:7webkitgtk4, webkitgtk4-doc, webkitgtk4-jsc and 3 more0:2.48.3-2.el7_9RHSA-2025:10364
Red Hatrhel_eus:8.8::appstreamwebkit2gtk3, webkit2gtk3-jsc, webkit2gtk3-devel and 6 more0:2.46.3-1.el8_8RHSA-2024:9646
Red Hatrhel_eus:9.2::appstreamwebkit2gtk3, webkit2gtk3-jsc, webkit2gtk3-devel and 6 more0:2.46.1-1.el9_2RHSA-2024:8492
SUSELinux Enterprise Module for Basesystem 15 SP4, Linux Enterprise Module for Basesystem 15 SP5webkit2gtk3-soup22.40.5-150400.4.51.1SUSE-SU-2023:3753-1
SUSELinux Enterprise Module for Desktop Applications 15 SP4, Linux Enterprise Module for Desktop Applications 15 SP5webkit2gtk32.40.5-150400.4.51.1SUSE-SU-2023:3753-1
SUSELinux Enterprise Module for Development Tools 15 SP4, Linux Enterprise Module for Development Tools 15 SP5webkit2gtk42.40.5-150400.4.51.1SUSE-SU-2023:3753-1
openSUSELeap 15.4, Leap 15.5webkit2gtk3, webkit2gtk4, webkit2gtk3-soup22.40.5-150400.4.51.1SUSE-SU-2023:3753-1
AlmaLinux8webkit2gtk3, webkit2gtk3-jsc, webkit2gtk3-devel and 1 more2.40.5-1.el8ALSA-2023:7055
AlmaLinux9webkit2gtk3, webkit2gtk3-jsc, webkit2gtk3-devel and 1 more2.40.5-1.el9ALSA-2023:6535

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This flaw is being rated as 'Moderate' as WebKitGTK package is shipped as a dependency for Gnome package. Additionally, Red Hat Enterprise Linux doesn't ship any WebKitGTK based web browser where this flaw would present a higher severity major threat.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7 Extended Lifecycle Supportwebkitgtk4-0:2.48.3-2.el7_9Fixed 2025-07-07RHSA-2025:10364
Red Hat Enterprise Linux 8webkit2gtk3-0:2.40.5-1.el8Fixed 2023-11-14RHSA-2023:7055
Red Hat Enterprise Linux 8.2 Advanced Update Supportwebkit2gtk3-0:2.46.3-1.el8_2Fixed 2024-11-14RHSA-2024:9680
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportwebkit2gtk3-0:2.46.3-1.el8_4Fixed 2024-11-14RHSA-2024:9679
Red Hat Enterprise Linux 8.4 Telecommunications Update Servicewebkit2gtk3-0:2.46.3-1.el8_4Fixed 2024-11-14RHSA-2024:9679
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutionswebkit2gtk3-0:2.46.3-1.el8_4Fixed 2024-11-14RHSA-2024:9679
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportwebkit2gtk3-0:2.46.3-1.el8_6Fixed 2024-11-14RHSA-2024:9653
Red Hat Enterprise Linux 8.6 Telecommunications Update Servicewebkit2gtk3-0:2.46.3-1.el8_6Fixed 2024-11-14RHSA-2024:9653
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutionswebkit2gtk3-0:2.46.3-1.el8_6Fixed 2024-11-14RHSA-2024:9653
Red Hat Enterprise Linux 8.8 Extended Update Supportwebkit2gtk3-0:2.46.3-1.el8_8Fixed 2024-11-14RHSA-2024:9646
Red Hat Enterprise Linux 9webkit2gtk3-0:2.40.5-1.el9Fixed 2023-11-07RHSA-2023:6535
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutionswebkit2gtk3-0:2.46.1-1.el9_0Fixed 2024-10-28RHSA-2024:8496
Red Hat Enterprise Linux 9.2 Extended Update Supportwebkit2gtk3-0:2.46.1-1.el9_2Fixed 2024-10-28RHSA-2024:8492
Red Hat Enterprise Linux 6webkitgtkOut of support scope
Red Hat Enterprise Linux 7webkitgtk3Out of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-40397.

References

Check your stackJSON