CVE-2023-25440 Cross-site scripting in n/a

Medium 5.4 Published Updated

Attackers can execute arbitrary code via stored XSS in CiviCRM contact name fields, potentially compromising user sessions.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2023-25440?

CVE-2023-25440 is a medium-severity cross-site scripting vulnerability in n/a, published on 23 May 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

Stored Cross Site Scripting (XSS) vulnerability in the add contact function CiviCRM 5.59.alpha1, allows attackers to execute arbitrary code in first/second name field.

Weakness: CWE-79

Which versions are affected by CVE-2023-25440?

1 open source package ship an affected version, including civicrm. It affects 1 product.

PackageAffectedFixed in
civicrm BitnamiFrom 5.59-alpha1.0 to 5.59-alpha1.0None

Products include Civicrm Civicrm.

How do I fix CVE-2023-25440?

No fix has been published for CVE-2023-25440 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2023-25440 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-25440 exists.

Public exploit code: 1 Exploit-DB entry.

Sources

Also known as BIT-civicrm-2023-25440, DEBIAN-CVE-2023-25440, GHSA-w275-2cjx-pq96, UBUNTU-CVE-2023-25440.

Is CVE-2023-25440 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free