# CVE-2019-12831: In MyBB before 1.8.21, an attacker can abuse a default behavior of MySQL on many systems (that leads to truncation of strings that are too…

- Severity: High 7.2 (CVSS:3.0, scored by NVD) `CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.47%, higher than 74% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2019-06-15T17:05:08.000Z
- Modified: 2026-06-17T02:15:34.817Z
- Weaknesses: CWE-20
- Assigned by: mitre

## Description

In MyBB before 1.8.21, an attacker can abuse a default behavior of MySQL on many systems (that leads to truncation of strings that are too long for a database column) to create a PHP shell in the cache directory of a targeted forum via a crafted XML import, as demonstrated by truncation of aaaaaaaaaaaaaaaaaaaaaaaaaa.php.css to aaaaaaaaaaaaaaaaaaaaaaaaaa.php with a 30-character limit, aka theme import stylesheet name RCE.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- mybb mybb: before 1.8.21

## Every score

- NVD: CVSS:3.0 7.2 High `CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`

## References

- <https://blog.ripstech.com/2019/mybb-stored-xss-to-rce/> (exploit, vendor-advisory)
- <https://blog.mybb.com/2019/06/10/mybb-1-8-21-released-security-maintenance-release/> (release-notes, vendor-advisory)

## Sources

- CVE List: [CVE-2019-12831](https://www.cve.org/CVERecord?id=CVE-2019-12831), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2019-12831](https://nvd.nist.gov/vuln/detail/CVE-2019-12831), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2019-12831 · Whole record: https://cve.day/CVE-2019-12831.json · Rebuilt by cve.day 2026-11-25T22:57:45.242Z
