Medium
Security advisory
WordPress through 5.0.3 allows Path Traversal in wp_crop_image(). An attacker (who has privileges to crop an image) can write the output image to an arbitrary directory via a filename containing two image extensions and ../ sequences, such as a filename ending with the .jpg?/../../file.jpg substring.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2019-8943
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 07:37 UTC · Revision 1
Source evidence
WordPress through 5.0.3 allows Path Traversal in wp_crop_image(). An attacker (who has privileges to crop an image) can write the output image to an arbitrary directory via a filename containing two image extensions and ../ sequences, such as a filename ending with the .jpg?/../../file.jpg substring.
osv:CVE-2019-8943
Complete source record
{
"id": "feb699532ed2aa7bce49578b1932e302a351b5c7a3fac5d847f9cc967ee0219c",
"url": "https://osv.dev/vulnerability/CVE-2019-8943",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2019-8943",
"summary": "WordPress through 5.0.3 allows Path Traversal in wp_crop_image(). An attacker (who has privileges to crop an image) can write the output image to an arbitrary directory via a filename containing two image extensions and ../ sequences, such as a filename ending with the .jpg?/../../file.jpg substring.",
"evidence": "osv:CVE-2019-8943",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2019-8943",
"aliases": [
"CVE-2019-8943"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/wordpress/wordpress",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "dd6d013992bb06ebeccda588f1ce6bbb576499be"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "5.0.3"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"5.0.3",
"4.9.8"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-8943.json"
}
},
{
"ranges": [
{
"repo": "https://github.com/wordpress/wordpress-develop",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "978939d1a56dfeb5a8f9e60f4258a17e8da2f6fb"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "5.0.3"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"5.0.3",
"4.9.8"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-8943.json"
}
}
],
"modified": "2026-10-24T10:30:55.914657801Z",
"provider": "osv",
"references": [
"https://blog.ripstech.com/2019/wordpress-image-remote-code-execution/",
"https://www.exploit-db.com/exploits/46511/",
"https://www.exploit-db.com/exploits/46662/"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2019-8943",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 438543,
"published_at": "2019-02-20T03:29:00.297+00:00"
}