cve.bz

CWE-227: 7PK - API Abuse

Filter

This category represents one of the phyla in the Seven Pernicious Kingdoms vulnerability classification. It includes weaknesses that involve the software using an API in a manner contrary to its intended use. According to the authors of the Seven Pernicious Kingdoms, "An API is a contract between a caller and a callee. The most common forms of API misuse occurs when the caller does not honor its end of this contract. For example, if a program does not call chdir() after calling chroot(), it violates the contract that specifies how to change the active root directory in a secure fashion. Another good example of library abuse is expecting the callee to return trustworthy DNS information to the caller. In this case, the caller misuses the callee API by making certain assumptions about its behavior (that the return value can be used for authentication purposes). One can also violate the caller-callee contract from the other side. For example, if a coder subclasses SecureRandom and returns a non-random value, the contract is violated."

What the weakness is: CWE-227 at MITRE. All weaknesses

Ask an AI about CWE-227

Show the promptExplain CWE-227: 7PK - API Abuse and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/227.html and https://cve.bz/cve/cwe/227?via=ask-ai-copy for recent CVEs with this weakness. Cite the sources.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this weakness's id and public links.

By year: all 2026 2025 2024 2023 2022 2021

  1. 6.9CVE-2026-92963patriksimek vm2EPSS 0.3%

    vm2 versions before 3.11.2 fail to properly restrict access to the VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL global variable. Attackers can access this internal state object through globalThis to retrieve sensitive sandbox interna…

  2. 7.5CVE-2024-56442huaweiEPSS 0.2%

    Vulnerability of native APIs not being implemented in the NFC service module Impact: Successful exploitation of this vulnerability may cause features to perform abnormally.

  3. 7.5CVE-2023-41293huaweiEPSS 0.4%

    Data security classification vulnerability in the DDMP module. Successful exploitation of this vulnerability may affect confidentiality.