CVE-2023-3815 y_project RuoYi File Upload uploadFilesPath cross site scripting

Low 3.5 Published Updated

Remote attackers can execute arbitrary scripts via the file upload component in RuoYi, 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-3815?

CVE-2023-3815 is a low-severity cross-site scripting vulnerability in Ruoyi Ruoyi, published on 21 Jul 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

A vulnerability, which was classified as problematic, has been found in y_project RuoYi up to 4.7.7. Affected by this issue is the function uploadFilesPath of the component File Upload. The manipulation of the argument originalFilenames leads to cross site scripting. The attack may be launched remotely. VDB-235118 is the identifier assigned to this vulnerability.

Weakness: CWE-79

Which versions are affected by CVE-2023-3815?

2 open source packages ship an affected version, including com.ruoyi:ruoyi. It affects 1 product.

PackageAffectedFixed in
com.ruoyi:ruoyi MavenAll versions to 4.7.7None
com.ruoyi:ruoyi MavenAll versions to 4.7.7None

Products include Ruoyi Ruoyi.

How do I fix CVE-2023-3815?

No fix has been published for CVE-2023-3815 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-3815 being exploited?

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

All Ruoyi Ruoyi vulnerabilities

Sources

Also known as GHSA-p4ww-j4pr-qw6q.

Is CVE-2023-3815 in your software?

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

Check your SBOMs for free