CVE-2023-2745: WordPress Core is vulnerable to Directory Traversal in versions up to, and including, 6.2, via the ‘wp_lang’ parameter.
Medium CVSS 5.4
- CVE id
- CVE-2023-2745
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| WordPress Runtimes and servers |
< 4.1.38 >= 4.2, < 4.2.35 >= 4.3, < 4.3.31 >= 4.4, < 4.4.30 >= 4.5, < 4.5.29 >= 4.6, < 4.6.26 >= 4.7, < 4.7.26 >= 4.8, < 4.8.22 >= 4.9, < 4.9.23 >= 5.0, < 5.0.19 >= 5.1, < 5.1.16 >= 5.2, < 5.2.18 >= 5.3, < 5.3.15 >= 5.4, < 5.4.13 >= 5.5, < 5.5.12 >= 5.6, < 5.6.11 >= 5.7, < 5.7.9 >= 5.8, < 5.8.7 >= 5.9, < 5.9.6 >= 6.0, < 6.0.4 >= 6.1, < 6.1.2 >= 6.2, < 6.3 |
4.1.38, 4.2.35, 4.3.31, 4.4.30, 4.5.29, 4.6.26, 4.7.26, 4.8.22, 4.9.23, 5.0.19, 5.1.16, 5.2.18, 5.3.15, 5.4.13, 5.5.12, 5.6.11, 5.7.9, 5.8.7, 5.9.6, 6.0.4, 6.1.2, 6.3 |
How to fix it
Upgrade WordPress to the fixed release of the line you run: 4.1.38, 4.2.35, 4.3.31, 4.4.30, 4.5.29, 4.6.26, 4.7.26, 4.8.22, 4.9.23, 5.0.19, 5.1.16, 5.2.18, 5.3.15, 5.4.13, 5.5.12, 5.6.11, 5.7.9, 5.8.7, 5.9.6, 6.0.4, 6.1.2, 6.3.
wp core version
- Update WordPress core to the patched release (Dashboard > Updates, wp core update, or the wordpress image tag).
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
WordPress Core is vulnerable to Directory Traversal in versions up to, and including, 6.2, via the ‘wp_lang’ parameter. This allows unauthenticated attackers to access and load arbitrary translation files. In cases where an attacker is able to upload a crafted translation file onto the site, such as via an upload form, this could be also used to perform a Cross-Site Scripting attack.
References
- CVE-2023-2745 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2023-2745
- Web: https://core.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=55765%40%2F&new=55765%40%2F&sfp_email=&sfph_mail=
- Web: https://wordpress.org/news/2023/05/wordpress-6-2-1-maintenance-security-release/
- Web: https://www.wordfence.com/blog/2023/05/wordpress-core-6-2-1-security-maintenance-release-what-you-need-to-know/
- Web: https://www.wordfence.com/threat-intel/vulnerabilities/id/edcf46b6-368e-49c0-b2c3-99bf6e2d358f?source=cve
- Web: https://core.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=55765%40%2F&new=55765%40%2F&sfp_email=&sfph_mail=
- Web: https://lists.debian.org/debian-lts-announce/2023/06/msg00024.html
- Web: https://wordpress.org/news/2023/05/wordpress-6-2-1-maintenance-security-release/
- Web: https://www.exploit-db.com/exploits/52274
- Web: https://www.wordfence.com/threat-intel/vulnerabilities/id/edcf46b6-368e-49c0-b2c3-99bf6e2d358f?source=cve
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.