Description
MyBB is free and open source forum software. Prior to 1.8.40, the User CP Buddy/Ignore List component does not validate reciprocal buddy-list updates correctly. The usercp.php?action=do_editlists delete handler removes the selected entry from the acting user's list and then updates mybb_users.buddylist for the target account. The reciprocal update searches for the deleted target UID instead of the acting user's UID and uses the unchecked array_search() return value as an array key. A false result can be converted to index 0, removing the target account's first stored buddy while leaving the actual reciprocal entry unchanged. The uniquely identifying implementation details include false converted to index 0. This issue is fixed in version 1.8.40.
Published: 2026-08-18
Score: 4.3 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

MyBB’s Buddy/Ignore List handler in versions prior to 1.8.40 fails to validate the return value of array_search when removing a buddy entry. The function can return false, which is treated as 0 and used as an array key, causing the entry at index 0—normally the first stored buddy—to be deleted instead of the intended target. The attacker can, by deleting entries, corrupt the buddy list of another user while the reciprocal entry remains unchanged. The flaw does not allow code execution or information disclosure; it only leads to unintended data modification consistent with a Data Integrity violation. The weakness underlying this issue is the lack of validation for function return values (CWE‑252).

Affected Systems

All installations of MyBB forum software whose Buddy list component had not yet been updated to version 1.8.40 are affected. The vulnerability stems from the mybb:mybb product and targets users with access to the User CP Buddy/Ignore List feature. The bug was fixed in the 1.8.40 release available from the official MyBB website and GitHub repository.

Risk and Exploitability

The CVSS score of 4.3 indicates a low severity. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog. Attackers can exploit the flaw by simply navigating to the User CP and issuing a delete action for a buddy entry; no elevated privileges or network access are required. Because the impact is limited to accidental removal of a list entry, the risk to confidentiality, integrity, or availability is low to moderate. The potential for denial of service or user annoyance exists, but the overall likelihood of exploitation and harm remains modest.

Generated by OpenCVE AI on August 18, 2026 at 17:52 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade MyBB to version 1.8.40 or later, which contains the fix.
  • If an immediate upgrade is not possible, patch the usercp.php handler to validate the return value of array_search before using it as an array key, preventing accidental index corruption.
  • Back up the mybb_users.buddylist table before applying any changes to ensure data can be restored if needed.

Generated by OpenCVE AI on August 18, 2026 at 17:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 18 Aug 2026 19:15:00 +0000

Type Values Removed Values Added
First Time appeared Mybb
Mybb mybb
Vendors & Products Mybb
Mybb mybb

Tue, 18 Aug 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 18 Aug 2026 16:00:00 +0000

Type Values Removed Values Added
Description MyBB is free and open source forum software. Prior to 1.8.40, the User CP Buddy/Ignore List component does not validate reciprocal buddy-list updates correctly. The usercp.php?action=do_editlists delete handler removes the selected entry from the acting user's list and then updates mybb_users.buddylist for the target account. The reciprocal update searches for the deleted target UID instead of the acting user's UID and uses the unchecked array_search() return value as an array key. A false result can be converted to index 0, removing the target account's first stored buddy while leaving the actual reciprocal entry unchanged. The uniquely identifying implementation details include false converted to index 0. This issue is fixed in version 1.8.40.
Title MyBB: Buddy list corruption
Weaknesses CWE-252
References
Metrics cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-18T17:37:22.369Z

Reserved: 2026-05-18T22:54:18.272Z

Link: CVE-2026-47245

cve-icon Vulnrichment

Updated: 2026-08-18T17:37:17.763Z

cve-icon NVD

Status : Received

Published: 2026-08-18T16:17:09.507

Modified: 2026-08-18T18:17:38.950

Link: CVE-2026-47245

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-18T19:00:10Z

Weaknesses