Skip to content
Heist/ feed
Back to feed
High

Mail settings' command parameter injection in mybb

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-39265
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 20:15 UTC · Revision 1

Source evidence

Mail settings' command parameter injection in mybb

core-osv · Original source

Published 6 Oct 2022, 00:00 UTC

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.

osv:CVE-2022-39265
Complete source record
{
  "id": "9fbafda0e430c03a73621a666686f9bf6d1fba0de59b9e13596edf0ea453b7de",
  "url": "https://osv.dev/vulnerability/CVE-2022-39265",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Mail settings' command parameter injection in mybb",
    "summary": "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.",
    "evidence": "osv:CVE-2022-39265",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2022-39265",
      "aliases": [
        "BIT-mybb-2022-39265",
        "CVE-2022-39265",
        "GHSA-hxhm-rq9f-7xj7"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/mybb/mybb",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0cd318136a10b029bb5c8a8f6dddf39d87519797"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "fixed": "0cd318136a10b029bb5c8a8f6dddf39d87519797"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "mybb_1831_build",
            "mybb_1829",
            "mybb_1828",
            "mybb_1828_build",
            "mybb_1827_build",
            "mybb_1827",
            "mybb_1823_build",
            "mybb_1823",
            "mybb_1822",
            "mybb_1822_build",
            "mybb_1821pl1",
            "mybb_1821",
            "mybb_1821_build",
            "mybb_1817_build",
            "mybb_1817",
            "mybb_1820",
            "mybb_1820_build",
            "mybb_1820-rc",
            "mybb_1819",
            "mybb_1818",
            "mybb_1819_build",
            "mybb_1818_build",
            "mybb_1816",
            "mybb_1816_build",
            "mybb_1815",
            "mybb_1815_build",
            "mybb_1814",
            "mybb_1813",
            "mybb_1812",
            "mybb_1811",
            "mybb_1810",
            "mybb_1809",
            "mybb_1808",
            "mybb_1807",
            "mybb_1806",
            "mybb_1805",
            "mybb_1804",
            "mybb_1800",
            "mybb_1801"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-39265.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:39.256440810Z",
      "provider": "osv",
      "references": [
        "https://github.com/mybb/mybb/blob/mybb_1830/install/resources/settings.xml#L2331-L2338",
        "https://mybb.com/versions/1.8.31/",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/39xxx/CVE-2022-39265.json",
        "https://github.com/mybb/mybb/security/advisories/GHSA-hxhm-rq9f-7xj7",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-39265",
        "https://github.com/mybb/mybb/commit/0cd318136a10b029bb5c8a8f6dddf39d87519797"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-74"
        ],
        "cna_assigner": "GitHub_M",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "1.8.31"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/39xxx/CVE-2022-39265.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-39265",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 506565,
  "published_at": "2022-10-06T00:00:00+00:00"
}