High
Security advisory
The WP Statistics WordPress plugin before 13.0.8 relied on using the WordPress esc_sql() function on a field not delimited by quotes and did not first prepare the query. Additionally, the page, which should have been accessible to administrator only, was also available to any visitor, including unauthenticated ones.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-24340
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 04:13 UTC · Revision 1
Source evidence
The WP Statistics WordPress plugin before 13.0.8 relied on using the WordPress esc_sql() function on a field not delimited by quotes and did not first prepare the query. Additionally, the page, which should have been accessible to administrator only, was also available to any visitor, including unauthenticated ones.
osv:CVE-2021-24340
Complete source record
{
"id": "ee6fe8b6a0ae5e8c40496d1ed6c6a6f5d1337232b6b77d9f0f3c6cdd683ce51c",
"url": "https://osv.dev/vulnerability/CVE-2021-24340",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-24340",
"summary": "The WP Statistics WordPress plugin before 13.0.8 relied on using the WordPress esc_sql() function on a field not delimited by quotes and did not first prepare the query. Additionally, the page, which should have been accessible to administrator only, was also available to any visitor, including unauthenticated ones.",
"evidence": "osv:CVE-2021-24340",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2021-24340",
"aliases": [
"CVE-2021-24340"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/wp-statistics/wp-statistics",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "5eec022858a125e75bec3b1196b19a6d2bd5f04e"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:veronalabs:wp_statistics:*:*:*:*:*:wordpress:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "13.0.8"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"13.0.7",
"13.0.5",
"13.0.4",
"13.0.3",
"13.0",
"12.6.13",
"12.6.12",
"12.6.11",
"12.6.10",
"12.6.9",
"12.6.8",
"12.6.7",
"12.6.6",
"12.6.5",
"12.6.4",
"12.6.3",
"12.6.2",
"12.6.1",
"12.6",
"12.5.7",
"12.5.6",
"12.5.5",
"12.5.4",
"12.5.3",
"12.5.2",
"12.5.1",
"12.5",
"12.4.3",
"12.4.1",
"12.4.0",
"12.3.6.4",
"12.3.6.2",
"12.3.6.1",
"12.3.6",
"12.3.5",
"12.3.4",
"12.3.3",
"12.3.2",
"12.3.1",
"12.3",
"12.2",
"12.1.3",
"12.1.2",
"12.1.1",
"12.1.0",
"12.0.12.1",
"12.0.12",
"12.0.11",
"12.0.10",
"12.0.9",
"12.0.8.1",
"12.0.8",
"12.0.7",
"12.0.6"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-24340.json"
}
}
],
"modified": "2026-10-24T10:30:15.459569452Z",
"provider": "osv",
"references": [
"https://wpscan.com/vulnerability/d2970cfb-0aa9-4516-9a4b-32971f41a19c",
"https://www.wordfence.com/blog/2021/05/over-600000-sites-impacted-by-wp-statistics-patch/"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-24340",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 429156,
"published_at": "2021-06-07T11:15:16.677+00:00"
}